Fixed ResourceLoading not recognizing uppercase extensions

Former-commit-id: decf98cfc6681a416c39c45c4c5acd880aa870ce
This commit is contained in:
Lynix 2013-12-09 14:17:16 +01:00
parent 0d8572a60c
commit c2579bcf10
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ bool NzResourceLoader<Type, Parameters>::LoadFromFile(Type* resource, const NzSt
#endif
NzString path = NzFile::NormalizePath(filePath);
NzString ext = path.SubStringFrom('.', -1, true);
NzString ext = path.SubStringFrom('.', -1, true).ToLower();
if (ext.IsEmpty())
{
NazaraError("Failed to get file extension from \"" + filePath + '"');