[Scummvm-git-logs] scummvm master -> de3011f7882e9302782ab474489d6bc41ff3a828

bluegr bluegr at gmail.com
Mon Feb 3 07:10:55 UTC 2020


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:
de3011f788 ENGINES: Add GUI warning when encountering a pirated game


Commit: de3011f7882e9302782ab474489d6bc41ff3a828
    https://github.com/scummvm/scummvm/commit/de3011f7882e9302782ab474489d6bc41ff3a828
Author: Zvika (haramaty.zvika at gmail.com)
Date: 2020-02-03T09:10:52+02:00

Commit Message:
ENGINES: Add GUI warning when encountering a pirated game

Changed paths:
    engines/advancedDetector.cpp


diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp
index 4cc05ae..64a1cef 100644
--- a/engines/advancedDetector.cpp
+++ b/engines/advancedDetector.cpp
@@ -30,6 +30,8 @@
 #include "common/textconsole.h"
 #include "common/translation.h"
 #include "gui/EventRecorder.h"
+#include "gui/gui-manager.h"
+#include "gui/message.h"
 #include "engines/advancedDetector.h"
 #include "engines/obsolete.h"
 
@@ -133,6 +135,10 @@ bool cleanupPirated(ADDetectedGames &matched) {
 		// We ruled out all variants and now have nothing
 		if (matched.empty()) {
 			warning("Illegitimate game copy detected. We provide no support in such cases");
+			if (GUI::GuiManager::hasInstance()) {
+				GUI::MessageDialog dialog("Illegitimate game copy detected. We provide no support in such cases", "OK");
+				dialog.runModal();
+			};
 			return true;
 		}
 	}




More information about the Scummvm-git-logs mailing list