@@ -272,6 +272,7 @@
CurrentChannel = -1;
CurrentVolume = MAXVOLUME;
CurrentDolby = 0;
+ AbortWhenPluginFails = 0;
}
cSetup& cSetup::operator= (const cSetup &s)
@@ -432,6 +433,7 @@
else if (!strcasecmp(Name, "CurrentChannel")) CurrentChannel = atoi(Value);
else if (!strcasecmp(Name, "CurrentVolume")) CurrentVolume = atoi(Value);
else if (!strcasecmp(Name, "CurrentDolby")) CurrentDolby = atoi(Value);
+ else if (!strcasecmp(Name, "AbortWhenPluginFails")) AbortWhenPluginFails = atoi(Value);
else
return false;
return true;
@@ -499,6 +501,7 @@
Store("CurrentChannel", CurrentChannel);
Store("CurrentVolume", CurrentVolume);
Store("CurrentDolby", CurrentDolby);
+ Store("AbortWhenPluginFails", AbortWhenPluginFails);
Sort();
@@ -238,6 +238,7 @@
int CurrentChannel;
int CurrentVolume;
int CurrentDolby;
+ int AbortWhenPluginFails;
int __EndData__;
cSetup(void);
cSetup& operator= (const cSetup &s);
@@ -4207,6 +4207,27 @@
"Kanalivahetuse ooteaeg (s)",
"Zap timeout (s)",
},
+ { "Setup.Miscellaneous$Abort when Plugin fails to load",
+ "Abbrechen wenn Plugin nicht lädt",
+ "",// TODO
+ "",// TODO
+ "",// TODO
+ "",// TODO
+ "",// TODO
+ "",// TODO
+ "",// TODO
+ "",// TODO
+ "",// TODO
+ "",// TODO
+ "",// TODO
+ "",// TODO
+ "",// TODO
+ "",// TODO
+ "",// TODO
+ "",// TODO
+ "",// TODO
+ ""// TODO
+ },
// The days of the week:
{ "MTWTFSS",
"MDMDFSS",
@@ -2573,6 +2573,7 @@
Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Min. user inactivity (min)"), &data.MinUserInactivity));
Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$SVDRP timeout (s)"), &data.SVDRPTimeout));
Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Zap timeout (s)"), &data.ZapTimeout));
+ Add(new cMenuEditBoolItem( tr("Setup.Miscellaneous$Abort when Plugin fails to load"), &data.AbortWhenPluginFails));
}
// --- cMenuSetupPluginItem --------------------------------------------------
@@ -310,7 +310,8 @@
{
for (cDll *dll = dlls.First(); dll; dll = dlls.Next(dll)) {
if (!dll->Load(Log))
- return false;
+ if (Setup.AbortWhenPluginFails)
+ return false;
}
return true;
}