From e1f9b018e4dfe0d0e3edc3a08a5b03d915b90deb Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Tue, 28 May 2013 05:06:29 +0000 Subject: [PATCH] win32 stuff --- src/TextureManager/SalmonTexture.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/TextureManager/SalmonTexture.cpp b/src/TextureManager/SalmonTexture.cpp index 6af8fe9..e4fe9db 100644 --- a/src/TextureManager/SalmonTexture.cpp +++ b/src/TextureManager/SalmonTexture.cpp @@ -639,6 +639,7 @@ cardinal TTextureListClass::AddTexture(const std::string& fileName, std::string std::string realFileName; +#ifdef TARGET_WIN32 if (GetFileName(fileName).find('.') == std::string::npos) { realFileName = AutocompleteExtension(fullFileName); //AutocompleteExtension works for Windows only @@ -647,6 +648,9 @@ cardinal TTextureListClass::AddTexture(const std::string& fileName, std::string { realFileName = fullFileName; //AutocompleteExtension works for Windows only } +#else + realFileName = fullFileName; +#endif return AddTextureDirectly(realFileName, texName);