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

aquadran noreply at scummvm.org
Sat Jul 18 11:12:58 UTC 2026


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:
b2aa92e634 WINTERMUTE: Fixed missing save thumbnails in 'The Golden Calf'


Commit: b2aa92e63421c627747a5225bcfa53da0be3bc02
    https://github.com/scummvm/scummvm/commit/b2aa92e63421c627747a5225bcfa53da0be3bc02
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2026-07-18T13:12:46+02:00

Commit Message:
WINTERMUTE: Fixed missing save thumbnails in 'The Golden Calf'

Changed paths:
    engines/wintermute/base/scriptables/script_ext_file.cpp


diff --git a/engines/wintermute/base/scriptables/script_ext_file.cpp b/engines/wintermute/base/scriptables/script_ext_file.cpp
index 1734e3f8806..44f2a171513 100644
--- a/engines/wintermute/base/scriptables/script_ext_file.cpp
+++ b/engines/wintermute/base/scriptables/script_ext_file.cpp
@@ -208,12 +208,21 @@ bool SXFile::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack,
 	//////////////////////////////////////////////////////////////////////////
 	else if (strcmp(name, "Copy") == 0) {
 		stack->correctParams(2);
-		/* const char *dest = */ stack->pop()->getString();
+		const char *dest = stack->pop()->getString();
 		/* bool overwrite = */ stack->pop()->getBool(true);
 
 		if (BaseEngine::instance().getGameId() == "spacemadness") {
-			// Space Madness (to copy bonus wallpapers from data.dcp to /saves/ folder)
-			// games by Rootfix intertainment (to save temporary screenshot as savegame screenshot)
+			// 'Space Madness' (to copy bonus wallpapers from data.dcp to /saves/ folder)
+		} else if (BaseEngine::instance().getGameId() == "goldencalf") {
+			// 'The Golden Calf' (to save temporary screenshot as savegame screenshot)
+			_readFile = _game->_fileManager->openFile(_filename);
+			if (_readFile) {
+				Common::WriteStream *stream = openSfmFileForWrite(dest);
+				stream->writeStream(_readFile);
+				delete stream;
+				close();
+				stack->pushBool(true);
+			}
 		} else {
 			warning("SXFile-Method: Copy not supported");
 		}




More information about the Scummvm-git-logs mailing list