aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorlolbot-iichan2019-07-14 23:28:44 +0300
committerFilippos Karapetis2020-01-11 18:05:39 +0200
commit364c9eda55a4168db32e746e8ce6962069f6cff8 (patch)
treee248b39bb25b84c6164223907b103a75e2196d92 /engines
parent771dd2081b4b2a87743d88d43356df20c0c47494 (diff)
downloadscummvm-rg350-364c9eda55a4168db32e746e8ce6962069f6cff8.tar.gz
scummvm-rg350-364c9eda55a4168db32e746e8ce6962069f6cff8.tar.bz2
scummvm-rg350-364c9eda55a4168db32e746e8ce6962069f6cff8.zip
WINTERMUTE: Display error on running FoxTail without compiled subengine
Game is not playable with standard Wintermute, so we should stop player from even trying to run it if ENABLE_FOXTAIL is off.
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/wintermute.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/wintermute/wintermute.cpp b/engines/wintermute/wintermute.cpp
index 7ee28f0fe2..0c8c8a9d1a 100644
--- a/engines/wintermute/wintermute.cpp
+++ b/engines/wintermute/wintermute.cpp
@@ -158,6 +158,17 @@ int WintermuteEngine::init() {
}
#endif
+ // check dependencies for games with FoxTail subengine
+ #if not defined(ENABLE_FOXTAIL)
+ if (BaseEngine::isFoxTailCheck(_gameDescription->targetExecutable)) {
+ GUI::MessageDialog dialog(_("This game requires the FoxTail subengine, which is not compiled in."));
+ dialog.runModal();
+ delete _game;
+ _game = nullptr;
+ return false;
+ }
+ #endif
+
Common::ArchiveMemberList actors3d;
if (BaseEngine::instance().getFileManager()->listMatchingMembers(actors3d, "*.act3d")) {
GUI::MessageDialog dialog(