aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Snover2016-10-02 19:20:32 -0500
committerColin Snover2016-10-05 15:19:11 -0500
commit5cca33702d2544e3e470142843144faf4fef83d2 (patch)
tree1af930e9030a7cb161a0c586788c16c9b3b76fe8
parent4d1076b33ec1a81b5dd8e479112797a503bc12d9 (diff)
downloadscummvm-rg350-5cca33702d2544e3e470142843144faf4fef83d2.tar.gz
scummvm-rg350-5cca33702d2544e3e470142843144faf4fef83d2.tar.bz2
scummvm-rg350-5cca33702d2544e3e470142843144faf4fef83d2.zip
SCI32: Fix version file read failure in LSL6hires
-rw-r--r--engines/sci/engine/kfile.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp
index 76cae6c4c1..f73439015a 100644
--- a/engines/sci/engine/kfile.cpp
+++ b/engines/sci/engine/kfile.cpp
@@ -306,6 +306,11 @@ reg_t kFileIOOpen(EngineState *s, int argc, reg_t *argv) {
// their game version from the VERSION file
if (name.compareToIgnoreCase("version") == 0) {
unwrapFilename = false;
+
+ // LSL6hires version is in a file with an empty extension
+ if (Common::File::exists(name + ".")) {
+ name += ".";
+ }
}
if (g_sci->getGameId() == GID_SHIVERS && name.hasSuffix(".SG")) {