From 4e08e19c76b5064f9806cae4fcaccbdf15cb9591 Mon Sep 17 00:00:00 2001 From: darkrose Date: Mon, 17 Nov 2014 18:41:32 +1000 Subject: [PATCH] fix pathfinder for skins --- src/path.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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{