summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-01-08 13:53:30 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-01-08 13:53:30 +0100
commitf79f81dfd4e5e482f251f0ae53731cd8c6a42d2f (patch)
tree7db76aee7534e83bae7ee5e5004441ba171f5707 /config.c
parentec27c329cfeacf4687197f637d6abddd6fed25a8 (diff)
downloadvdr-f79f81dfd4e5e482f251f0ae53731cd8c6a42d2f.tar.gz
vdr-f79f81dfd4e5e482f251f0ae53731cd8c6a42d2f.tar.bz2
Implemented Setup.CurrentDolby
Diffstat (limited to 'config.c')
-rw-r--r--config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/config.c b/config.c
index eb182154..dff8f8e4 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c 1.129 2005/01/04 13:48:49 kls Exp $
+ * $Id: config.c 1.130 2005/01/08 10:31:19 kls Exp $
*/
#include "config.h"
@@ -298,6 +298,7 @@ cSetup::cSetup(void)
ResumeID = 0;
CurrentChannel = -1;
CurrentVolume = MAXVOLUME;
+ CurrentDolby = 0;
}
cSetup& cSetup::operator= (const cSetup &s)
@@ -452,6 +453,7 @@ bool cSetup::Parse(const char *Name, const char *Value)
else if (!strcasecmp(Name, "ResumeID")) ResumeID = atoi(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
return false;
return true;
@@ -513,6 +515,7 @@ bool cSetup::Save(void)
Store("ResumeID", ResumeID);
Store("CurrentChannel", CurrentChannel);
Store("CurrentVolume", CurrentVolume);
+ Store("CurrentDolby", CurrentDolby);
Sort();