Move client textures to the correct place

master
Perttu Ahola 2012-03-19 21:34:21 +02:00
parent 1f56d71f19
commit 895b970a10
10 changed files with 3 additions and 3 deletions

View File

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 498 B

After

Width:  |  Height:  |  Size: 498 B

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

Before

Width:  |  Height:  |  Size: 582 B

After

Width:  |  Height:  |  Size: 582 B

View File

Before

Width:  |  Height:  |  Size: 710 B

After

Width:  |  Height:  |  Size: 710 B

View File

Before

Width:  |  Height:  |  Size: 489 B

After

Width:  |  Height:  |  Size: 489 B

View File

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