Move client textures to the correct place
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 498 B After Width: | Height: | Size: 498 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 582 B After Width: | Height: | Size: 582 B |
Before Width: | Height: | Size: 710 B After Width: | Height: | Size: 710 B |
Before Width: | Height: | Size: 489 B After Width: | Height: | Size: 489 B |
|
@ -132,9 +132,9 @@ std::string getTexturePath(const std::string &filename)
|
||||||
*/
|
*/
|
||||||
if(fullpath == "")
|
if(fullpath == "")
|
||||||
{
|
{
|
||||||
std::string rel_path = std::string("client")
|
std::string base_path = porting::path_share + DIR_DELIM + "textures"
|
||||||
+ DIR_DELIM + "textures" + DIR_DELIM + filename;
|
+ DIR_DELIM + "base" + DIR_DELIM + "pack";
|
||||||
std::string testpath = porting::path_share + DIR_DELIM + rel_path;
|
std::string testpath = base_path + DIR_DELIM + filename;
|
||||||
// Check all filename extensions. Returns "" if not found.
|
// Check all filename extensions. Returns "" if not found.
|
||||||
fullpath = getImagePath(testpath);
|
fullpath = getImagePath(testpath);
|
||||||
}
|
}
|
||||||
|
|