aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2010-08-27 23:21:08 +0000
committerFilippos Karapetis2010-08-27 23:21:08 +0000
commitfa04c9dd38ec560427298a705037076a32a9c27a (patch)
treecbd89246f0596d8d70890981a35e0fb9047aa194 /engines
parent234b8e4f794d414fbafc1b2b42897c58b3f86a72 (diff)
downloadscummvm-rg350-fa04c9dd38ec560427298a705037076a32a9c27a.tar.gz
scummvm-rg350-fa04c9dd38ec560427298a705037076a32a9c27a.tar.bz2
scummvm-rg350-fa04c9dd38ec560427298a705037076a32a9c27a.zip
SCI: Fixed bug #3054613, "QFG character saves, naming convention"
svn-id: r52419
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/sci.cpp8
1 files changed, 5 insertions, 3 deletions
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)