diff options
author | Travis Howell | 2004-08-21 00:47:29 +0000 |
---|---|---|
committer | Travis Howell | 2004-08-21 00:47:29 +0000 |
commit | 25dbd3430ea01541636b485da5cc3b4a49e8ddf7 (patch) | |
tree | da45c4c90bb1195debd48c7bcf649edf23e4613b /simon | |
parent | 174193c289e3d87f438e06ef980af0ed5f62c6f0 (diff) | |
download | scummvm-rg350-25dbd3430ea01541636b485da5cc3b4a49e8ddf7.tar.gz scummvm-rg350-25dbd3430ea01541636b485da5cc3b4a49e8ddf7.tar.bz2 scummvm-rg350-25dbd3430ea01541636b485da5cc3b4a49e8ddf7.zip |
Small correction for filename different on some systems
svn-id: r14656
Diffstat (limited to 'simon')
-rw-r--r-- | simon/simon.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp index 07c35483f9..f3928ff4ea 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -115,8 +115,7 @@ DetectedGameList Engine_SIMON_detectGames(const FSList &fslist) { for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) { const char *name = file->displayName().c_str(); - if ((0 == scumm_stricmp(detectName, name)) || - (0 == scumm_stricmp(detectName2, name))) { + if ((0 == scumm_stricmp(detectName, name)) || (!0 == scumm_stricmp(detectName2, name))) { // Match found, add to list of candidates, then abort inner loop. detectedGames.push_back(g->toGameSettings()); fileSet.addKey(file->path()); @@ -311,9 +310,13 @@ SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst) // It's quick, it's dirty, and it'll go again eventually :-) char buf[100]; uint8 md5sum[16]; + File f; sprintf(buf, g->detectname); - + f.open(buf); + if (f.isOpen() == false) + strcat(buf, "."); + if (md5_file(buf, md5sum)) { // HACK : changed to this code since PalmOS doesn't handle correctly %02x. // It returns only 8 chars string in upper case so i need to use hex[], |