|
@@ -75,7 +75,7 @@ namespace bx
|
|
|
{
|
|
{
|
|
|
#if BX_PLATFORM_WINDOWS || BX_PLATFORM_XBOX360
|
|
#if BX_PLATFORM_WINDOWS || BX_PLATFORM_XBOX360
|
|
|
::Sleep(_ms);
|
|
::Sleep(_ms);
|
|
|
-#elif BX_PLATFORM_WINRT
|
|
|
|
|
|
|
+#elif BX_PLATFORM_XBOXONE || BX_PLATFORM_WINRT
|
|
|
BX_UNUSED(_ms);
|
|
BX_UNUSED(_ms);
|
|
|
debugOutput("sleep is not implemented"); debugBreak();
|
|
debugOutput("sleep is not implemented"); debugBreak();
|
|
|
#else
|
|
#else
|
|
@@ -91,7 +91,7 @@ namespace bx
|
|
|
::SwitchToThread();
|
|
::SwitchToThread();
|
|
|
#elif BX_PLATFORM_XBOX360
|
|
#elif BX_PLATFORM_XBOX360
|
|
|
::Sleep(0);
|
|
::Sleep(0);
|
|
|
-#elif BX_PLATFORM_WINRT
|
|
|
|
|
|
|
+#elif BX_PLATFORM_XBOXONE || BX_PLATFORM_WINRT
|
|
|
debugOutput("yield is not implemented"); debugBreak();
|
|
debugOutput("yield is not implemented"); debugBreak();
|
|
|
#else
|
|
#else
|
|
|
::sched_yield();
|
|
::sched_yield();
|
|
@@ -180,6 +180,7 @@ namespace bx
|
|
|
#elif BX_PLATFORM_EMSCRIPTEN \
|
|
#elif BX_PLATFORM_EMSCRIPTEN \
|
|
|
|| BX_PLATFORM_NACL \
|
|
|| BX_PLATFORM_NACL \
|
|
|
|| BX_PLATFORM_PS4 \
|
|
|| BX_PLATFORM_PS4 \
|
|
|
|
|
+ || BX_PLATFORM_XBOXONE \
|
|
|
|| BX_PLATFORM_WINRT
|
|
|| BX_PLATFORM_WINRT
|
|
|
BX_UNUSED(_filePath);
|
|
BX_UNUSED(_filePath);
|
|
|
return NULL;
|
|
return NULL;
|
|
@@ -195,6 +196,7 @@ namespace bx
|
|
|
#elif BX_PLATFORM_EMSCRIPTEN \
|
|
#elif BX_PLATFORM_EMSCRIPTEN \
|
|
|
|| BX_PLATFORM_NACL \
|
|
|| BX_PLATFORM_NACL \
|
|
|
|| BX_PLATFORM_PS4 \
|
|
|| BX_PLATFORM_PS4 \
|
|
|
|
|
+ || BX_PLATFORM_XBOXONE \
|
|
|
|| BX_PLATFORM_WINRT
|
|
|| BX_PLATFORM_WINRT
|
|
|
BX_UNUSED(_handle);
|
|
BX_UNUSED(_handle);
|
|
|
#else
|
|
#else
|
|
@@ -209,6 +211,7 @@ namespace bx
|
|
|
#elif BX_PLATFORM_EMSCRIPTEN \
|
|
#elif BX_PLATFORM_EMSCRIPTEN \
|
|
|
|| BX_PLATFORM_NACL \
|
|
|| BX_PLATFORM_NACL \
|
|
|
|| BX_PLATFORM_PS4 \
|
|
|| BX_PLATFORM_PS4 \
|
|
|
|
|
+ || BX_PLATFORM_XBOXONE \
|
|
|
|| BX_PLATFORM_WINRT
|
|
|| BX_PLATFORM_WINRT
|
|
|
BX_UNUSED(_handle, _symbol);
|
|
BX_UNUSED(_handle, _symbol);
|
|
|
return NULL;
|
|
return NULL;
|
|
@@ -222,6 +225,7 @@ namespace bx
|
|
|
#if BX_PLATFORM_WINDOWS
|
|
#if BX_PLATFORM_WINDOWS
|
|
|
::SetEnvironmentVariableA(_name, _value);
|
|
::SetEnvironmentVariableA(_name, _value);
|
|
|
#elif BX_PLATFORM_PS4 \
|
|
#elif BX_PLATFORM_PS4 \
|
|
|
|
|
+ || BX_PLATFORM_XBOXONE \
|
|
|
|| BX_PLATFORM_WINRT
|
|
|| BX_PLATFORM_WINRT
|
|
|
BX_UNUSED(_name, _value);
|
|
BX_UNUSED(_name, _value);
|
|
|
#else
|
|
#else
|
|
@@ -234,6 +238,7 @@ namespace bx
|
|
|
#if BX_PLATFORM_WINDOWS
|
|
#if BX_PLATFORM_WINDOWS
|
|
|
::SetEnvironmentVariableA(_name, NULL);
|
|
::SetEnvironmentVariableA(_name, NULL);
|
|
|
#elif BX_PLATFORM_PS4 \
|
|
#elif BX_PLATFORM_PS4 \
|
|
|
|
|
+ || BX_PLATFORM_XBOXONE \
|
|
|
|| BX_PLATFORM_WINRT
|
|
|| BX_PLATFORM_WINRT
|
|
|
BX_UNUSED(_name);
|
|
BX_UNUSED(_name);
|
|
|
#else
|
|
#else
|
|
@@ -244,6 +249,7 @@ namespace bx
|
|
|
inline int chdir(const char* _path)
|
|
inline int chdir(const char* _path)
|
|
|
{
|
|
{
|
|
|
#if BX_PLATFORM_PS4 \
|
|
#if BX_PLATFORM_PS4 \
|
|
|
|
|
+ || BX_PLATFORM_XBOXONE \
|
|
|
|| BX_PLATFORM_WINRT
|
|
|| BX_PLATFORM_WINRT
|
|
|
BX_UNUSED(_path);
|
|
BX_UNUSED(_path);
|
|
|
return -1;
|
|
return -1;
|
|
@@ -257,6 +263,7 @@ namespace bx
|
|
|
inline char* pwd(char* _buffer, uint32_t _size)
|
|
inline char* pwd(char* _buffer, uint32_t _size)
|
|
|
{
|
|
{
|
|
|
#if BX_PLATFORM_PS4 \
|
|
#if BX_PLATFORM_PS4 \
|
|
|
|
|
+ || BX_PLATFORM_XBOXONE \
|
|
|
|| BX_PLATFORM_WINRT
|
|
|| BX_PLATFORM_WINRT
|
|
|
BX_UNUSED(_buffer, _size);
|
|
BX_UNUSED(_buffer, _size);
|
|
|
return NULL;
|
|
return NULL;
|