diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-04-09 13:26:56 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-04-09 13:26:56 +0200 |
commit | 87ba3ae5585878951f9db6fa4d0a975b1e9e2e68 (patch) | |
tree | 46426a3d6652ea7375f94c3a3d1d51b409e1d1f1 /config.c | |
parent | e36da7ab8d9d1da0eb2911cd229070de555c485b (diff) | |
download | vdr-87ba3ae5585878951f9db6fa4d0a975b1e9e2e68.tar.gz vdr-87ba3ae5585878951f9db6fa4d0a975b1e9e2e68.tar.bz2 |
The initial channel and volume can now be defined in the "Setup/Miscellaneous" menu
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 8 |
1 files changed, 7 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.142 2006/02/25 14:12:16 kls Exp $ + * $Id: config.c 1.143 2006/04/09 12:12:01 kls Exp $ */ #include "config.h" @@ -271,6 +271,8 @@ cSetup::cSetup(void) CurrentChannel = -1; CurrentVolume = MAXVOLUME; CurrentDolby = 0; + InitialChannel = 0; + InitialVolume = -1; } cSetup& cSetup::operator= (const cSetup &s) @@ -430,6 +432,8 @@ bool cSetup::Parse(const char *Name, const char *Value) else if (!strcasecmp(Name, "CurrentChannel")) CurrentChannel = atoi(Value); else if (!strcasecmp(Name, "CurrentVolume")) CurrentVolume = atoi(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 return false; return true; @@ -496,6 +500,8 @@ bool cSetup::Save(void) Store("CurrentChannel", CurrentChannel); Store("CurrentVolume", CurrentVolume); Store("CurrentDolby", CurrentDolby); + Store("InitialChannel", InitialChannel); + Store("InitialVolume", InitialVolume); Sort(); |