From a25f70661bdd7e6e777a7c8934761a074da499cd Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 28 Jun 2004 00:40:25 +0000 Subject: Correct default paths svn-id: r14096 --- simon/simon.cpp | 26 ++++++++++++++++++++++---- 1 file 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; -- cgit v1.2.3