aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2006-04-12 08:10:49 +0000
committerMax Horn2006-04-12 08:10:49 +0000
commit2ca3831777e091d74510e9c0244b88458d0e363d (patch)
tree284f3ff0ec11b8c707ab7254974a7abacf5a6723 /common
parent0d9fc230bc0550171e515f2a8d341cec26d89c0c (diff)
downloadscummvm-rg350-2ca3831777e091d74510e9c0244b88458d0e363d.tar.gz
scummvm-rg350-2ca3831777e091d74510e9c0244b88458d0e363d.tar.bz2
scummvm-rg350-2ca3831777e091d74510e9c0244b88458d0e363d.zip
Fixing the workaround for bug #1458388 (should have added trailing dot, but didn't)
svn-id: r21822
Diffstat (limited to 'common')
-rw-r--r--common/file.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/file.cpp b/common/file.cpp
index a0b6f9763d..25f3791749 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -218,9 +218,7 @@ bool File::open(const char *filename, AccessMode mode, const char *directory) {
} else if (_filesMap && _filesMap->contains(fname + ".")) {
// WORKAROUND: Bug #1458388: "SIMON1: Game Detection fails"
// sometimes instead of "GAMEPC" we get "GAMEPC." (note trailing dot)
-
- // FIXME: Shouldn't we add a '+ "."' after fname here?
- fname = (*_filesMap)[fname];
+ fname = (*_filesMap)[fname + "."];
debug(3, "Opening hashed: %s", fname.c_str());
_handle = fopen(fname.c_str(), modeStr);
} else {