summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-10-08 13:08:13 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-10-08 13:08:13 +0200
commita1a52fe11f95e2a3a182cc374ddc62c52d1dabd3 (patch)
tree16f5f5824fac882f7cc4b8eae72617bcc993076e /config.c
parent19f9f9cfce5dcbd0e5b468da85163f589c1082f2 (diff)
downloadvdr-a1a52fe11f95e2a3a182cc374ddc62c52d1dabd3.tar.gz
vdr-a1a52fe11f95e2a3a182cc374ddc62c52d1dabd3.tar.bz2
Implemented MarkInstantRecord setup option
Diffstat (limited to 'config.c')
-rw-r--r--config.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/config.c b/config.c
index 5434b575..c7801912 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.24 2000/10/08 12:19:21 kls Exp $
+ * $Id: config.c 1.25 2000/10/08 12:41:59 kls Exp $
*/
#include "config.h"
@@ -303,7 +303,7 @@ cTimer::cTimer(bool Instant)
*file = 0;
summary = NULL;
if (Instant && ch)
- snprintf(file, sizeof(file), "@%s", ch->name);
+ snprintf(file, sizeof(file), "%s%s", Setup.MarkInstantRecord ? "@" : "", ch->name);
}
cTimer::~cTimer()
@@ -596,6 +596,7 @@ cSetup::cSetup(void)
PrimaryDVB = 1;
ShowInfoOnChSwitch = 1;
MenuScrollPage = 1;
+ MarkInstantRecord = 1;
}
bool cSetup::Parse(char *s)
@@ -607,6 +608,7 @@ bool cSetup::Parse(char *s)
if (!strcasecmp(Name, "PrimaryDVB")) PrimaryDVB = atoi(Value);
else if (!strcasecmp(Name, "ShowInfoOnChSwitch")) ShowInfoOnChSwitch = atoi(Value);
else if (!strcasecmp(Name, "MenuScrollPage")) MenuScrollPage = atoi(Value);
+ else if (!strcasecmp(Name, "MarkInstantRecord")) MarkInstantRecord = atoi(Value);
else
return false;
return true;
@@ -651,6 +653,7 @@ bool cSetup::Save(const char *FileName)
fprintf(f, "PrimaryDVB = %d\n", PrimaryDVB);
fprintf(f, "ShowInfoOnChSwitch = %d\n", ShowInfoOnChSwitch);
fprintf(f, "MenuScrollPage = %d\n", MenuScrollPage);
+ fprintf(f, "MarkInstantRecord = %d\n", MarkInstantRecord);
fclose(f);
isyslog(LOG_INFO, "saved setup to %s", FileName);
return true;