mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-12-27 07:06:00 +00:00
Fix regression that prevented few textures from loading (Labyrinth mod icon, for example)
This commit is contained in:
parent
93892ff46a
commit
319b9d09ed
2 changed files with 6 additions and 2 deletions
|
@ -110,7 +110,7 @@ std::string getSystemLocale()
|
||||||
|
|
||||||
size_t found = localeStr.find('.');
|
size_t found = localeStr.find('.');
|
||||||
|
|
||||||
if (found != string::npos)
|
if (found != std::string::npos)
|
||||||
localeStr.resize(found);
|
localeStr.resize(found);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -281,6 +281,9 @@ void Texture::load(std::string file)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stringToLowerUserData(file);
|
||||||
|
file = core->adjustFilenameCase(file);
|
||||||
|
|
||||||
loadName = file;
|
loadName = file;
|
||||||
repeating = false;
|
repeating = false;
|
||||||
|
|
||||||
|
@ -316,6 +319,7 @@ void Texture::load(std::string file)
|
||||||
if (found)
|
if (found)
|
||||||
{
|
{
|
||||||
file = localisePath(file);
|
file = localisePath(file);
|
||||||
|
file = core->adjustFilenameCase(file);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
std::ostringstream os;
|
std::ostringstream os;
|
||||||
|
|
Loading…
Reference in a new issue