mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-09 23:40:42 +00:00
Convert dStrcmp to String::compare for more cases
This commit is contained in:
parent
c999baf7ed
commit
197a62f6ea
22 changed files with 45 additions and 45 deletions
|
|
@ -198,7 +198,7 @@ bool FileDialog::Execute()
|
|||
//The first of each pair is the name, which we'll skip because NFD doesn't support named filters atm
|
||||
String filter = StringUnit::getUnit(mData.mFilters, i, "|");
|
||||
|
||||
if (!dStrcmp(filter.c_str(), "*.*"))
|
||||
if (!String::compare(filter.c_str(), "*.*"))
|
||||
continue;
|
||||
|
||||
U32 subFilterCount = StringUnit::getUnitCount(filter, ";");
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ static bool deleteDirectoryRecusrive(const char* pPath)
|
|||
StringTableEntry basePath = *basePathItr;
|
||||
|
||||
// Skip if the base path.
|
||||
if (basePathItr == directories.begin() && dStrcmp(pPath, basePath) == 0)
|
||||
if (basePathItr == directories.begin() && String::compare(pPath, basePath) == 0)
|
||||
continue;
|
||||
|
||||
// Delete any directories recursively.
|
||||
|
|
@ -624,4 +624,4 @@ DefineEngineFunction( getUserHomeDirectory, const char *, (), , "getUserHomeDire
|
|||
DefineEngineFunction(setMainDotCsDir, void, (const char* path), , "setMainDotCsDir()")
|
||||
{
|
||||
Platform::setMainDotCsDir(StringTable->insert(path));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue