Add run counter, which will be used for periodic stuff like checking for new version
This commit is contained in:
parent
64ba644734
commit
7410f6fd44
2 changed files with 5 additions and 0 deletions
|
@ -52,6 +52,8 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
|
|||
IniFile::Section *general = iniFile.GetOrCreateSection("General");
|
||||
|
||||
general->Get("FirstRun", &bFirstRun, true);
|
||||
general->Get("RunCount", &iRunCount, 0);
|
||||
iRunCount++;
|
||||
general->Get("Enable Logging", &bEnableLogging, true);
|
||||
general->Get("AutoRun", &bAutoRun, true);
|
||||
general->Get("Browse", &bBrowse, false);
|
||||
|
@ -351,6 +353,7 @@ void Config::Save() {
|
|||
// Need to do this somewhere...
|
||||
bFirstRun = false;
|
||||
general->Set("FirstRun", bFirstRun);
|
||||
general->Set("RunCount", iRunCount);
|
||||
general->Set("Enable Logging", bEnableLogging);
|
||||
general->Set("AutoRun", bAutoRun);
|
||||
general->Set("Browse", bBrowse);
|
||||
|
|
|
@ -37,6 +37,8 @@ public:
|
|||
bool bSaveSettings;
|
||||
bool bFirstRun;
|
||||
|
||||
int iRunCount; // To be used to for example check for updates every 10 runs and things like that.
|
||||
|
||||
bool bAutoRun; // start immediately
|
||||
bool bBrowse; // when opening the emulator, immediately show a file browser
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue