From 3187b565dd60896c55b3f7e04e3d0b872b4c7a3a Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Fri, 5 Sep 2003 07:36:05 +0000 Subject: Add atarist and macintosh options, since there seem to be no way to detect version been used. svn-id: r9999 --- common/gameDetector.cpp | 12 +++++++++++- common/gameDetector.h | 2 ++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'common') 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; -- cgit v1.2.3