diff options
| -rw-r--r-- | common/gameDetector.cpp | 6 | ||||
| -rw-r--r-- | common/gameDetector.h | 1 | ||||
| -rw-r--r-- | scumm/scummvm.cpp | 3 |
3 files changed, 8 insertions, 2 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp index a3fd82a58b..d918169b5a 100644 --- a/common/gameDetector.cpp +++ b/common/gameDetector.cpp @@ -280,7 +280,9 @@ GameDetector::~GameDetector() { void GameDetector::updateconfig() { const char *val; - _platform = g_config->getBool("amiga", _platform); + _amiga = g_config->getBool("amiga", _amiga); + + _platform = g_config->getInt("platform", _platform); _save_slot = g_config->getInt("save_slot", _save_slot); @@ -513,7 +515,7 @@ void GameDetector::parseCommandLine(int argc, char **argv) { else goto ShowHelpAndExit; - g_config->setBool ("platform", _platform); + g_config->setInt ("platform", _platform); break; } diff --git a/common/gameDetector.h b/common/gameDetector.h index 68c74cdede..347539d74d 100644 --- a/common/gameDetector.h +++ b/common/gameDetector.h @@ -123,6 +123,7 @@ public: int _master_volume; int _music_volume; int _sfx_volume; + bool _amiga; int _platform; int _language; diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp index 1598b25618..d6efb51679 100644 --- a/scumm/scummvm.cpp +++ b/scumm/scummvm.cpp @@ -232,6 +232,9 @@ const VersionSettings *Engine_SCUMM_targetList() { Engine *Engine_SCUMM_create(GameDetector *detector, OSystem *syst) { Engine *engine; + if (detector->_amiga) + detector->_game.features |= GF_AMIGA; + switch (detector->_platform) { case 1: detector->_game.features |= GF_AMIGA; |
