[Scummvm-git-logs] scummvm master -> cb2d47e3dff9a2b043923b8db1a91fa852d05a80
sluicebox
noreply at scummvm.org
Mon Nov 27 22:32:56 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
cb2d47e3df BBVS: Disable ScummVM autosave
Commit: cb2d47e3dff9a2b043923b8db1a91fa852d05a80
https://github.com/scummvm/scummvm/commit/cb2d47e3dff9a2b043923b8db1a91fa852d05a80
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2023-11-27T14:31:51-08:00
Commit Message:
BBVS: Disable ScummVM autosave
This engine automatically saves to slot zero on every room change.
Enabling ScummVM autosave caused the game to be frequently interrupted
with message boxes prompting how to handle the conflict.
Changed paths:
engines/bbvs/bbvs.h
engines/bbvs/metaengine.cpp
diff --git a/engines/bbvs/bbvs.h b/engines/bbvs/bbvs.h
index 63c849f16d7..9a78eda655f 100644
--- a/engines/bbvs/bbvs.h
+++ b/engines/bbvs/bbvs.h
@@ -252,6 +252,12 @@ public:
bool isLoogieDemo() const;
bool isLoogieAltDemo() const;
+ /**
+ * Disable support for ScummVM autosaves.
+ * This engine automatically saves to slot zero on every room change.
+ * The Continue button on the main menu loads this save.
+ */
+ int getAutosaveSlot() const override { return -1; }
private:
Graphics::PixelFormat _pixelFormat;
diff --git a/engines/bbvs/metaengine.cpp b/engines/bbvs/metaengine.cpp
index f1fff5db016..fc1fcb399b5 100644
--- a/engines/bbvs/metaengine.cpp
+++ b/engines/bbvs/metaengine.cpp
@@ -57,6 +57,9 @@ public:
SaveStateList listSaves(const char *target) const override;
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const override;
void removeSaveState(const char *target, int slot) const override;
+
+ // Disable autosave (see mirrored method in bbvs.h for detailed explanation)
+ int getAutosaveSlot() const override { return -1; }
};
bool BbvsMetaEngine::hasFeature(MetaEngineFeature f) const {
More information about the Scummvm-git-logs
mailing list