Add extra stk-assets possibility (inside the data/)

This commit is contained in:
Lucas Baudin 2016-02-25 23:10:27 +01:00
parent f91426d748
commit 419b516dcf

View File

@ -205,6 +205,8 @@ FileManager::FileManager()
addRootDirs(root_dir);
if( fileExists(root_dir+"../../stk-assets"))
addRootDirs(root_dir+"../../stk-assets");
if( fileExists(root_dir+"/stk-assets"))
addRootDirs(root_dir+"/stk-assets");
if( fileExists(root_dir+"../../supertuxkart-assets"))
addRootDirs(root_dir+"../../supertuxkart-assets");
if ( getenv ( "SUPERTUXKART_ROOT_PATH" ) != NULL )