Fixed ResourceLoading not recognizing uppercase extensions
Former-commit-id: decf98cfc6681a416c39c45c4c5acd880aa870ce
This commit is contained in:
parent
0d8572a60c
commit
c2579bcf10
|
|
@ -35,7 +35,7 @@ bool NzResourceLoader<Type, Parameters>::LoadFromFile(Type* resource, const NzSt
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
NzString path = NzFile::NormalizePath(filePath);
|
NzString path = NzFile::NormalizePath(filePath);
|
||||||
NzString ext = path.SubStringFrom('.', -1, true);
|
NzString ext = path.SubStringFrom('.', -1, true).ToLower();
|
||||||
if (ext.IsEmpty())
|
if (ext.IsEmpty())
|
||||||
{
|
{
|
||||||
NazaraError("Failed to get file extension from \"" + filePath + '"');
|
NazaraError("Failed to get file extension from \"" + filePath + '"');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue