diff options
author | Max Horn | 2006-04-12 08:10:49 +0000 |
---|---|---|
committer | Max Horn | 2006-04-12 08:10:49 +0000 |
commit | 2ca3831777e091d74510e9c0244b88458d0e363d (patch) | |
tree | 284f3ff0ec11b8c707ab7254974a7abacf5a6723 /common | |
parent | 0d9fc230bc0550171e515f2a8d341cec26d89c0c (diff) | |
download | scummvm-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.cpp | 4 |
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 { |