From 5fc1f7b0bd6204a19b0831bcda87d6506b9960cc Mon Sep 17 00:00:00 2001 From: Ruediger Hanke Date: Thu, 4 Jul 2002 19:43:58 +0000 Subject: No slash must be appended to path after colon on MorphOS - CMI did not load from CD because of this svn-id: r4461 --- gameDetector.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)); -- cgit v1.2.3