diff options
author | Martin Kiewitz | 2010-08-29 15:18:24 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-08-29 15:18:24 +0000 |
commit | 357fb5c60438e1ec495a1ce9c7d149034bfa6cd2 (patch) | |
tree | 9f89c771c79e589721ccfda431ecb6b7c1999e34 | |
parent | ff7476d9f17c84623d544a2bb68b4cebe9d79fa4 (diff) | |
download | scummvm-rg350-357fb5c60438e1ec495a1ce9c7d149034bfa6cd2.tar.gz scummvm-rg350-357fb5c60438e1ec495a1ce9c7d149034bfa6cd2.tar.bz2 scummvm-rg350-357fb5c60438e1ec495a1ce9c7d149034bfa6cd2.zip |
SCI: fix build
svn-id: r52442
-rw-r--r-- | engines/sci/engine/kfile.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp index 2eb4580f4f..f87e6ea990 100644 --- a/engines/sci/engine/kfile.cpp +++ b/engines/sci/engine/kfile.cpp @@ -777,26 +777,6 @@ reg_t kFileIOOpen(EngineState *s, int argc, reg_t *argv) { // when we get here. That's why we need to remember selection via kDrawControl name = s->_dirseeker.getVirtualFilename(s->_chosenQfGImportItem); unwrapFilename = false; - // Since we're not wrapping/unwrapping save files for QFG import screens, - // the name of the save file will almost certainly be over 12 characters in - // length. Compensate for that fact here, by cutting off the last character - // and searching for the file via the first 11 characters - if (g_sci->isQFGImportScreen()) { - name.deleteLastChar(); - Common::String pattern = name + "*"; - - Common::SaveFileManager *saveFileMan = g_engine->getSaveFileManager(); - Common::StringArray saveNames = saveFileMan->listSavefiles(pattern); - - // There should be exactly one match for this search, otherwise throw a warning - if (saveNames.size() == 0) { - warning("QFG character import: No matches for %s", pattern.c_str()); - } else if (saveNames.size() == 1) { - name = saveNames[0]; - } else { - warning("QFG character import: More than 1 matches for %s, using the first one", pattern.c_str()); - name = saveNames[0]; - } } return file_open(s, name.c_str(), mode, unwrapFilename); |