[Scummvm-git-logs] scummvm master -> 09c84f8c50880489a9d0a8768808cd3d75f1e151

orgads noreply at scummvm.org
Tue Nov 23 05:40:24 UTC 2021


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:
09c84f8c50 KYRA: Minor optimization in removeSaveState


Commit: 09c84f8c50880489a9d0a8768808cd3d75f1e151
    https://github.com/scummvm/scummvm/commit/09c84f8c50880489a9d0a8768808cd3d75f1e151
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2021-11-23T07:40:10+02:00

Commit Message:
KYRA: Minor optimization in removeSaveState

Changed paths:
    engines/kyra/metaengine.cpp


diff --git a/engines/kyra/metaengine.cpp b/engines/kyra/metaengine.cpp
index 368759634e..17aefcf653 100644
--- a/engines/kyra/metaengine.cpp
+++ b/engines/kyra/metaengine.cpp
@@ -193,7 +193,8 @@ void KyraMetaEngine::removeSaveState(const char *target, int slot) const {
 SaveStateDescriptor KyraMetaEngine::querySaveMetaInfos(const char *target, int slot) const {
 	Common::String filename = Kyra::KyraEngine_v1::getSavegameFilename(target, slot);
 	Common::InSaveFile *in = g_system->getSavefileManager()->openForLoading(filename);
-	const bool nonKyraGame = ConfMan.getDomain(target)->getVal("gameid").equalsIgnoreCase("lol") || ConfMan.getDomain(target)->getVal("gameid").equalsIgnoreCase("eob") || ConfMan.getDomain(target)->getVal("gameid").equalsIgnoreCase("eob2");
+	const Common::String gameId = ConfMan.getDomain(target)->getVal("gameid");
+	const bool nonKyraGame = gameId.equalsIgnoreCase("lol") || gameId.equalsIgnoreCase("eob") || gameId.equalsIgnoreCase("eob2");
 
 	if (in) {
 		Kyra::KyraEngine_v1::SaveHeader header;




More information about the Scummvm-git-logs mailing list