diff options
| author | Chris Apers | 2004-10-08 16:09:52 +0000 | 
|---|---|---|
| committer | Chris Apers | 2004-10-08 16:09:52 +0000 | 
| commit | 757f2fdcefde1606e822acf00f0e6b783bd3174f (patch) | |
| tree | 3fb1042806eca2b55b3df0f72f60153ae6ea8225 /base/gameDetector.cpp | |
| parent | a34c7e4b812705891eb76ead1f46b35f01b67f0d (diff) | |
| download | scummvm-rg350-757f2fdcefde1606e822acf00f0e6b783bd3174f.tar.gz scummvm-rg350-757f2fdcefde1606e822acf00f0e6b783bd3174f.tar.bz2 scummvm-rg350-757f2fdcefde1606e822acf00f0e6b783bd3174f.zip | |
Prevent double slash in path
svn-id: r15473
Diffstat (limited to 'base/gameDetector.cpp')
| -rw-r--r-- | base/gameDetector.cpp | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/base/gameDetector.cpp b/base/gameDetector.cpp index 84b5983256..f1578b5e76 100644 --- a/base/gameDetector.cpp +++ b/base/gameDetector.cpp @@ -566,7 +566,7 @@ bool GameDetector::detectMain() {  	String gameDataPath(ConfMan.get("path"));  	if (gameDataPath.isEmpty()) {  		warning("No path was provided. Assuming the data files are in the current directory"); -#ifndef __PALM_OS__	// add last slash also in File::fopenNoCase, so this is not needed +		gameDataPath = "./";  	} else if (gameDataPath.lastChar() != '/'  #ifdef __MORPHOS__  					&& gameDataPath.lastChar() != ':' @@ -574,7 +574,6 @@ bool GameDetector::detectMain() {  					&& gameDataPath.lastChar() != '\\') {  		gameDataPath += '/';  		ConfMan.set("path", gameDataPath, kTransientDomain); -#endif  	}  	return true; | 
