win32 stuff
This commit is contained in:
parent
66799311e7
commit
e1f9b018e4
@ -639,6 +639,7 @@ cardinal TTextureListClass::AddTexture(const std::string& fileName, std::string
|
|||||||
|
|
||||||
std::string realFileName;
|
std::string realFileName;
|
||||||
|
|
||||||
|
#ifdef TARGET_WIN32
|
||||||
if (GetFileName(fileName).find('.') == std::string::npos)
|
if (GetFileName(fileName).find('.') == std::string::npos)
|
||||||
{
|
{
|
||||||
realFileName = AutocompleteExtension(fullFileName); //AutocompleteExtension works for Windows only
|
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
|
realFileName = fullFileName; //AutocompleteExtension works for Windows only
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
realFileName = fullFileName;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
return AddTextureDirectly(realFileName, texName);
|
return AddTextureDirectly(realFileName, texName);
|
||||||
|
Loading…
Reference in New Issue
Block a user