diff options
author | Travis Howell | 2003-09-05 07:36:05 +0000 |
---|---|---|
committer | Travis Howell | 2003-09-05 07:36:05 +0000 |
commit | 3187b565dd60896c55b3f7e04e3d0b872b4c7a3a (patch) | |
tree | 745fff5578743778bd0720d0617e98b5fd48d799 /common | |
parent | 7bc63a0ce33336684c8b690fea639e79ebbf5d32 (diff) | |
download | scummvm-rg350-3187b565dd60896c55b3f7e04e3d0b872b4c7a3a.tar.gz scummvm-rg350-3187b565dd60896c55b3f7e04e3d0b872b4c7a3a.tar.bz2 scummvm-rg350-3187b565dd60896c55b3f7e04e3d0b872b4c7a3a.zip |
Add atarist and macintosh options, since there seem to be no way to detect version been used.
svn-id: r9999
Diffstat (limited to 'common')
-rw-r--r-- | common/gameDetector.cpp | 12 | ||||
-rw-r--r-- | common/gameDetector.h | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp index 2b705c2a8a..25ffcc3936 100644 --- a/common/gameDetector.cpp +++ b/common/gameDetector.cpp @@ -174,6 +174,8 @@ GameDetector::GameDetector() { _music_volume = kDefaultMusicVolume; _sfx_volume = kDefaultSFXVolume; _amiga = false; + _atari_st = false; + _macintosh = false; _language = 0; #ifndef DISABLE_SCUMM @@ -281,6 +283,8 @@ void GameDetector::updateconfig() { const char *val; _amiga = g_config->getBool("amiga", _amiga); + _atari_st = g_config->getBool("atari_st", _atari_st); + _macintosh = g_config->getBool("macintosh", _macintosh); _save_slot = g_config->getInt("save_slot", _save_slot); @@ -513,7 +517,13 @@ void GameDetector::parseCommandLine(int argc, char **argv) { } else long_option_value = true; - if (!strcmp (s, "multi-midi")) { + if (!strcmp (s, "atari-st")) { + _atari_st = long_option_value; + g_config->setBool ("atari_st", _atari_st); + } else if (!strcmp (s, "macintosh")) { + _macintosh = long_option_value; + g_config->setBool ("macintosh", _macintosh); + } else if (!strcmp (s, "multi-midi")) { _multi_midi = long_option_value; g_config->setBool ("multi_midi", _multi_midi); } else if (!strcmp (s, "native-mt32")) { diff --git a/common/gameDetector.h b/common/gameDetector.h index df43f68095..9641f6dc0a 100644 --- a/common/gameDetector.h +++ b/common/gameDetector.h @@ -124,6 +124,8 @@ public: int _music_volume; int _sfx_volume; bool _amiga; + bool _atari_st; + bool _macintosh; int _language; bool _demo_mode; |