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:
@@ -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/" ;
|
||||
|
||||
Reference in New Issue
Block a user