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

bluegr noreply at scummvm.org
Thu Jun 13 21:14:52 UTC 2024


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:
a4c28b06e4 GOB: Reuse output file name in cmd_dumpVars()


Commit: a4c28b06e41c099a9adbd9314d5167492fa5fcdc
    https://github.com/scummvm/scummvm/commit/a4c28b06e41c099a9adbd9314d5167492fa5fcdc
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2024-06-14T00:14:36+03:00

Commit Message:
GOB: Reuse output file name in cmd_dumpVars()

Changed paths:
    engines/gob/console.cpp


diff --git a/engines/gob/console.cpp b/engines/gob/console.cpp
index 76118aa88b1..805a6d3dc14 100644
--- a/engines/gob/console.cpp
+++ b/engines/gob/console.cpp
@@ -89,17 +89,16 @@ bool GobConsole::cmd_dumpVars(int argc, const char **argv) {
 
 	Common::DumpFile file;
 
-	const char *variablesdmp = "variables.dmp";
-    if (!file.open("variables.dmp")) {
+	const char *outFile = "variables.dmp";
+    if (!file.open(outFile))
         return true;
-    }
 
 	file.write(_vm->_inter->_variables->getAddressOff8(0), _vm->_inter->_variables->getSize());
 
 	file.flush();
 	file.close();
 
-	debugPrintf("Dumped %s successfully to ScummVM directory\n", variablesdmp);
+	debugPrintf("Dumped %s successfully to ScummVM directory\n", outFile);
 	return true;
 }
 




More information about the Scummvm-git-logs mailing list