diff options
Diffstat (limited to 'simon/res.cpp')
-rw-r--r-- | simon/res.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/simon/res.cpp b/simon/res.cpp index fcf4444a2e..f179986936 100644 --- a/simon/res.cpp +++ b/simon/res.cpp @@ -102,8 +102,14 @@ bool SimonState::loadGamePcFile(const char *filename) /* read main gamepc file */ in->open(filename, _gameDataPath); - if (in->isOpen() == false) - return false; + if (in->isOpen() == false) { + char filename2[strlen(filename) + 1]; + strcpy(filename2, filename); + strcat(filename2, "."); + in->open(filename2, _gameDataPath); + if (in->isOpen() == false) + return false; + } num_inited_objects = allocGamePcVars(in); @@ -121,8 +127,11 @@ bool SimonState::loadGamePcFile(const char *filename) /* Read list of TABLE resources */ in->open("TBLLIST", _gameDataPath); - if (in->isOpen() == false) - return false; + if (in->isOpen() == false) { + in->open("TBLLIST.", _gameDataPath); + if (in->isOpen() == false) + return false; + } file_size = in->size(); |