mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53: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
|
|
@ -625,7 +625,7 @@ static bool recurseDumpPath(const char *path, const char *pattern, Vector<Platfo
|
|||
continue;
|
||||
|
||||
// skip . and .. directories
|
||||
if (dStrcmp( findData.cFileName, TEXT( "." ) ) == 0 || dStrcmp( findData.cFileName, TEXT( ".." ) ) == 0)
|
||||
if (String::compare( findData.cFileName, TEXT( "." ) ) == 0 || String::compare( findData.cFileName, TEXT( ".." ) ) == 0)
|
||||
continue;
|
||||
|
||||
// Skip excluded directores
|
||||
|
|
@ -1096,7 +1096,7 @@ bool Platform::isSubDirectory(const char *pParent, const char *pDir)
|
|||
//FIXME: this has to be dStrcasecmp but there's no implementation for Unicode
|
||||
|
||||
// and the names match
|
||||
if (dStrcmp(dir, findData.cFileName ) == 0)
|
||||
if (String::compare(dir, findData.cFileName ) == 0)
|
||||
{
|
||||
// then we have a real sub directory
|
||||
FindClose(handle);
|
||||
|
|
@ -1282,7 +1282,7 @@ bool Platform::hasSubDirectory(const char *pPath)
|
|||
if (findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
||||
{
|
||||
// skip . and .. directories
|
||||
if (dStrcmp(findData.cFileName, TEXT( "." ) ) == 0 || dStrcmp(findData.cFileName, TEXT( ".." ) ) == 0)
|
||||
if (String::compare(findData.cFileName, TEXT( "." ) ) == 0 || String::compare(findData.cFileName, TEXT( ".." ) ) == 0)
|
||||
continue;
|
||||
|
||||
#ifdef UNICODE
|
||||
|
|
@ -1417,7 +1417,7 @@ static bool recurseDumpDirectories(const char *basePath, const char *subPath, Ve
|
|||
if (findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
||||
{
|
||||
// skip . and .. directories
|
||||
if (dStrcmp(findData.cFileName, TEXT( "." )) == 0 || dStrcmp(findData.cFileName, TEXT( ".." )) == 0)
|
||||
if (String::compare(findData.cFileName, TEXT( "." )) == 0 || String::compare(findData.cFileName, TEXT( ".." )) == 0)
|
||||
continue;
|
||||
|
||||
#ifdef UNICODE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue