diff options
author | Christopher Page | 2008-07-25 21:24:09 +0000 |
---|---|---|
committer | Christopher Page | 2008-07-25 21:24:09 +0000 |
commit | cbe0af1c194525543ef7cd5c3605b738c90cc010 (patch) | |
tree | 2130016bc98eea682a48c72694fa0ede58ab8dc0 /engines/parallaction/parallaction_ns.cpp | |
parent | dac805c281d9dd37140644315bc968d7f312a265 (diff) | |
download | scummvm-rg350-cbe0af1c194525543ef7cd5c3605b738c90cc010.tar.gz scummvm-rg350-cbe0af1c194525543ef7cd5c3605b738c90cc010.tar.bz2 scummvm-rg350-cbe0af1c194525543ef7cd5c3605b738c90cc010.zip |
Added --list-saves support for PARALLACTION, and -x support for NipponSafes
svn-id: r33292
Diffstat (limited to 'engines/parallaction/parallaction_ns.cpp')
-rw-r--r-- | engines/parallaction/parallaction_ns.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/engines/parallaction/parallaction_ns.cpp b/engines/parallaction/parallaction_ns.cpp index e8264238a1..2f7c3dc572 100644 --- a/engines/parallaction/parallaction_ns.cpp +++ b/engines/parallaction/parallaction_ns.cpp @@ -240,7 +240,21 @@ int Parallaction_ns::go() { _globalTable = _disk->loadTable("global"); - guiStart(); + // If requested, load a savegame instead of showing the intro + if (ConfMan.hasKey("save_slot")) { + _gameToLoad = ConfMan.getInt("save_slot"); + if (_gameToLoad < 0 || _gameToLoad > 99) + _gameToLoad = -1; + } + if (_gameToLoad == -1) { + guiStart(); + } else { + _disk->selectArchive((getFeatures() & GF_DEMO) ? "disk0" : "disk1"); + _language = guiChooseLanguage(); + _disk->setLanguage(_language); + doLoadGame(_gameToLoad); + } + if (quit()) return _eventMan->shouldRTL(); |