mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
refactored platform precompiler variable: TORQUE_OS_WIN{32,64,}
This commit is contained in:
parent
47a2cc165a
commit
6d8e0d7e25
31 changed files with 48 additions and 42 deletions
|
|
@ -140,7 +140,7 @@ inline void catPath(char *dst, const char *src, U32 len)
|
|||
|
||||
// converts the posix root path "/" to "c:/" for win32
|
||||
// FIXME: this is not ideal. the c: drive is not guaranteed to exist.
|
||||
#if defined(TORQUE_OS_WIN32)
|
||||
#if defined(TORQUE_OS_WIN)
|
||||
static inline void _resolveLeadingSlash(char* buf, U32 size)
|
||||
{
|
||||
if(buf[0] != '/')
|
||||
|
|
@ -227,7 +227,7 @@ char * Platform::makeFullPathName(const char *path, char *buffer, U32 size, cons
|
|||
if(Platform::isFullPath(bspath))
|
||||
{
|
||||
// Already a full path
|
||||
#if defined(TORQUE_OS_WIN32)
|
||||
#if defined(TORQUE_OS_WIN)
|
||||
_resolveLeadingSlash(bspath, sizeof(bspath));
|
||||
#endif
|
||||
dStrncpy(buffer, bspath, size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue