[Scummvm-git-logs] scummvm branch-2-9 -> c7b9c74abc431def784a608a90449511e4a99039

bluegr noreply at scummvm.org
Sat Nov 16 17:19:54 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:
c7b9c74abc BAGEL: Don't display the start dialog if saves exist in the demos


Commit: c7b9c74abc431def784a608a90449511e4a99039
    https://github.com/scummvm/scummvm/commit/c7b9c74abc431def784a608a90449511e4a99039
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2024-11-16T19:19:32+02:00

Commit Message:
BAGEL: Don't display the start dialog if saves exist in the demos

The demos lack the relevant start dialog resources. Fixes a crash if
saves are found demo versions

Changed paths:
    engines/bagel/spacebar/spacebar.cpp


diff --git a/engines/bagel/spacebar/spacebar.cpp b/engines/bagel/spacebar/spacebar.cpp
index dc316836749..340916c7e8e 100644
--- a/engines/bagel/spacebar/spacebar.cpp
+++ b/engines/bagel/spacebar/spacebar.cpp
@@ -113,7 +113,7 @@ ErrorCode SpaceBarEngine::initialize() {
 		if (saveSlot != -1) {
 			bRestart = loadGameState(saveSlot).getCode() != Common::kNoError;
 
-		} else if (savesExist()) {
+		} else if (savesExist() && !isDemo()) {
 			bRestart = false;
 
 			CBagStartDialog cDlg(buildSysDir("START.BMP"), _masterWin);




More information about the Scummvm-git-logs mailing list