summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-09-06 14:20:20 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2008-09-06 14:20:20 +0200
commita079bc9c25ca89150d398573cbb02d7ae1ee6fd0 (patch)
treed502212224cf6955bab785afcb83778ccf782e5e /vdr.c
parent089b421dca3973564b16232fef8bec73c33661db (diff)
downloadvdr-a079bc9c25ca89150d398573cbb02d7ae1ee6fd0.tar.gz
vdr-a079bc9c25ca89150d398573cbb02d7ae1ee6fd0.tar.bz2
Errors in config files no longer keep VDR from starting
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/vdr.c b/vdr.c
index 1e82be76..fa36b881 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/vdr
*
- * $Id: vdr.c 2.2 2008/09/06 11:24:21 kls Exp $
+ * $Id: vdr.c 2.3 2008/09/06 14:08:44 kls Exp $
*/
#include <getopt.h>
@@ -559,17 +559,15 @@ int main(int argc, char *argv[])
cThemes::SetThemesDirectory(AddDirectory(ConfigDirectory, "themes"));
Setup.Load(AddDirectory(ConfigDirectory, "setup.conf"));
- if (!(Sources.Load(AddDirectory(ConfigDirectory, "sources.conf"), true, true) &&
- Diseqcs.Load(AddDirectory(ConfigDirectory, "diseqc.conf"), true, Setup.DiSEqC) &&
- Channels.Load(AddDirectory(ConfigDirectory, "channels.conf"), false, true) &&
- Timers.Load(AddDirectory(ConfigDirectory, "timers.conf")) &&
- Commands.Load(AddDirectory(ConfigDirectory, "commands.conf"), true) &&
- RecordingCommands.Load(AddDirectory(ConfigDirectory, "reccmds.conf"), true) &&
- SVDRPhosts.Load(AddDirectory(ConfigDirectory, "svdrphosts.conf"), true) &&
- Keys.Load(AddDirectory(ConfigDirectory, "remote.conf")) &&
- KeyMacros.Load(AddDirectory(ConfigDirectory, "keymacros.conf"), true)
- ))
- EXIT(2);
+ Sources.Load(AddDirectory(ConfigDirectory, "sources.conf"), true, true);
+ Diseqcs.Load(AddDirectory(ConfigDirectory, "diseqc.conf"), true, Setup.DiSEqC);
+ Channels.Load(AddDirectory(ConfigDirectory, "channels.conf"), false, true);
+ Timers.Load(AddDirectory(ConfigDirectory, "timers.conf"));
+ Commands.Load(AddDirectory(ConfigDirectory, "commands.conf"), true);
+ RecordingCommands.Load(AddDirectory(ConfigDirectory, "reccmds.conf"), true);
+ SVDRPhosts.Load(AddDirectory(ConfigDirectory, "svdrphosts.conf"), true);
+ Keys.Load(AddDirectory(ConfigDirectory, "remote.conf"));
+ KeyMacros.Load(AddDirectory(ConfigDirectory, "keymacros.conf"), true);
if (!*cFont::GetFontFileName(Setup.FontOsd)) {
const char *msg = "no fonts available - OSD will not show any text!";