Common/FileSystem: Fix misspelling of 'separator'

This commit is contained in:
Michael Forney
2020-12-25 01:36:48 -08:00
committed by Connor McLaughlin
parent d0398c8a83
commit 7a40a843d4
5 changed files with 16 additions and 16 deletions

View File

@ -112,7 +112,7 @@ void CanonicalizePath(char* Destination, u32 cbDestination, const char* Path, bo
// fix ospath
if (OSPath && (currentCh == '\\' || currentCh == '/'))
currentCh = FS_OSPATH_SEPERATOR_CHARACTER;
currentCh = FS_OSPATH_SEPARATOR_CHARACTER;
// copy character
if (destinationLength < cbDestination)
@ -547,7 +547,7 @@ void BuildOSPath(char* Destination, u32 cbDestination, const char* Path)
for (i = 0; i < pathLength; i++)
{
if (Destination[i] == '/')
Destination[i] = FS_OSPATH_SEPERATOR_CHARACTER;
Destination[i] = FS_OSPATH_SEPARATOR_CHARACTER;
}
}
else
@ -556,7 +556,7 @@ void BuildOSPath(char* Destination, u32 cbDestination, const char* Path)
pathLength = std::max(pathLength, cbDestination - 1);
for (i = 0; i < pathLength; i++)
{
Destination[i] = (Path[i] == '/') ? FS_OSPATH_SEPERATOR_CHARACTER : Path[i];
Destination[i] = (Path[i] == '/') ? FS_OSPATH_SEPARATOR_CHARACTER : Path[i];
}
Destination[pathLength] = '\0';
@ -576,7 +576,7 @@ void BuildOSPath(String& Destination, const char* Path)
for (i = 0; i < pathLength; i++)
{
if (Destination[i] == '/')
Destination[i] = FS_OSPATH_SEPERATOR_CHARACTER;
Destination[i] = FS_OSPATH_SEPARATOR_CHARACTER;
}
}
else
@ -586,7 +586,7 @@ void BuildOSPath(String& Destination, const char* Path)
Destination.Resize(pathLength);
for (i = 0; i < pathLength; i++)
{
Destination[i] = (Path[i] == '/') ? FS_OSPATH_SEPERATOR_CHARACTER : Path[i];
Destination[i] = (Path[i] == '/') ? FS_OSPATH_SEPARATOR_CHARACTER : Path[i];
}
}
}

View File

@ -10,10 +10,10 @@
class ByteStream;
#ifdef WIN32
#define FS_OSPATH_SEPERATOR_CHARACTER '\\'
#define FS_OSPATH_SEPARATOR_CHARACTER '\\'
#define FS_OSPATH_SEPARATOR_STR "\\"
#else
#define FS_OSPATH_SEPERATOR_CHARACTER '/'
#define FS_OSPATH_SEPARATOR_CHARACTER '/'
#define FS_OSPATH_SEPARATOR_STR "/"
#endif