aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sword1/music.cpp2
-rw-r--r--sword1/sword1.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/sword1/music.cpp b/sword1/music.cpp
index 586a93638e..b8b6d010fe 100644
--- a/sword1/music.cpp
+++ b/sword1/music.cpp
@@ -184,7 +184,7 @@ void Music::startMusic(int32 tuneId, int32 loopFlag) {
newStream = 0;
}
char fName[20];
- sprintf(fName, "music/%s.wav", _tuneList[tuneId]);
+ sprintf(fName, "%s.wav", _tuneList[tuneId]);
if (_handles[newStream].play(fName, loopFlag != 0)) {
delete _converter[newStream];
_converter[newStream] = makeRateConverter(_handles[newStream].getRate(), _mixer->getOutputRate(), _handles[newStream].isStereo(), false);
diff --git a/sword1/sword1.cpp b/sword1/sword1.cpp
index d129d5bee1..da41398659 100644
--- a/sword1/sword1.cpp
+++ b/sword1/sword1.cpp
@@ -100,9 +100,11 @@ void SwordEngine::initialize(void) {
// Add default file directories
File::addDefaultDirectory(_gameDataPath + "/CLUSTERS/");
+ File::addDefaultDirectory(_gameDataPath + "/MUSIC/");
File::addDefaultDirectory(_gameDataPath + "/SPEECH/");
File::addDefaultDirectory(_gameDataPath + "/VIDEO/");
File::addDefaultDirectory(_gameDataPath + "/clusters/");
+ File::addDefaultDirectory(_gameDataPath + "/music/");
File::addDefaultDirectory(_gameDataPath + "/speech/");
File::addDefaultDirectory(_gameDataPath + "/video/");