[Scummvm-git-logs] scummvm master -> 5f7926da7e32e7bf7c29b451c2d30325f7825c65
dreammaster
noreply at scummvm.org
Sun Nov 27 02:45:31 UTC 2022
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
b4be11f553 ENGINES: Added checkExtendedSaves method to AdvancedMetaEngine
5f7926da7e DEVTOOLS: CREATE_ENGINE: Changed hasFeature to use checkExtendedSaves
Commit: b4be11f553b25c32d7e55bd0a7f2b8dc26107e91
https://github.com/scummvm/scummvm/commit/b4be11f553b25c32d7e55bd0a7f2b8dc26107e91
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2022-11-26T18:44:08-08:00
Commit Message:
ENGINES: Added checkExtendedSaves method to AdvancedMetaEngine
Changed paths:
engines/advancedDetector.cpp
engines/advancedDetector.h
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp
index dc99a8eb0c3..0d1ff701e44 100644
--- a/engines/advancedDetector.cpp
+++ b/engines/advancedDetector.cpp
@@ -966,3 +966,14 @@ void AdvancedMetaEngineDetection::detectClashes() const {
debug(0, "WARNING: Detection gameId for '%s' in engine '%s' has no games in the detection table", k._key.c_str(), getName());
}
}
+
+bool AdvancedMetaEngine::checkExtendedSaves(MetaEngineFeature f) const {
+ return (f == kSavesUseExtendedFormat) ||
+ (f == kSimpleSavesNames) ||
+ (f == kSupportsListSaves) ||
+ (f == kSupportsDeleteSave) ||
+ (f == kSavesSupportMetaInfo) ||
+ (f == kSavesSupportThumbnail) ||
+ (f == kSavesSupportCreationDate) ||
+ (f == kSavesSupportPlayTime);
+}
diff --git a/engines/advancedDetector.h b/engines/advancedDetector.h
index ea3f4467c2e..c20812cd9d2 100644
--- a/engines/advancedDetector.h
+++ b/engines/advancedDetector.h
@@ -532,6 +532,12 @@ protected:
* Returns a map containing all the extra game GUI options the engine supports.
*/
virtual const ADExtraGuiOptionsMap *getAdvancedExtraGuiOptions() const { return nullptr; }
+
+ /**
+ * Returns the set of features that need to be enabled for the
+ * extended save format to work
+ */
+ bool checkExtendedSaves(MetaEngineFeature f) const;
};
/**
Commit: 5f7926da7e32e7bf7c29b451c2d30325f7825c65
https://github.com/scummvm/scummvm/commit/5f7926da7e32e7bf7c29b451c2d30325f7825c65
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2022-11-26T18:44:08-08:00
Commit Message:
DEVTOOLS: CREATE_ENGINE: Changed hasFeature to use checkExtendedSaves
Changed paths:
devtools/create_engine/files/metaengine.cpp
diff --git a/devtools/create_engine/files/metaengine.cpp b/devtools/create_engine/files/metaengine.cpp
index 9cb9a61dc49..5a7fdec53b8 100644
--- a/devtools/create_engine/files/metaengine.cpp
+++ b/devtools/create_engine/files/metaengine.cpp
@@ -58,15 +58,7 @@ Common::Error XyzzyMetaEngine::createInstance(OSystem *syst, Engine **engine, co
}
bool XyzzyMetaEngine::hasFeature(MetaEngineFeature f) const {
- return
- (f == kSavesUseExtendedFormat) ||
- (f == kSimpleSavesNames) ||
- (f == kSupportsListSaves) ||
- (f == kSupportsDeleteSave) ||
- (f == kSavesSupportMetaInfo) ||
- (f == kSavesSupportThumbnail) ||
- (f == kSavesSupportCreationDate) ||
- (f == kSavesSupportPlayTime) ||
+ return checkExtendedSaves(f) ||
(f == kSupportsLoadingDuringStartup);
}
More information about the Scummvm-git-logs
mailing list