From 364c9eda55a4168db32e746e8ce6962069f6cff8 Mon Sep 17 00:00:00 2001 From: lolbot-iichan Date: Sun, 14 Jul 2019 23:28:44 +0300 Subject: 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. --- engines/wintermute/wintermute.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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( -- cgit v1.2.3