From 24d758e5ef8b90f7fdcd8f4ead648f68af184424 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 25 Mar 2012 16:24:31 +0300 Subject: SKY: Only show the option for the alternative intro in the CD version --- engines/sky/detection.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'engines/sky/detection.cpp') diff --git a/engines/sky/detection.cpp b/engines/sky/detection.cpp index aaac1fce79..05dbe10338 100644 --- a/engines/sky/detection.cpp +++ b/engines/sky/detection.cpp @@ -42,7 +42,7 @@ static const PlainGameDescriptor skySetting = static const ExtraGuiOption skyExtraGuiOption = { _s("Floppy intro"), - _s("Use the floppy verion's intro (CD version only)"), + _s("Use the floppy version's intro (CD version only)"), "alt_intro", false }; @@ -117,8 +117,15 @@ GameList SkyMetaEngine::getSupportedGames() const { } const ExtraGuiOptions SkyMetaEngine::getExtraGuiOptions(const Common::String &target) const { + Common::String guiOptions; + if (ConfMan.hasKey("guioptions", target)) { + guiOptions = ConfMan.get("guioptions", target); + guiOptions = parseGameGUIOptions(guiOptions); + } + ExtraGuiOptions options; - options.push_back(skyExtraGuiOption); + if (!guiOptions.contains(GUIO_NOSPEECH)) + options.push_back(skyExtraGuiOption); return options; } -- cgit v1.2.3