diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-01-17 15:03:45 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-01-17 15:03:45 +0100 |
commit | 904903f8d558cd2aca47e7371e5415aa82125cd8 (patch) | |
tree | a1f1c32779bb6f2156cfd10c178abe037aedb8af /config.c | |
parent | c984204944281a4c9826e963f29d3c52b526896d (diff) | |
download | vdr-904903f8d558cd2aca47e7371e5415aa82125cd8.tar.gz vdr-904903f8d558cd2aca47e7371e5415aa82125cd8.tar.bz2 |
The last replayed recording is now stored in setup.conf, which allows the blue "Resume" key in the main menu to work even after a restart of VDR
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 2.31 2012/12/06 09:00:23 kls Exp $ + * $Id: config.c 2.32 2013/01/17 14:50:51 kls Exp $ */ #include "config.h" @@ -13,6 +13,7 @@ #include "device.h" #include "i18n.h" #include "interface.h" +#include "menu.h" #include "plugin.h" #include "recording.h" @@ -672,6 +673,7 @@ bool cSetup::Parse(const char *Name, const char *Value) else if (!strcasecmp(Name, "ChannelsWrap")) ChannelsWrap = atoi(Value); else if (!strcasecmp(Name, "ShowChannelNamesWithSource")) ShowChannelNamesWithSource = atoi(Value); else if (!strcasecmp(Name, "EmergencyExit")) EmergencyExit = atoi(Value); + else if (!strcasecmp(Name, "LastReplayed")) cReplayControl::SetRecording(Value); else return false; return true; @@ -777,6 +779,7 @@ bool cSetup::Save(void) Store("ChannelsWrap", ChannelsWrap); Store("ShowChannelNamesWithSource", ShowChannelNamesWithSource); Store("EmergencyExit", EmergencyExit); + Store("LastReplayed", cReplayControl::LastReplayed()); Sort(); |