diff --git a/src/path.cpp b/src/path.cpp index 4c16b0a..92b8583 100644 --- a/src/path.cpp +++ b/src/path.cpp @@ -149,7 +149,7 @@ std::string getPath(const char* tp, const std::string &filename, bool must_exist std::string data_path = g_settings->get("data_path"); if (data_path != "") { std::string testpath = data_path + DIR_DELIM + rel_path; - if (type == "model" || type == "html" || type == "sound" || type == "font") { + if (type == "model" || type == "html" || type == "sound" || type == "skin" || type == "font") { if (fs::PathExists(testpath)) fullpath = std::string(testpath); }else{ @@ -160,7 +160,7 @@ std::string getPath(const char* tp, const std::string &filename, bool must_exist /* check from user data directory */ if (fullpath == "") { std::string testpath = porting::path_userdata + DIR_DELIM + rel_path; - if (type == "model" || type == "html" || type == "sound" || type == "font") { + if (type == "model" || type == "html" || type == "sound" || type == "skin" || type == "font") { if (fs::PathExists(testpath)) fullpath = std::string(testpath); }else{ @@ -171,7 +171,7 @@ std::string getPath(const char* tp, const std::string &filename, bool must_exist /* check from default data directory */ if (fullpath == "") { std::string testpath = porting::path_data + DIR_DELIM + rel_path; - if (type == "model" || type == "html" || type == "sound" || type == "font") { + if (type == "model" || type == "html" || type == "sound" || type == "skin" || type == "font") { if (fs::PathExists(testpath)) fullpath = std::string(testpath); }else{