[Scummvm-git-logs] scummvm master -> 9f7ed010a25fefb9467f2e155a3d191fe1f8244f
bluegr
noreply at scummvm.org
Sun Aug 21 15:44:27 UTC 2022
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:
9f7ed010a2 GRIM: Use GUIErrorMessageWithURL for missing patches
Commit: 9f7ed010a25fefb9467f2e155a3d191fe1f8244f
https://github.com/scummvm/scummvm/commit/9f7ed010a25fefb9467f2e155a3d191fe1f8244f
Author: antoniou79 (a.antoniou79 at gmail.com)
Date: 2022-08-21T18:44:23+03:00
Commit Message:
GRIM: Use GUIErrorMessageWithURL for missing patches
Also use hardcoded url for the download location address
Changed paths:
engines/grim/resource.cpp
diff --git a/engines/grim/resource.cpp b/engines/grim/resource.cpp
index f6b3bd35e72..69ee9d3971e 100644
--- a/engines/grim/resource.cpp
+++ b/engines/grim/resource.cpp
@@ -96,19 +96,21 @@ ResourceLoader::ResourceLoader() {
// Check if the update has been correctly loaded
if (!SearchMan.hasArchive("update")) {
Common::U32String errorMessage;
+ Common::String urlForPatchDownload = Common::String::format("https://downloads.scummvm.org/frs/extras/patches/%s",
+ (g_grim->getGameType() == GType_GRIM)? "gfupd101.exe" : "");
if (g_grim->getGameType() == GType_GRIM) {
- errorMessage = _("The original patch of Grim Fandango\n"
+ errorMessage = Common::U32String::format(_("The original patch of Grim Fandango\n"
"is missing. Please download it from\n"
- "https://downloads.scummvm.org/frs/extras/patches/gfupd101.exe\n"
- "and put it in the game data files directory");
+ "%s\n"
+ "and put it in the game data files directory"), urlForPatchDownload.c_str());
} else if (g_grim->getGameType() == GType_MONKEY4) {
- errorMessage = _("The original patch of Escape from Monkey Island is missing. \n"
- "Please download it from https://downloads.scummvm.org/frs/extras/patches/\n"
+ errorMessage = Common::U32String::format(_("The original patch of Escape from Monkey Island is missing. \n"
+ "Please download it from %s\n"
"and put it in the game data files directory.\n"
- "Pay attention to download the correct version according to the game's language");
+ "Pay attention to download the correct version according to the game's language!"), urlForPatchDownload.c_str());
}
- GUI::displayErrorDialog(errorMessage);
+ GUIErrorMessageWithURL(errorMessage, urlForPatchDownload.c_str());
error("%s not found", updateFilename);
}
}
More information about the Scummvm-git-logs
mailing list