mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Enforces filename string case sensitivity for assets' internal filenames, which avoids the stringtable messing with the case preventing file name case sensitivity issues.
This commit is contained in:
parent
c04f3ae166
commit
cfe122f714
18 changed files with 109 additions and 102 deletions
|
|
@ -132,14 +132,14 @@ void CppAsset::setCppFile(const char* pCppFile)
|
|||
AssertFatal(pCppFile != NULL, "Cannot use a NULL code file.");
|
||||
|
||||
// Fetch image file.
|
||||
pCppFile = StringTable->insert(pCppFile);
|
||||
pCppFile = StringTable->insert(pCppFile, true);
|
||||
|
||||
// Ignore no change,
|
||||
if (pCppFile == mCodeFile)
|
||||
return;
|
||||
|
||||
// Update.
|
||||
mCodeFile = /*getOwned() ? expandAssetFilePath(pCppFile) : */StringTable->insert(pCppFile);
|
||||
mCodeFile = getOwned() ? expandAssetFilePath(pCppFile) : pCppFile;
|
||||
|
||||
// Refresh the asset.
|
||||
refreshAsset();
|
||||
|
|
@ -158,7 +158,7 @@ void CppAsset::setHeaderFile(const char* pHeaderFile)
|
|||
return;
|
||||
|
||||
// Update.
|
||||
mHeaderFile = /*getOwned() ? expandAssetFilePath(pHeaderFile) :*/ StringTable->insert(pHeaderFile);
|
||||
mHeaderFile = getOwned() ? expandAssetFilePath(pHeaderFile) : pHeaderFile;
|
||||
|
||||
// Refresh the asset.
|
||||
refreshAsset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue