aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorĽubomír Remák2018-09-01 22:45:42 +0200
committerĽubomír Remák2018-09-01 22:45:42 +0200
commitbde1556b979af1dbffa02fc1474895d574f5917a (patch)
tree7f0def559aff82dd2211149ce24004e6a875bea1
parentcc09b6667144d047cf7e91376973571ef0972c01 (diff)
downloadscummvm-rg350-bde1556b979af1dbffa02fc1474895d574f5917a.tar.gz
scummvm-rg350-bde1556b979af1dbffa02fc1474895d574f5917a.tar.bz2
scummvm-rg350-bde1556b979af1dbffa02fc1474895d574f5917a.zip
MUTATIONOFJB: Add support for loading save during startup.
-rw-r--r--engines/mutationofjb/detection.cpp2
-rw-r--r--engines/mutationofjb/mutationofjb.cpp6
2 files changed, 6 insertions, 2 deletions
diff --git a/engines/mutationofjb/detection.cpp b/engines/mutationofjb/detection.cpp
index 3ec82e83bc..0235f8071e 100644
--- a/engines/mutationofjb/detection.cpp
+++ b/engines/mutationofjb/detection.cpp
@@ -108,7 +108,7 @@ public:
}
virtual bool hasFeature(MetaEngineFeature f) const override {
- if (f == kSupportsListSaves || f == kSimpleSavesNames) {
+ if (f == kSupportsListSaves || f == kSimpleSavesNames || f == kSupportsLoadingDuringStartup) {
return true;
}
diff --git a/engines/mutationofjb/mutationofjb.cpp b/engines/mutationofjb/mutationofjb.cpp
index 1537646f9e..d96d1658b8 100644
--- a/engines/mutationofjb/mutationofjb.cpp
+++ b/engines/mutationofjb/mutationofjb.cpp
@@ -294,7 +294,11 @@ Common::Error MutationOfJBEngine::run() {
setupCursor();
- _game->changeScene(13, false); // Initial scene.
+ if (ConfMan.hasKey("save_slot")) {
+ loadGameState(ConfMan.getInt("save_slot"));
+ } else {
+ _game->changeScene(13, false); // Initial scene.
+ }
while (!shouldQuit()) {
Common::Event event;