diff options
Diffstat (limited to 'src/tile.cpp')
-rw-r--r-- | src/tile.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tile.cpp b/src/tile.cpp index 25f8a000b..73c286fb3 100644 --- a/src/tile.cpp +++ b/src/tile.cpp @@ -132,6 +132,18 @@ std::string getTexturePath(const std::string &filename) } /* + Check from $user/textures/all + */ + if(fullpath == "") + { + std::string texture_path = porting::path_user + DIR_DELIM + + "textures" + DIR_DELIM + "all"; + std::string testpath = texture_path + DIR_DELIM + filename; + // Check all filename extensions. Returns "" if not found. + fullpath = getImagePath(testpath); + } + + /* Check from default data directory */ if(fullpath == "") |