Fix finding data files on OSX

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14856 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2013-12-31 19:22:05 +00:00
parent 692d5a582d
commit 6fb8188e07

View File

@@ -151,7 +151,7 @@ FileManager::FileManager(char *argv[])
if ( getenv ( "SUPERTUXKART_DATADIR" ) != NULL )
root_dir = std::string(getenv("SUPERTUXKART_DATADIR"))+"/" ;
#ifdef __APPLE__
else if( macSetBundlePathIfRelevant( root_dir ) ) { /* nothing to do */ }
else if( macSetBundlePathIfRelevant( root_dir ) ) { root_dir = root_dir + "/data/"; }
#endif
else if(m_file_system->existFile("data"))
root_dir = "data/" ;