[Scummvm-git-logs] scummvm master -> 31d119b6ccc94393f168ef31cd19aa6bef023e56

bluegr noreply at scummvm.org
Sun Aug 21 15:44:55 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:
31d119b6cc MYST3: Use GUIErrorMessageWithURL() for missing patch


Commit: 31d119b6ccc94393f168ef31cd19aa6bef023e56
    https://github.com/scummvm/scummvm/commit/31d119b6ccc94393f168ef31cd19aa6bef023e56
Author: antoniou79 (a.antoniou79 at gmail.com)
Date: 2022-08-21T18:44:51+03:00

Commit Message:
MYST3: Use GUIErrorMessageWithURL() for missing patch

Also hardcode the url for the download location address

Changed paths:
    engines/myst3/myst3.cpp


diff --git a/engines/myst3/myst3.cpp b/engines/myst3/myst3.cpp
index bbb5e235179..0aa797eb3f1 100644
--- a/engines/myst3/myst3.cpp
+++ b/engines/myst3/myst3.cpp
@@ -358,14 +358,15 @@ void Myst3Engine::closeArchives() {
 
 bool Myst3Engine::checkDatafiles() {
 	if (!SearchMan.hasFile("OVER101.m3o")) {
+		const char* urlForPatchesDownload = "https://www.scummvm.org/frs/extras/patches/";
 		warning("Unable to open the update game archive 'OVER101.m3o'");
 		Common::U32String updateMessage =
-				_("This version of Myst III has not been updated with the latest official patch.\n"
+				Common::U32String::format(_("This version of Myst III has not been updated with the latest official patch.\n"
 						  "Please install the official update corresponding to your game's language.\n"
 						  "The updates can be downloaded from:\n"
-						  "https://www.scummvm.org/frs/extras/patches/");
+						  "%s"), urlForPatchesDownload);
 		warning("%s", updateMessage.encode().c_str());
-		GUI::displayErrorDialog(updateMessage);
+		GUIErrorMessageWithURL(updateMessage, urlForPatchesDownload);
 		return false;
 	}
 




More information about the Scummvm-git-logs mailing list