mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-23 05:15:34 +00:00
* [ZIP] BugFix: Correct another codepath that may fail due to case sensitive string searches.
This commit is contained in:
parent
8d0128698a
commit
c376bc3f9c
1 changed files with 8 additions and 1 deletions
|
|
@ -487,8 +487,15 @@ FileNodeRef ZipFileSystem::resolveLoose(const Path& path)
|
||||||
if(mZipNameIsDir)
|
if(mZipNameIsDir)
|
||||||
{
|
{
|
||||||
// Remove the fake root from the name so things can be found
|
// Remove the fake root from the name so things can be found
|
||||||
|
#ifdef TORQUE_ZIP_PATH_CASE_INSENSITIVE
|
||||||
|
String lowerFakeRoot = String::ToLower(mFakeRoot);
|
||||||
|
String lowerName = String::ToLower(name);
|
||||||
|
if(lowerName.find(lowerFakeRoot) == 0)
|
||||||
|
name = name.substr(mFakeRoot.length());
|
||||||
|
#else
|
||||||
if(name.find(mFakeRoot) == 0)
|
if(name.find(mFakeRoot) == 0)
|
||||||
name = name.substr(mFakeRoot.length());
|
name = name.substr(mFakeRoot.length());
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef TORQUE_DISABLE_FIND_ROOT_WITHIN_ZIP
|
#ifdef TORQUE_DISABLE_FIND_ROOT_WITHIN_ZIP
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue