win32 stuff

This commit is contained in:
Vladislav Khorev 2013-05-28 05:06:29 +00:00
parent 66799311e7
commit e1f9b018e4

View File

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