diff options
author | Eugene Sandulenko | 2006-03-25 21:17:38 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-03-25 21:17:38 +0000 |
commit | dd505ff6aebbe3f321d8bbebabc32a471c2ac0c8 (patch) | |
tree | 0010e7bd5ade9b931a3d2f10473c0bd2ae1cdf06 /common/file.cpp | |
parent | 575c831684d2c2584c6ff64e2e6d4ce960526a7e (diff) | |
download | scummvm-rg350-dd505ff6aebbe3f321d8bbebabc32a471c2ac0c8.tar.gz scummvm-rg350-dd505ff6aebbe3f321d8bbebabc32a471c2ac0c8.tar.bz2 scummvm-rg350-dd505ff6aebbe3f321d8bbebabc32a471c2ac0c8.zip |
Fixing bug #1458388: "SIMON1: Game Detection fails".
Sometimes instead of "GAMEPC" we get "GAMEPC." (note trailing dot)
svn-id: r21455
Diffstat (limited to 'common/file.cpp')
-rw-r--r-- | common/file.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/file.cpp b/common/file.cpp index b5e2857905..c9917f698a 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -221,6 +221,11 @@ bool File::open(const char *filename, AccessMode mode, const char *directory) { } else if (_filesMap.contains(fname)) { debug(3, "Opening hashed: %s", _filesMap[fname].c_str()); _handle = fopen(_filesMap[fname].c_str(), modeStr); + } else if (_filesMap.contains(fname + ".")) { + // WORKAROUND: Bug #1458388: "SIMON1: Game Detection fails" + // sometimes instead of "GAMEPC" we get "GAMEPC." (note trailing dot) + debug(3, "Opening hashed: %s", _filesMap[fname].c_str()); + _handle = fopen(_filesMap[fname].c_str(), modeStr); } else { StringList::const_iterator x; |