[Scummvm-git-logs] scummvm master -> 95bd9d835273cc9ffa8751f2610290d60981c755

aquadran noreply at scummvm.org
Sun May 25 14:54:11 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:
95bd9d8352 WINTERMUTE: Corrected return status for error flow


Commit: 95bd9d835273cc9ffa8751f2610290d60981c755
    https://github.com/scummvm/scummvm/commit/95bd9d835273cc9ffa8751f2610290d60981c755
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2025-05-25T16:54:07+02:00

Commit Message:
WINTERMUTE: Corrected return status for error flow

Changed paths:
    engines/wintermute/wintermute.cpp


diff --git a/engines/wintermute/wintermute.cpp b/engines/wintermute/wintermute.cpp
index 08aeb08d0d3..d7aa2e4a56f 100644
--- a/engines/wintermute/wintermute.cpp
+++ b/engines/wintermute/wintermute.cpp
@@ -185,7 +185,7 @@ int WintermuteEngine::init() {
 		if (dialog.runModal() != GUI::kMessageOK) {
 			delete _game;
 			_game = nullptr;
-			return false;
+			return 1;
 		}
 	}
 	#endif
@@ -253,7 +253,7 @@ int WintermuteEngine::init() {
 		_game->LOG(ret, "Error loading game file. Exiting.");
 		delete _game;
 		_game = nullptr;
-		return false;
+		return 2;
 	}
 
 	_game->_renderer->_ready = true;




More information about the Scummvm-git-logs mailing list