diff options
author | Tobias Grimm <tobias@e-tobi.loc> | 2009-03-01 23:50:11 +0100 |
---|---|---|
committer | Tobias Grimm <tobias@e-tobi.loc> | 2009-03-01 23:50:11 +0100 |
commit | 41f3a108fd60f083b4c1b64dd249c606b55e2720 (patch) | |
tree | 46ea648abeda3bd3ce901012410f3dd4c208cca7 /config.c | |
parent | 1072f8978350e57f7aa35aaa79081e5031a12901 (diff) | |
download | xeatre-vdr-patches-patches/xeatre/1.6/extend-maxvideofilesize.tar.gz xeatre-vdr-patches-patches/xeatre/1.6/extend-maxvideofilesize.tar.bz2 |
initial commit of the extend-maxvideofilesize patchpatches/xeatre/1.6/extend-maxvideofilesize
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -324,6 +324,11 @@ void cSetup::Store(const char *Name, int Value, const char *Plugin) Store(Name, cString::sprintf("%d", Value), Plugin); } +void cSetup::Store(const char *Name, int64_t Value, const char *Plugin) +{ + Store(Name, cString::sprintf("%lld", Value), Plugin); +} + bool cSetup::Load(const char *FileName) { if (cConfig<cSetupLine>::Load(FileName, true)) { @@ -448,7 +453,7 @@ bool cSetup::Parse(const char *Name, const char *Value) else if (!strcasecmp(Name, "FontOsdSize")) FontOsdSize = atoi(Value); else if (!strcasecmp(Name, "FontSmlSize")) FontSmlSize = atoi(Value); else if (!strcasecmp(Name, "FontFixSize")) FontFixSize = atoi(Value); - else if (!strcasecmp(Name, "MaxVideoFileSize")) MaxVideoFileSize = atoi(Value); + else if (!strcasecmp(Name, "MaxVideoFileSize")) MaxVideoFileSize = atoll(Value); else if (!strcasecmp(Name, "SplitEditedFiles")) SplitEditedFiles = atoi(Value); else if (!strcasecmp(Name, "MinEventTimeout")) MinEventTimeout = atoi(Value); else if (!strcasecmp(Name, "MinUserInactivity")) MinUserInactivity = atoi(Value); @@ -535,7 +540,7 @@ bool cSetup::Save(void) Store("SplitEditedFiles", SplitEditedFiles); Store("MinEventTimeout", MinEventTimeout); Store("MinUserInactivity", MinUserInactivity); - Store("NextWakeupTime", NextWakeupTime); + Store("NextWakeupTime", (int64_t)NextWakeupTime); Store("MultiSpeedMode", MultiSpeedMode); Store("ShowReplayMode", ShowReplayMode); Store("ResumeID", ResumeID); |