diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-11-25 14:20:03 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-11-25 14:20:03 +0100 |
commit | ade33990f5b05ecf1446c93eb6bc5d93bbb3d8b7 (patch) | |
tree | 8ad5c33123575a50aabd7acb8b05e6b91e6573f8 /config.c | |
parent | a97119d0b44b52b098de0aa4a4f38939bc4bba9b (diff) | |
download | vdr-ade33990f5b05ecf1446c93eb6bc5d93bbb3d8b7.tar.gz vdr-ade33990f5b05ecf1446c93eb6bc5d93bbb3d8b7.tar.bz2 |
Implemented setup option "Miscellaneous/Emergency exit"
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.c 1.157 2007/10/06 14:28:58 kls Exp $ + * $Id: config.c 1.158 2007/11/25 13:46:27 kls Exp $ */ #include "config.h" @@ -289,6 +289,7 @@ cSetup::cSetup(void) CurrentDolby = 0; InitialChannel = 0; InitialVolume = -1; + EmergencyExit = 1; } cSetup& cSetup::operator= (const cSetup &s) @@ -464,6 +465,7 @@ bool cSetup::Parse(const char *Name, const char *Value) else if (!strcasecmp(Name, "CurrentDolby")) CurrentDolby = atoi(Value); else if (!strcasecmp(Name, "InitialChannel")) InitialChannel = atoi(Value); else if (!strcasecmp(Name, "InitialVolume")) InitialVolume = atoi(Value); + else if (!strcasecmp(Name, "EmergencyExit")) EmergencyExit = atoi(Value); else return false; return true; @@ -546,6 +548,7 @@ bool cSetup::Save(void) Store("CurrentDolby", CurrentDolby); Store("InitialChannel", InitialChannel); Store("InitialVolume", InitialVolume); + Store("EmergencyExit", EmergencyExit); Sort(); |