1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Move images to data/textures and fix some path stuff; hope that installation still works

This commit is contained in:
Perttu Ahola 2011-11-10 23:30:12 +02:00
parent 2115a766f6
commit ee8b6d3444
107 changed files with 13 additions and 11 deletions

View file

@ -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);
}