CollapsePath thinks that .. is a file name. Add a slash to convince it otherwise.

This commit is contained in:
Steve Checkoway
2007-04-20 08:02:53 +00:00
parent 5a7d251465
commit 8bc650fbaf
+1 -1
View File
@@ -254,7 +254,7 @@ static void ChangeToDirOfExecutable( const RString &argv0 )
/* If the basename is not MacOS, then we've likely been launched via the command line
* through a symlink. Assume this is the case and change to the dir of the symlink. */
if( Basename(RageFileManagerUtil::sDirOfExecutable) == "MacOS" )
CollapsePath( RageFileManagerUtil::sDirOfExecutable += "/../../.." );
CollapsePath( RageFileManagerUtil::sDirOfExecutable += "/../../../" );
chdir( RageFileManagerUtil::sDirOfExecutable );
#endif
}