[Scummvm-git-logs] scummvm master -> bc7d8b10f1dcc7d3fcfe76c521146aac63be52ae
bluegr
noreply at scummvm.org
Thu Nov 21 00:33:12 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:
bc7d8b10f1 TETRAEDGE: Fix exit confirmation for Syberia II - bug #14352
Commit: bc7d8b10f1dcc7d3fcfe76c521146aac63be52ae
https://github.com/scummvm/scummvm/commit/bc7d8b10f1dcc7d3fcfe76c521146aac63be52ae
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2024-11-21T02:32:37+02:00
Commit Message:
TETRAEDGE: Fix exit confirmation for Syberia II - bug #14352
Changed paths:
engines/tetraedge/game/confirm.cpp
diff --git a/engines/tetraedge/game/confirm.cpp b/engines/tetraedge/game/confirm.cpp
index b837e2141ba..be872113936 100644
--- a/engines/tetraedge/game/confirm.cpp
+++ b/engines/tetraedge/game/confirm.cpp
@@ -64,8 +64,9 @@ void Confirm::enter(const Common::Path &guiPath, const Common::String &y) {
TeTextLayout *textTextLayout = dynamic_cast<TeTextLayout *>(textLayout->child(0));
if (!textTextLayout)
error("Expected text layout child.");
-
- textTextLayout->setText(textAttributs + *app->loc().value(textTextLayout->name()));
+ const Common::String *textLayoutName = app->loc().value(textTextLayout->name());
+ const char *fallbackText = "Do you really want to quit?"; // FIXME: Needed for Syberia II
+ textTextLayout->setText(textAttributs + (textLayoutName ? *textLayoutName : fallbackText));
if (!okButtonLoc || !cancelButtonLoc) {
error("Missing translations for ok and cancel");
More information about the Scummvm-git-logs
mailing list