mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Moves from using dStrCmp to the new String::compare static functions. Keeps things cleaner, consistent, and works with intellisense.
This commit is contained in:
parent
76c5e30869
commit
c999baf7ed
68 changed files with 168 additions and 144 deletions
|
|
@ -206,7 +206,7 @@ void Platform::clearExcludedDirectories()
|
|||
bool Platform::isExcludedDirectory(const char *pDir)
|
||||
{
|
||||
for(CharVector::iterator i=gPlatformDirectoryExcludeList.begin(); i!=gPlatformDirectoryExcludeList.end(); i++)
|
||||
if(!dStrcmp(pDir, *i))
|
||||
if(!String::compare(pDir, *i))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
|
@ -349,18 +349,18 @@ char * Platform::makeFullPathName(const char *path, char *buffer, U32 size, cons
|
|||
|
||||
// Directory
|
||||
|
||||
if(dStrcmp(ptr, "..") == 0)
|
||||
if(String::compare(ptr, "..") == 0)
|
||||
{
|
||||
// Parent
|
||||
endptr = dStrrchr(buffer, '/');
|
||||
if (endptr)
|
||||
*endptr-- = 0;
|
||||
}
|
||||
else if(dStrcmp(ptr, ".") == 0)
|
||||
else if(String::compare(ptr, ".") == 0)
|
||||
{
|
||||
// Current dir
|
||||
}
|
||||
else if(dStrcmp(ptr, "~") == 0)
|
||||
else if(String::compare(ptr, "~") == 0)
|
||||
{
|
||||
catPath(endptr, defaultDir, size - (endptr - buffer));
|
||||
endptr += dStrlen(endptr) - 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue