summaryrefslogtreecommitdiff
path: root/plugin/markad.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/markad.cpp')
-rw-r--r--plugin/markad.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/plugin/markad.cpp b/plugin/markad.cpp
index b39aa14..7dc97d1 100644
--- a/plugin/markad.cpp
+++ b/plugin/markad.cpp
@@ -32,12 +32,10 @@ cPluginMarkAd::cPluginMarkAd(void)
setup.whileReplaying=true;
setup.GenIndex=false;
setup.OSDMessage=false;
- setup.BackupMarks=false;
setup.Verbose=false;
setup.NoMargins=false;
setup.HideMainMenuEntry=false;
setup.SecondPass=true;
- setup.IOPrioClass=1;
setup.Log2Rec=false;
setup.LogoOnly=true;
setup.SaveInfo=false;
@@ -130,6 +128,7 @@ bool cPluginMarkAd::Initialize(void)
bool cPluginMarkAd::Start(void)
{
// Start any background activities the plugin shall perform.
+ lastcheck=0;
setup.PluginName=Name();
setup.LogoDir=logodir;
statusMonitor = new cStatusMarkAd(bindir,logodir,&setup);
@@ -150,6 +149,12 @@ void cPluginMarkAd::MainThreadHook(void)
{
// Perform actions in the context of the main program thread.
// WARNING: Use with great care - see PLUGINS.html!
+ time_t now=time(NULL);
+ if (now>(lastcheck+5))
+ {
+ statusMonitor->Check();
+ lastcheck=now;
+ }
}
cString cPluginMarkAd::Active(void)
@@ -185,16 +190,14 @@ bool cPluginMarkAd::SetupParse(const char *Name, const char *Value)
else if (!strcasecmp(Name,"whileRecording")) setup.whileRecording=atoi(Value);
else if (!strcasecmp(Name,"whileReplaying")) setup.whileReplaying=atoi(Value);
else if (!strcasecmp(Name,"OSDMessage")) setup.OSDMessage=atoi(Value);
- else if (!strcasecmp(Name,"BackupMarks")) setup.BackupMarks=atoi(Value);
else if (!strcasecmp(Name,"GenIndex")) setup.GenIndex=atoi(Value);
else if (!strcasecmp(Name,"Verbose")) setup.Verbose=atoi(Value);
else if (!strcasecmp(Name,"IgnoreMargins")) setup.NoMargins=atoi(Value);
else if (!strcasecmp(Name,"HideMainMenuEntry")) setup.HideMainMenuEntry=atoi(Value)?true:false;
else if (!strcasecmp(Name,"SecondPass")) setup.SecondPass=atoi(Value);
- else if (!strcasecmp(Name,"IOPrioClass")) setup.IOPrioClass=atoi(Value);
- else if (!strcasecmp(Name,"SaveInfo")) setup.SaveInfo=atoi(Value);
else if (!strcasecmp(Name,"Log2Rec")) setup.Log2Rec=atoi(Value);
else if (!strcasecmp(Name,"LogoOnly")) setup.LogoOnly=atoi(Value);
+ else if (!strcasecmp(Name,"SaveInfo")) setup.SaveInfo=atoi(Value);
else return false;
return true;
}