summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-05-11 13:44:58 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-05-11 13:44:58 +0200
commit51eb880da0365236e6a08aca3b1d84b14f6294b3 (patch)
treec05286856f7a422ce95b547935c30ae7fb0ae60e /config.c
parent0fac78954c1d1afeaa772baa4daa0a6e52e1e0a2 (diff)
downloadvdr-51eb880da0365236e6a08aca3b1d84b14f6294b3.tar.gz
vdr-51eb880da0365236e6a08aca3b1d84b14f6294b3.tar.bz2
Improved implementation of setup menus for plugins
Diffstat (limited to 'config.c')
-rw-r--r--config.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/config.c b/config.c
index 6068d909..eeb96eb5 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.99 2002/05/05 12:00:00 kls Exp $
+ * $Id: config.c 1.100 2002/05/11 12:05:22 kls Exp $
*/
#include "config.h"
@@ -1073,14 +1073,19 @@ bool cSetup::Load(const char *FileName)
if (cConfig<cSetupLine>::Load(FileName, true)) {
bool result = true;
for (cSetupLine *l = First(); l; l = Next(l)) {
+ bool error = false;
if (l->Plugin()) {
cPlugin *p = cPluginManager::GetPlugin(l->Plugin());
if (p && !p->SetupParse(l->Name(), l->Value()))
- result = false;
+ error = true;
}
else {
if (!Parse(l->Name(), l->Value()))
- result = false;
+ error = true;
+ }
+ if (error) {
+ esyslog(LOG_ERR, "ERROR: unknown config parameter: %s%s%s = %s", l->Plugin() ? l->Plugin() : "", l->Plugin() ? "." : "", l->Name(), l->Value());
+ result = false;
}
}
return result;