aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/phantom
diff options
context:
space:
mode:
authorPaul Gilbert2014-06-06 20:04:46 -0400
committerPaul Gilbert2014-06-06 20:04:46 -0400
commit17cc86d1721d275d56845754b9a32710b0e0d2f0 (patch)
tree7787620f8779c8ca0664df608df7111d94de0a37 /engines/mads/phantom
parent3c1c080c3a236ca9aac40d7f04f82b57ec879cbe (diff)
downloadscummvm-rg350-17cc86d1721d275d56845754b9a32710b0e0d2f0.tar.gz
scummvm-rg350-17cc86d1721d275d56845754b9a32710b0e0d2f0.tar.bz2
scummvm-rg350-17cc86d1721d275d56845754b9a32710b0e0d2f0.zip
MADS: Refactoring and cleanup of the game startup code
Diffstat (limited to 'engines/mads/phantom')
-rw-r--r--engines/mads/phantom/game_phantom.cpp18
-rw-r--r--engines/mads/phantom/game_phantom.h2
2 files changed, 3 insertions, 17 deletions
diff --git a/engines/mads/phantom/game_phantom.cpp b/engines/mads/phantom/game_phantom.cpp
index 15ac241d8c..b0b1bf7836 100644
--- a/engines/mads/phantom/game_phantom.cpp
+++ b/engines/mads/phantom/game_phantom.cpp
@@ -41,22 +41,8 @@ GamePhantom::GamePhantom(MADSEngine *vm)
_storyMode = STORYMODE_NAUGHTY;
}
-ProtectionResult GamePhantom::checkCopyProtection() {
- /*
- // DEBUG: Flag copy protection failure
- _globals[5] = -1;
-
- if (!ConfMan.getBool("copy_protection"))
- return true;
-
- * DEBUG: Disabled for now
- CopyProtectionDialog *dlg = new CopyProtectionDialog(_vm, false);
- dlg->show();
- delete dlg;
- */
-
- // DEBUG: Return that copy protection failed
- return PROTECTION_SUCCEED;
+void GamePhantom::startGame() {
+ initializeGlobals();
}
void GamePhantom::initializeGlobals() {
diff --git a/engines/mads/phantom/game_phantom.h b/engines/mads/phantom/game_phantom.h
index 7a84ee1c72..99cc2c1230 100644
--- a/engines/mads/phantom/game_phantom.h
+++ b/engines/mads/phantom/game_phantom.h
@@ -78,7 +78,7 @@ class GamePhantom : public Game {
protected:
GamePhantom(MADSEngine *vm);
- virtual ProtectionResult checkCopyProtection();
+ virtual void startGame();
virtual void initializeGlobals();