diff options
author | Paul Gilbert | 2007-09-23 22:17:57 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-09-23 22:17:57 +0000 |
commit | b4cff6b9bdda3c1d30af9f919a3698b57172522c (patch) | |
tree | 9b9d8046b5d50a4c34f13fed19e53c968d9ec2f5 /engines/lure/lure.cpp | |
parent | 8685b1b45648ffb89468537e8154afbc074a2e4d (diff) | |
download | scummvm-rg350-b4cff6b9bdda3c1d30af9f919a3698b57172522c.tar.gz scummvm-rg350-b4cff6b9bdda3c1d30af9f919a3698b57172522c.tar.bz2 scummvm-rg350-b4cff6b9bdda3c1d30af9f919a3698b57172522c.zip |
Converted fields in data that were originally offsets (such as tick proc offsets) to use indexes, allowing for more generic handling of different language versions
svn-id: r29073
Diffstat (limited to 'engines/lure/lure.cpp')
-rw-r--r-- | engines/lure/lure.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/engines/lure/lure.cpp b/engines/lure/lure.cpp index 6aeb05967f..db71989cba 100644 --- a/engines/lure/lure.cpp +++ b/engines/lure/lure.cpp @@ -62,6 +62,8 @@ LureEngine::LureEngine(OSystem *system): Engine(system) { } int LureEngine::init() { + int_engine = this; + _system->beginGFXTransaction(); initCommonGFX(false); _system->initSize(FULL_SCREEN_WIDTH, FULL_SCREEN_HEIGHT); @@ -78,7 +80,6 @@ int LureEngine::init() { Surface::initialise(); _room = new Room(); _fights = new FightsManager(); - int_engine = this; return 0; } @@ -104,6 +105,18 @@ LureEngine &LureEngine::getReference() { } int LureEngine::go() { + + if (ConfMan.getBool("copy_protection")) { + CopyProtectionDialog *dialog = new CopyProtectionDialog(); + bool result = dialog->show(); + delete dialog; + if (_events->quitFlag) + return 0; + + if (!result) + error("Sorry - copy protection failed"); + } + if (ConfMan.getInt("boot_param") == 0) { // Show the introduction Sound.loadSection(INTRO_SOUND_RESOURCE_ID); |