[Scummvm-git-logs] scummvm master -> cf81696fc70730ce6164d303455c08bc639aa481

aquadran noreply at scummvm.org
Wed Jul 23 12:48:02 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
cf81696fc7 WINTERMUTE: Cleanup in base_game


Commit: cf81696fc70730ce6164d303455c08bc639aa481
    https://github.com/scummvm/scummvm/commit/cf81696fc70730ce6164d303455c08bc639aa481
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2025-07-23T14:47:55+02:00

Commit Message:
WINTERMUTE: Cleanup in base_game

Changed paths:
    engines/wintermute/base/base_game.cpp


diff --git a/engines/wintermute/base/base_game.cpp b/engines/wintermute/base/base_game.cpp
index 29e905fe2f9..20ac0ee9b0d 100644
--- a/engines/wintermute/base/base_game.cpp
+++ b/engines/wintermute/base/base_game.cpp
@@ -2384,10 +2384,6 @@ bool BaseGame::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack
 	//////////////////////////////////////////////////////////////////////////
 	else if (strcmp(name, "ShowStatusLine") == 0) {
 		stack->correctParams(0);
-		// Block kept to show intention of opcode.
-		/*#ifdef __IPHONEOS__
-		        IOS_ShowStatusLine(TRUE);
-		#endif*/
 		stack->pushNULL();
 
 		return STATUS_OK;
@@ -2398,10 +2394,6 @@ bool BaseGame::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack
 	//////////////////////////////////////////////////////////////////////////
 	else if (strcmp(name, "HideStatusLine") == 0) {
 		stack->correctParams(0);
-		// Block kept to show intention of opcode.
-		/*#ifdef __IPHONEOS__
-		        IOS_ShowStatusLine(FALSE);
-		#endif*/
 		stack->pushNULL();
 
 		return STATUS_OK;
@@ -2812,8 +2804,6 @@ ScValue *BaseGame::scGetProperty(const Common::String &name) {
 	// HardwareTL
 	//////////////////////////////////////////////////////////////////////////
 	else if (name == "HardwareTL") {
-		// TODO: Once we have a TinyGL renderer, we could potentially return false here
-		// otherwise, as long as WME3D is enabled, vertex processing is done by the hardware
 		_scValue->setBool(true);
 		return _scValue;
 	}
@@ -2836,6 +2826,18 @@ ScValue *BaseGame::scGetProperty(const Common::String &name) {
 		return _scValue;
 	}
 
+	//////////////////////////////////////////////////////////////////////////
+	// MostRecentSaveSlot (RO)
+	//////////////////////////////////////////////////////////////////////////
+	else if (name == "MostRecentSaveSlot") {
+		if (!ConfMan.hasKey("most_recent_saveslot")) {
+			_scValue->setInt(-1);
+		} else {
+			_scValue->setInt(ConfMan.getInt("most_recent_saveslot"));
+		}
+		return _scValue;
+	}
+
 	//////////////////////////////////////////////////////////////////////////
 	// AutoSaveOnExit
 	//////////////////////////////////////////////////////////////////////////
@@ -2997,18 +2999,6 @@ ScValue *BaseGame::scGetProperty(const Common::String &name) {
 		return _scValue;
 	}
 
-	//////////////////////////////////////////////////////////////////////////
-	// MostRecentSaveSlot (RO)
-	//////////////////////////////////////////////////////////////////////////
-	else if (name == "MostRecentSaveSlot") {
-		if (!ConfMan.hasKey("most_recent_saveslot")) {
-			_scValue->setInt(-1);
-		} else {
-			_scValue->setInt(ConfMan.getInt("most_recent_saveslot"));
-		}
-		return _scValue;
-	}
-
 	//////////////////////////////////////////////////////////////////////////
 	// Store (RO)
 	//////////////////////////////////////////////////////////////////////////




More information about the Scummvm-git-logs mailing list