aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/dragonsphere
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/dragonsphere
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/dragonsphere')
-rw-r--r--engines/mads/dragonsphere/game_dragonsphere.cpp18
-rw-r--r--engines/mads/dragonsphere/game_dragonsphere.h2
2 files changed, 3 insertions, 17 deletions
diff --git a/engines/mads/dragonsphere/game_dragonsphere.cpp b/engines/mads/dragonsphere/game_dragonsphere.cpp
index c6097125b1..9d9b48dd66 100644
--- a/engines/mads/dragonsphere/game_dragonsphere.cpp
+++ b/engines/mads/dragonsphere/game_dragonsphere.cpp
@@ -41,22 +41,8 @@ GameDragonsphere::GameDragonsphere(MADSEngine *vm)
_storyMode = STORYMODE_NAUGHTY;
}
-ProtectionResult GameDragonsphere::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 GameDragonsphere::startGame() {
+ initializeGlobals();
}
void GameDragonsphere::initializeGlobals() {
diff --git a/engines/mads/dragonsphere/game_dragonsphere.h b/engines/mads/dragonsphere/game_dragonsphere.h
index 5147f75178..7869dc87b4 100644
--- a/engines/mads/dragonsphere/game_dragonsphere.h
+++ b/engines/mads/dragonsphere/game_dragonsphere.h
@@ -102,7 +102,7 @@ class GameDragonsphere : public Game {
protected:
GameDragonsphere(MADSEngine *vm);
- virtual ProtectionResult checkCopyProtection();
+ virtual void startGame();
virtual void initializeGlobals();