git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@138 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
albertzeyer
2009-07-24 12:32:48 +00:00
parent b1a6815200
commit 1b63f86ea2

View File

@@ -130,13 +130,12 @@ int main(int argc, char *argv[])
Game->preallocateCKP(&CKP);
CSettings *Settings;
Settings = new CSettings;
CSettings Settings;
if(Settings->loadDrvCfg() != 0) // Always return 0 if no ERROR
if(Settings.loadDrvCfg() != 0) // Always return 0 if no ERROR
{
g_pLogFile->textOut(RED,"First time message: CKP didn't find the driver config file. However, it is going to generate one basing on default configurations.<br>");
Settings->saveDrvCfg();
Settings.saveDrvCfg();
}
if(readCommandLine(argc, argv, &CKP) != 0)
@@ -151,13 +150,12 @@ int main(int argc, char *argv[])
return 1;
}
Settings->loadDefaultGameCfg(CKP.Option);
if(Settings->loadGameCfg(CKP.Option) != 0)
Settings.loadDefaultGameCfg(CKP.Option);
if(Settings.loadGameCfg(CKP.Option) != 0)
{
g_pLogFile->textOut(PURPLE,"There are no settings! CKP is going to use the default options. You can change them later in the game.<br>");
Settings->saveGameCfg(CKP.Option);
Settings.saveGameCfg(CKP.Option);
}
delete Settings; Settings = NULL;
if(loadResourcesforStartMenu(&CKP, Game) != 0)
{