diff options
author | Ruediger Hanke | 2002-07-04 19:43:58 +0000 |
---|---|---|
committer | Ruediger Hanke | 2002-07-04 19:43:58 +0000 |
commit | 5fc1f7b0bd6204a19b0831bcda87d6506b9960cc (patch) | |
tree | 30695706de790df2fc80d88d678570856360f25c | |
parent | da7d5766d8b5b4ca214f7de6193412006d711f39 (diff) | |
download | scummvm-rg350-5fc1f7b0bd6204a19b0831bcda87d6506b9960cc.tar.gz scummvm-rg350-5fc1f7b0bd6204a19b0831bcda87d6506b9960cc.tar.bz2 scummvm-rg350-5fc1f7b0bd6204a19b0831bcda87d6506b9960cc.zip |
No slash must be appended to path after colon on MorphOS - CMI did not load from CD because of this
svn-id: r4461
-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)); |