diff options
-rw-r--r-- | gameDetector.cpp | 5 | ||||
-rw-r--r-- | resource.cpp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gameDetector.cpp b/gameDetector.cpp index f378b511be..af2847dd87 100644 --- a/gameDetector.cpp +++ b/gameDetector.cpp @@ -530,6 +530,11 @@ int GameDetector::detectMain(int argc, char **argv) if (!_gameDataPath) { warning("No path was provided. Assuming the data files are in the current directory"); _gameDataPath = Scumm::Strdup(""); + } else if (_gameDataPath[strlen(_gameDataPath)-1] != '/' && _gameDataPath[strlen(_gameDataPath)-1] != '\\') { + char slashless[1024]; /* Append slash to path */ + strcpy(slashless, _gameDataPath); + _gameDataPath = (char *)malloc((strlen(slashless) + 1) * sizeof(char)); + sprintf(_gameDataPath, "%s/", slashless); } if (_amiga) diff --git a/resource.cpp b/resource.cpp index d94e80e24b..f39ef0aed8 100644 --- a/resource.cpp +++ b/resource.cpp @@ -201,7 +201,7 @@ bool Scumm::openResourceFile(const char *filename) void Scumm::askForDisk(const char *filename) { - error("Cannot find '%s'", filename); + error("ask Cannot find '%s'", filename); } void Scumm::readIndexFile() |