aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/lure.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2006-07-08 08:39:42 +0000
committerPaul Gilbert2006-07-08 08:39:42 +0000
commit6b5150797ae044da90cd0b2a4a7a1b03ab4147f4 (patch)
tree4340a3c244e1db76b4df7bc944ee1cc818f35d22 /engines/lure/lure.cpp
parent64d0e4dcd8b1f3b650209f0d7fba863a3fd527d8 (diff)
downloadscummvm-rg350-6b5150797ae044da90cd0b2a4a7a1b03ab4147f4.tar.gz
scummvm-rg350-6b5150797ae044da90cd0b2a4a7a1b03ab4147f4.tar.bz2
scummvm-rg350-6b5150797ae044da90cd0b2a4a7a1b03ab4147f4.zip
Added support for ScummVM boot parameter values as well invoking the built-in debugger
svn-id: r23413
Diffstat (limited to 'engines/lure/lure.cpp')
-rw-r--r--engines/lure/lure.cpp25
1 files changed, 17 insertions, 8 deletions
diff --git a/engines/lure/lure.cpp b/engines/lure/lure.cpp
index a80e4dff02..4bf673551a 100644
--- a/engines/lure/lure.cpp
+++ b/engines/lure/lure.cpp
@@ -164,6 +164,10 @@ REGISTER_PLUGIN(LURE, "Lure of the Temptress Engine");
namespace Lure {
LureEngine::LureEngine(OSystem *system): Engine(system) {
+
+ Common::addSpecialDebugLevel(kLureDebugScripts, "scripts", "Scripts debugging");
+ Common::addSpecialDebugLevel(kLureDebugAnimations, "animations", "Animations debugging");
+ Common::addSpecialDebugLevel(kLureDebugHotspots, "hotspots", "Hotspots debugging");
// Setup mixer
/*
if (!_mixer->isReady()) {
@@ -174,13 +178,14 @@ LureEngine::LureEngine(OSystem *system): Engine(system) {
_mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, ConfMan.getInt("music_volume"));
_mixer->setVolumeForSoundType(Audio::Mixer::kSpeechSoundType, ConfMan.getInt("speech_volume"));
*/
+
_features = 0;
_game = 0;
}
void LureEngine::detectGame() {
// Make sure all the needed files are present
-
+
if (!Common::File::exists(SUPPORT_FILENAME))
error("Missing %s - this is a custom file containing resources from the\n"
"Lure of the Temptress executable. See the documentation for creating it.",
@@ -214,7 +219,7 @@ void LureEngine::detectGame() {
}
// Do an md5 check
-
+
uint8 md5sum[16];
char md5str[32 + 1];
const GameSettings *g;
@@ -259,7 +264,6 @@ int LureEngine::init() {
_system->endGFXTransaction();
detectGame();
-
_sys = new System(_system);
_disk = new Disk();
_resources = new Resources();
@@ -270,11 +274,14 @@ int LureEngine::init() {
_menu = new Menu();
Surface::initialise();
_room = new Room();
-
return 0;
}
LureEngine::~LureEngine() {
+ // Remove all of our debug levels here
+ Common::clearAllSpecialDebugLevels();
+
+ // Delete and deinitialise subsystems
Surface::deinitialise();
delete _room;
delete _menu;
@@ -288,10 +295,12 @@ LureEngine::~LureEngine() {
}
int LureEngine::go() {
- // Show the introduction
- Introduction *intro = new Introduction(*_screen, *_system);
- intro->show();
- delete intro;
+ if (ConfMan.getInt("boot_param") == 0) {
+ // Show the introduction
+ Introduction *intro = new Introduction(*_screen, *_system);
+ intro->show();
+ delete intro;
+ }
// Play the game
if (!_events->quitFlag) {