aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorFilippos Karapetis2011-02-10 16:48:29 +0000
committerFilippos Karapetis2011-02-10 16:48:29 +0000
commite4b46bd159419c96c683a6a19b63416fb368e6d8 (patch)
tree96bd7fae76e66185fa8a3e05cdc7ad3c83b45796 /engines/sci/engine
parent80347e96303ff707d394759297547b3392fdb64b (diff)
downloadscummvm-rg350-e4b46bd159419c96c683a6a19b63416fb368e6d8.tar.gz
scummvm-rg350-e4b46bd159419c96c683a6a19b63416fb368e6d8.tar.bz2
scummvm-rg350-e4b46bd159419c96c683a6a19b63416fb368e6d8.zip
SCI: Added resource manager support for changing the audio directory dynamically. Also,
moved some audio-specific resource code inside resource_audio.cpp This functionality is used by kSetLanguage(), called when switching the language in MUMG Deluxe from the game's main menu. svn-id: r55872
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/ksound.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/engine/ksound.cpp b/engines/sci/engine/ksound.cpp
index e006e22482..911713d0bd 100644
--- a/engines/sci/engine/ksound.cpp
+++ b/engines/sci/engine/ksound.cpp
@@ -284,10 +284,10 @@ reg_t kSetLanguage(EngineState *s, int argc, reg_t *argv) {
// the audio language between English and Spanish.
// Basically, it instructs the interpreter to switch the audio resources
// (resource.aud and associated map files) and load them from the "Spanish"
- // subdirectory instead. Therefore, this is only needed for the Spanish
- // version, and it needs support at the resource manager level.
- Common::String languageFolder = s->_segMan->getString(argv[0]);
- warning("SetLanguage: set audio resource folder to '%s'", languageFolder.c_str());
+ // subdirectory instead.
+ Common::String audioDirectory = s->_segMan->getString(argv[0]);
+ //warning("SetLanguage: set audio resource directory to '%s'", audioDirectory.c_str());
+ g_sci->getResMan()->changeAudioDirectory(audioDirectory);
return s->r_acc;
}