summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-01-17 15:21:28 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2010-01-17 15:21:28 +0100
commit27aaf4fc06d93885ae34e4a2d5c7086185f84bcd (patch)
tree97a8b7ad2f9c511e061a9713c3ca70dea88b0b59 /config.c
parentb19650251c4ad335a00d4e97fa642c54acd55a3e (diff)
downloadvdr-27aaf4fc06d93885ae34e4a2d5c7086185f84bcd.tar.gz
vdr-27aaf4fc06d93885ae34e4a2d5c7086185f84bcd.tar.bz2
The new setup option "Miscellaneous/Channels wrap" controls whether the current channel wraps around the beginning or end of the channel list when zapping
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 9c73e872..494eb3dc 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 2.8 2010/01/17 12:22:56 kls Exp $
+ * $Id: config.c 2.9 2010/01/17 15:08:32 kls Exp $
*/
#include "config.h"
@@ -459,6 +459,7 @@ cSetup::cSetup(void)
CurrentDolby = 0;
InitialChannel = 0;
InitialVolume = -1;
+ ChannelsWrap = 0;
EmergencyExit = 1;
}
@@ -646,6 +647,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, "ChannelsWrap")) ChannelsWrap = atoi(Value);
else if (!strcasecmp(Name, "EmergencyExit")) EmergencyExit = atoi(Value);
else
return false;
@@ -738,6 +740,7 @@ bool cSetup::Save(void)
Store("CurrentDolby", CurrentDolby);
Store("InitialChannel", InitialChannel);
Store("InitialVolume", InitialVolume);
+ Store("ChannelsWrap", ChannelsWrap);
Store("EmergencyExit", EmergencyExit);
Sort();