mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Move images to data/textures and fix some path stuff; hope that installation still works
This commit is contained in:
@@ -130,7 +130,8 @@ std::string getTexturePath(const std::string &filename)
|
||||
*/
|
||||
if(fullpath == "")
|
||||
{
|
||||
std::string testpath = porting::getDataPath(filename.c_str());
|
||||
std::string rel_path = std::string("textures")+DIR_DELIM+filename;
|
||||
std::string testpath = porting::path_data + DIR_DELIM + rel_path;
|
||||
// Check all filename extensions. Returns "" if not found.
|
||||
fullpath = getImagePath(testpath);
|
||||
}
|
||||
|
Reference in New Issue
Block a user