Fixed ResourceLoading not recognizing uppercase extensions
Former-commit-id: decf98cfc6681a416c39c45c4c5acd880aa870ce
This commit is contained in:
@@ -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 + '"');
|
||||||
|
|||||||
Reference in New Issue
Block a user