From a1a52fe11f95e2a3a182cc374ddc62c52d1dabd3 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 8 Oct 2000 13:08:13 +0200 Subject: Implemented MarkInstantRecord setup option --- config.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'config.c') 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; -- cgit v1.2.3