mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Move client textures to the correct place
This commit is contained in:
parent
1f56d71f19
commit
895b970a10
10 changed files with 3 additions and 3 deletions
|
@ -132,9 +132,9 @@ std::string getTexturePath(const std::string &filename)
|
|||
*/
|
||||
if(fullpath == "")
|
||||
{
|
||||
std::string rel_path = std::string("client")
|
||||
+ DIR_DELIM + "textures" + DIR_DELIM + filename;
|
||||
std::string testpath = porting::path_share + DIR_DELIM + rel_path;
|
||||
std::string base_path = porting::path_share + DIR_DELIM + "textures"
|
||||
+ DIR_DELIM + "base" + DIR_DELIM + "pack";
|
||||
std::string testpath = base_path + DIR_DELIM + filename;
|
||||
// Check all filename extensions. Returns "" if not found.
|
||||
fullpath = getImagePath(testpath);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue