diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-08-16 09:18:52 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-08-16 09:18:52 +0200 |
commit | 57a95c6790fd080020c49c79557619fd129a66e0 (patch) | |
tree | 05878ebcc65837f792835ecc0afac13beb7474ad /channels.c | |
parent | fc19cf3527d42d88f428b6fa7a935c2dc7cfe781 (diff) | |
download | vdr-57a95c6790fd080020c49c79557619fd129a66e0.tar.gz vdr-57a95c6790fd080020c49c79557619fd129a66e0.tar.bz2 |
VDR now stops with result value 2 if one of the configuration files can't be read correctly at program startup
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.c 1.12 2003/04/26 09:57:48 kls Exp $ + * $Id: channels.c 1.13 2003/08/16 09:12:26 kls Exp $ */ #include "channels.h" @@ -390,9 +390,9 @@ bool cChannel::Save(FILE *f) cChannels Channels; -bool cChannels::Load(const char *FileName, bool AllowComments) +bool cChannels::Load(const char *FileName, bool AllowComments, bool MustExist) { - if (cConfig<cChannel>::Load(FileName, AllowComments)) { + if (cConfig<cChannel>::Load(FileName, AllowComments, MustExist)) { ReNumber(); return true; } |