diff options
author | Filippos Karapetis | 2014-04-27 21:18:24 +0300 |
---|---|---|
committer | Filippos Karapetis | 2014-04-27 21:20:02 +0300 |
commit | 87ad5a8397cc332c6e3580725df39925eb5b66c5 (patch) | |
tree | 93614b806f3e637538f7bbcaeeb9ae00cdcdda68 | |
parent | 9c30f3e0734271a2a259c1dc75202cef88f370f3 (diff) | |
download | scummvm-rg350-87ad5a8397cc332c6e3580725df39925eb5b66c5.tar.gz scummvm-rg350-87ad5a8397cc332c6e3580725df39925eb5b66c5.tar.bz2 scummvm-rg350-87ad5a8397cc332c6e3580725df39925eb5b66c5.zip |
MADS: Add a HACK to reuse the Nebular dialog class for now for V2 games
There aren't any dialogs shown yet for these games, we just reuse the
implemented class to avoid crashes when it's initialized
-rw-r--r-- | engines/mads/dialogs.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/mads/dialogs.cpp b/engines/mads/dialogs.cpp index 3c771e7ed9..519b273efb 100644 --- a/engines/mads/dialogs.cpp +++ b/engines/mads/dialogs.cpp @@ -362,7 +362,10 @@ Dialogs *Dialogs::init(MADSEngine *vm) { if (vm->getGameID() == GType_RexNebular) return new Nebular::DialogsNebular(vm); - error("Unknown game"); + // Throw a warning for now, since the associated Dialogs class isn't implemented yet + warning("Dialogs: Unknown game"); + // HACK: Reuse the implemented Nebular dialogs for now, to avoid crashing later on + return new Nebular::DialogsNebular(vm); } Dialogs::Dialogs(MADSEngine *vm): _vm(vm) { |