From 451cf2304f8e27b3f5aab9cfa56d7b9bcdc8ffcf Mon Sep 17 00:00:00 2001 From: Lothar Serra Mari Date: Wed, 25 Apr 2018 13:04:25 +0200 Subject: ENGINES: Show the unknown Game dialog only when the detector is launched by the Add Game feature --- engines/sword2/sword2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sword2') diff --git a/engines/sword2/sword2.cpp b/engines/sword2/sword2.cpp index a2761eb5ce..10ddda7d2e 100644 --- a/engines/sword2/sword2.cpp +++ b/engines/sword2/sword2.cpp @@ -95,7 +95,7 @@ public: virtual GameList getSupportedGames() const; virtual const ExtraGuiOptions getExtraGuiOptions(const Common::String &target) const; virtual GameDescriptor findGame(const char *gameid) const; - virtual GameList detectGames(const Common::FSList &fslist) const; + virtual GameList detectGames(const Common::FSList &fslist, bool useUnknownGameDialog = false) const; virtual SaveStateList listSaves(const char *target) const; virtual int getMaximumSaveSlot() const; virtual void removeSaveState(const char *target, int slot) const; @@ -223,7 +223,7 @@ GameList detectGamesImpl(const Common::FSList &fslist, bool recursion = false) { return detectedGames; } -GameList Sword2MetaEngine::detectGames(const Common::FSList &fslist) const { +GameList Sword2MetaEngine::detectGames(const Common::FSList &fslist, bool /*useUnknownGameDialog*/) const { return detectGamesImpl(fslist); } -- cgit v1.2.3