Jeck - As prior, but for sounds and music as well. Use CommonRes->ssLoadMusic / CommonRes->ssLoadSample.

This commit is contained in:
wagic.jeck
2009-08-27 06:31:38 +00:00
parent 5e14efed3c
commit 807eea7ddb
10 changed files with 644 additions and 629 deletions

View File

@@ -66,12 +66,17 @@ void GameApp::Create()
options.theGame = this;
//Test for Music files presence
std::ifstream file(RESPATH"/sound/Track0.mp3");
string filepath = RESPATH;
filepath = filepath + "/" + CommonRes->musicFile("Track0.mp3");
std::ifstream file(filepath.c_str());
if (file)
file.close();
else
HasMusic = 0;
std::ifstream file2(RESPATH"/sound/Track1.mp3");
filepath = RESPATH;
filepath = filepath + "/" + CommonRes->musicFile("Track1.mp3");
std::ifstream file2(filepath.c_str());
if (file2)
file2.close();
else