diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2014-08-12 21:24:33 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2014-08-12 21:24:33 +0200 |
commit | e4d52d9afbf6aeb090b225cc4852936dd3be5017 (patch) | |
tree | ed3e453023b1592220fd286d26d64e038a0a953c /src/app | |
parent | 74312b0405d6fb5ed75c675ceed471e1e5086f00 (diff) | |
download | colobot-e4d52d9afbf6aeb090b225cc4852936dd3be5017.tar.gz colobot-e4d52d9afbf6aeb090b225cc4852936dd3be5017.tar.bz2 colobot-e4d52d9afbf6aeb090b225cc4852936dd3be5017.zip |
CProfile refactoring
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/app.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/app/app.cpp b/src/app/app.cpp index 83a520a..42ebd39 100644 --- a/src/app/app.cpp +++ b/src/app/app.cpp @@ -386,14 +386,14 @@ bool CApplication::Create() GetLogger()->Info("Creating CApplication\n"); - if (!GetProfile().InitCurrentDirectory()) + if (!GetProfile().Init()) { GetLogger()->Warn("Config not found. Default values will be used!\n"); defaultValues = true; } else { - if (!m_customDataPath && GetProfile().GetLocalProfileString("Resources", "Data", path)) + if (!m_customDataPath && GetProfile().GetStringProperty("Resources", "Data", path)) m_dataPath = path; } @@ -411,7 +411,7 @@ bool CApplication::Create() m_gameData->SetDataDir(std::string(m_dataPath)); m_gameData->Init(); - if (GetProfile().GetLocalProfileString("Language", "Lang", path)) { + if (GetProfile().GetStringProperty("Language", "Lang", path)) { Language language; if (ParseLanguage(path, language)) { m_language = language; @@ -472,7 +472,7 @@ bool CApplication::Create() // load settings from profile int iValue; - if ( GetProfile().GetLocalProfileInt("Setup", "Resolution", iValue) ) + if ( GetProfile().GetIntProperty("Setup", "Resolution", iValue) ) { std::vector<Math::IntPoint> modes; GetVideoResolutionList(modes, true, true); @@ -480,7 +480,7 @@ bool CApplication::Create() m_deviceConfig.size = modes.at(iValue); } - if ( GetProfile().GetLocalProfileInt("Setup", "Fullscreen", iValue) ) + if ( GetProfile().GetIntProperty("Setup", "Fullscreen", iValue) ) { m_deviceConfig.fullScreen = (iValue == 1); } |