diff options
author | krzys-h <krzys_h@interia.pl> | 2013-05-04 11:56:03 +0200 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2013-05-04 11:56:03 +0200 |
commit | 6333d2d38e9801f67925cae194b07abcf8f1260e (patch) | |
tree | f19554b9449afcd3f540f7a133d35cb043c65db7 /src/app/app.cpp | |
parent | c3e95d40a2839fb8d00ff7b1c61aa513da0ebcea (diff) | |
download | colobot-6333d2d38e9801f67925cae194b07abcf8f1260e.tar.gz colobot-6333d2d38e9801f67925cae194b07abcf8f1260e.tar.bz2 colobot-6333d2d38e9801f67925cae194b07abcf8f1260e.zip |
Removed most of "No such node" messages
Diffstat (limited to 'src/app/app.cpp')
-rw-r--r-- | src/app/app.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/app/app.cpp b/src/app/app.cpp index 79c00c9..616caf9 100644 --- a/src/app/app.cpp +++ b/src/app/app.cpp @@ -364,6 +364,8 @@ bool CApplication::Create() return false; } + GetProfile().SetLocalProfileString("Resources", "Data", m_dataPath); + SetLanguage(m_language); //Create the sound instance. @@ -377,6 +379,11 @@ bool CApplication::Create() m_sound->Create(true); // Cache sound files + if (defaultValues) { + GetProfile().SetLocalProfileString("Resources", "Sound", GetDataSubdirPath(DIR_SOUND)); + GetProfile().SetLocalProfileString("Resources", "Music", GetDataSubdirPath(DIR_MUSIC)); + } + if (GetProfile().GetLocalProfileString("Resources", "Sound", path)) { m_sound->CacheAll(path); } else { @@ -485,7 +492,7 @@ bool CApplication::Create() m_modelManager = new Gfx::CModelManager(m_engine); // Create the robot application. - m_robotMain = new CRobotMain(this); + m_robotMain = new CRobotMain(this, !defaultValues); if (defaultValues) m_robotMain->CreateIni(); |