From 419b516dcf40c755ef30febcdc5acd0af2971d6f Mon Sep 17 00:00:00 2001 From: Lucas Baudin Date: Thu, 25 Feb 2016 23:10:27 +0100 Subject: [PATCH] Add extra stk-assets possibility (inside the data/) --- src/io/file_manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/io/file_manager.cpp b/src/io/file_manager.cpp index b173f94b2..ad6176ea7 100644 --- a/src/io/file_manager.cpp +++ b/src/io/file_manager.cpp @@ -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 )