2
0
Эх сурвалжийг харах

Replaced call to makeFullPathName to expandPath to take advantage of the expando functionality

capnlove 12 жил өмнө
parent
commit
5a4d5442e2

+ 1 - 1
engine/source/graphics/TextureManager.cc

@@ -891,7 +891,7 @@ TextureObject *TextureManager::loadTexture(const char* pTextureKey, TextureHandl
 GBitmap *TextureManager::loadBitmap( const char* pTextureKey, bool recurse, bool nocompression )
 {
     char fileNameBuffer[512];
-    Platform::makeFullPathName( pTextureKey, fileNameBuffer, 512 );
+    Con::expandPath( fileNameBuffer, sizeof(fileNameBuffer), pTextureKey );
     GBitmap *bmp = NULL;
 
     // Loop through the supported extensions to find the file.