From 2ca3831777e091d74510e9c0244b88458d0e363d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 12 Apr 2006 08:10:49 +0000 Subject: Fixing the workaround for bug #1458388 (should have added trailing dot, but didn't) svn-id: r21822 --- common/file.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'common') 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 { -- cgit v1.2.3