mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-10 07:50:44 +00:00
* [ZIPVolume] BugFix: Add the capability of resolving ZIP prefix paths with case insensitivity and a CMake option to control this behavior.
This commit is contained in:
parent
f3eadb922b
commit
8d0128698a
3 changed files with 14 additions and 1 deletions
|
|
@ -407,8 +407,15 @@ FileNodeRef ZipFileSystem::resolve(const Path& path)
|
|||
if(mZipNameIsDir)
|
||||
{
|
||||
// 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)
|
||||
name = name.substr(mFakeRoot.length());
|
||||
name = name.substr(mFakeRoot.length());
|
||||
#endif
|
||||
|
||||
#ifdef TORQUE_DISABLE_FIND_ROOT_WITHIN_ZIP
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue