aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorTravis Howell2004-06-28 00:40:25 +0000
committerTravis Howell2004-06-28 00:40:25 +0000
commita25f70661bdd7e6e777a7c8934761a074da499cd (patch)
tree5f8a751aff2d878d8df65c2b33649e73c426e68d /simon
parent53af3dc6700a6e7686fbf2e88cea283d6e335124 (diff)
downloadscummvm-rg350-a25f70661bdd7e6e777a7c8934761a074da499cd.tar.gz
scummvm-rg350-a25f70661bdd7e6e777a7c8934761a074da499cd.tar.bz2
scummvm-rg350-a25f70661bdd7e6e777a7c8934761a074da499cd.zip
Correct default paths
svn-id: r14096
Diffstat (limited to 'simon')
-rw-r--r--simon/simon.cpp26
1 files changed, 22 insertions, 4 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index a273088bbf..e1e61a4542 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -287,15 +287,33 @@ SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst)
File::addDefaultDirectory(_gameDataPath + "/EXECUTE/");
} else if (_game & GF_AMIGA) {
gss = PTR(simon1amiga_settings);
-
- // Add default file directories
- File::addDefaultDirectory(_gameDataPath + "/voices/");
- File::addDefaultDirectory(_gameDataPath + "/VOICES/");
} else if (_game & GF_DEMO)
gss = PTR(simon1demo_settings);
else
gss = PTR(simon1_settings);
+ if (!(_game & GF_SIMON2) && (_game & GF_TALKIE)) {
+ // Add default file directories
+ switch(_language) {
+ case 20:
+ File::addDefaultDirectory(_gameDataPath + "/hebrew/");
+ File::addDefaultDirectory(_gameDataPath + "/HEBREW/");
+ break;
+ case 5:
+ File::addDefaultDirectory(_gameDataPath + "/spanish/");
+ File::addDefaultDirectory(_gameDataPath + "/SPANISH/");
+ break;
+ case 3:
+ File::addDefaultDirectory(_gameDataPath + "/ITALIAN/");
+ File::addDefaultDirectory(_gameDataPath + "/ITALIAN/");
+ break;
+ case 2:
+ File::addDefaultDirectory(_gameDataPath + "/french/");
+ File::addDefaultDirectory(_gameDataPath + "/FRENCH/");
+ break;
+ }
+ }
+
_key_pressed = 0;
_game_file = 0;