aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2012-06-05 13:17:04 -0400
committerMatthew Hoops2012-06-05 13:17:04 -0400
commit2aeb883123d01bd1dacc05627b610f0d2d9e7d08 (patch)
tree7cc48d7dfcd6b7d4ab9a8952f4f05a696000542c
parent4392e4d7aab9114ff66a1fcda34d21f404b4ebcd (diff)
downloadscummvm-rg350-2aeb883123d01bd1dacc05627b610f0d2d9e7d08.tar.gz
scummvm-rg350-2aeb883123d01bd1dacc05627b610f0d2d9e7d08.tar.bz2
scummvm-rg350-2aeb883123d01bd1dacc05627b610f0d2d9e7d08.zip
SCUMM: Show an error dialog when trying to run puttzoo ios lite
The lite version contains the full game and we will not support it due to potential piracy.
-rw-r--r--devtools/scumm-md5.txt1
-rw-r--r--engines/scumm/detection.cpp8
-rw-r--r--engines/scumm/scumm-md5.h3
3 files changed, 11 insertions, 1 deletions
diff --git a/devtools/scumm-md5.txt b/devtools/scumm-md5.txt
index f08b7d29d2..5223d6785d 100644
--- a/devtools/scumm-md5.txt
+++ b/devtools/scumm-md5.txt
@@ -776,6 +776,7 @@ puttzoo Putt-Putt Saves the Zoo
f3d55aea441e260e9e9c7d2a187097e0 14337 en Windows - Demo - khalek
65fa23d6884e8ca23d5d2406d70de7e8 -1 fr Windows - Demo - gist974
2a446817ffcabfef8716e0c456ecaf81 -1 de Windows - Demo - Joachim Eberhard
+ 4e859d3ef1e146b41e7d93c35cd6cc62 -1 en iOS HE 100 Lite - clone2727
PuttTime Putt-Putt Travels Through Time
fcb78ebecab2757264c590890c319cc5 -1 nl All HE 85 - - adutchguy, daniel9
diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp
index cd878b49ae..95de1a8706 100644
--- a/engines/scumm/detection.cpp
+++ b/engines/scumm/detection.cpp
@@ -1079,6 +1079,14 @@ Common::Error ScummMetaEngine::createInstance(OSystem *syst, Engine **engine) co
debug(1, "Using MD5 '%s'", res.md5.c_str());
}
+ // We don't support the "Lite" version off puttzoo iOS because it contains
+ // the full game.
+ if (!strcmp(res.game.gameid, "puttzoo") && !strcmp(res.extra, "Lite")) {
+ GUIErrorMessage("The Lite version of Putt-Putt Saves the Zoo iOS is not supported to avoid piracy.\n"
+ "The full version is available for purchase from the iTunes Store.");
+ return Common::kUnsupportedGameidError;
+ }
+
// If the GUI options were updated, we catch this here and update them in the users config
// file transparently.
Common::updateGameGUIOptions(res.game.guioptions, getGameGUIOptionsDescriptionLanguage(res.language));
diff --git a/engines/scumm/scumm-md5.h b/engines/scumm/scumm-md5.h
index 946e954a46..9aac4a082f 100644
--- a/engines/scumm/scumm-md5.h
+++ b/engines/scumm/scumm-md5.h
@@ -1,5 +1,5 @@
/*
- This file was generated by the md5table tool on Tue May 29 00:49:03 2012
+ This file was generated by the md5table tool on Tue Jun 5 16:56:40 2012
DO NOT EDIT MANUALLY!
*/
@@ -215,6 +215,7 @@ static const MD5Table md5table[] = {
{ "4dbff3787aedcd96b0b325f2d92d7ad9", "maze", "HE 100", "Updated", -1, Common::EN_USA, Common::kPlatformUnknown },
{ "4dc780f1bc587a193ce8a97652791438", "loom", "EGA", "EGA", -1, Common::EN_ANY, Common::kPlatformAmiga },
{ "4e5867848ee61bc30d157e2c94eee9b4", "PuttTime", "HE 90", "Demo", 18394, Common::EN_USA, Common::kPlatformUnknown },
+ { "4e859d3ef1e146b41e7d93c35cd6cc62", "puttzoo", "HE 100", "Lite", -1, Common::EN_ANY, Common::kPlatformIOS },
{ "4edbf9d03550f7ba01e7f34d69b678dd", "spyfox", "HE 98.5", "Demo", -1, Common::NL_NLD, Common::kPlatformUnknown },
{ "4f04b321a95d4315ce6d65f8e1dd0368", "maze", "HE 80", "", -1, Common::EN_USA, Common::kPlatformUnknown },
{ "4f138ac6f9b2ac5a41bc68b2c3296064", "freddi4", "HE 99", "", -1, Common::FR_FRA, Common::kPlatformWindows },