diff options
Diffstat (limited to 'gameDetector.cpp')
-rw-r--r-- | gameDetector.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gameDetector.cpp b/gameDetector.cpp index e91095cd87..b260d1afd4 100644 --- a/gameDetector.cpp +++ b/gameDetector.cpp @@ -538,7 +538,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] != '\\') { + } else if (_gameDataPath[strlen(_gameDataPath)-1] != '/' +#ifdef __MORPHOS__ + && _gameDataPath[strlen(_gameDataPath)-1] != ':' +#endif + && _gameDataPath[strlen(_gameDataPath)-1] != '\\') { char slashless[1024]; /* Append slash to path */ strcpy(slashless, _gameDataPath); _gameDataPath = (char *)malloc((strlen(slashless) + 1) * sizeof(char)); |