diff options
author | Filippos Karapetis | 2014-12-08 01:08:27 +0200 |
---|---|---|
committer | Filippos Karapetis | 2014-12-08 01:08:27 +0200 |
commit | ec1fdeb25ad6b2d9aae69a544f45eb7fc5e189b8 (patch) | |
tree | 208ba880f260ae7bc9e3e2239bc2db28dfc0c7d6 /engines/zvision/zvision.cpp | |
parent | f2511e5a9ecfebdf5c03319acb9466e070fa3d06 (diff) | |
download | scummvm-rg350-ec1fdeb25ad6b2d9aae69a544f45eb7fc5e189b8.tar.gz scummvm-rg350-ec1fdeb25ad6b2d9aae69a544f45eb7fc5e189b8.tar.bz2 scummvm-rg350-ec1fdeb25ad6b2d9aae69a544f45eb7fc5e189b8.zip |
ZVISION: Implement several advanced engine features and ScummVM dialogs
The functionality to return to launcher, list saves, delete saves, load
games from the launcher and load and save games during runtime has been
implemented. Also, ScummVM save/load dialogs have been implemented.
Saved games now have three numbers in their file extension, bumping the
possible save game slots up to 999
Diffstat (limited to 'engines/zvision/zvision.cpp')
-rw-r--r-- | engines/zvision/zvision.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp index af9d26a350..8a44ccebea 100644 --- a/engines/zvision/zvision.cpp +++ b/engines/zvision/zvision.cpp @@ -96,7 +96,8 @@ ZVision::ZVision(OSystem *syst, const ZVisionGameDescription *gameDesc) _audioId(0), _rendDelay(2), _kbdVelocity(0), - _mouseVelocity(0) { + _mouseVelocity(0), + _videoIsPlaying(false) { debug(1, "ZVision::ZVision"); @@ -205,6 +206,10 @@ void ZVision::initialize() { Common::Error ZVision::run() { initialize(); + // Check if a saved game is to be loaded from the launcher + if (ConfMan.hasKey("save_slot")) + _saveManager->loadGame(ConfMan.getInt("save_slot")); + // Main loop while (!shouldQuit()) { _clock.update(); @@ -327,7 +332,7 @@ void ZVision::pauseEngineIntern(bool pause) { } Common::String ZVision::generateSaveFileName(uint slot) { - return Common::String::format("%s.%02u", _targetName.c_str(), slot); + return Common::String::format("%s.%03u", _targetName.c_str(), slot); } Common::String ZVision::generateAutoSaveFileName() { |