aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 {