From fa04c9dd38ec560427298a705037076a32a9c27a Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 27 Aug 2010 23:21:08 +0000 Subject: SCI: Fixed bug #3054613, "QFG character saves, naming convention" svn-id: r52419 --- engines/sci/sci.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index ee2d370b61..c7309a8415 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -639,9 +639,11 @@ Common::String SciEngine::getSavegamePattern() const { Common::String SciEngine::getFilePrefix() const { if (_gameId == GID_QFG2) { // Quest for Glory 2 wants to read files from Quest for Glory 1 (EGA/VGA) to import character data - if (_gamestate->currentRoomNumber() == 805) - return "qfg1"; - // TODO: Include import-room for qfg1vga + if (_gamestate->currentRoomNumber() == 805) { + // Check if there are any QFG1VGA games - bug #3054613 + Common::StringArray saveNames = g_engine->getSaveFileManager()->listSavefiles("qfg1vga-*.sav"); + return (saveNames.size() > 0) ? "qfg1vga" : "qfg1"; + } } else if (_gameId == GID_QFG3) { // Quest for Glory 3 wants to read files from Quest for Glory 2 to import character data if (_gamestate->currentRoomNumber() == 54) -- cgit v1.2.3