diff options
Diffstat (limited to 'APEX_1.4/shared/external')
| -rw-r--r-- | APEX_1.4/shared/external/include/DirEntry.h | 4 | ||||
| -rw-r--r-- | APEX_1.4/shared/external/src/UserAllocator.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/APEX_1.4/shared/external/include/DirEntry.h b/APEX_1.4/shared/external/include/DirEntry.h index 64fd54cb..7cf0fd2e 100644 --- a/APEX_1.4/shared/external/include/DirEntry.h +++ b/APEX_1.4/shared/external/include/DirEntry.h @@ -22,8 +22,8 @@ #include "linux/DirEntry.h" #elif PX_PS4 #include "ps4/DirEntry.h" -#elif PX_NX - #include "nx/DirEntry.h" +#elif PX_SWITCH + #include "switch/DirEntry.h" #else #error "Platform not supported!" #endif diff --git a/APEX_1.4/shared/external/src/UserAllocator.cpp b/APEX_1.4/shared/external/src/UserAllocator.cpp index ec131bc0..9177fde7 100644 --- a/APEX_1.4/shared/external/src/UserAllocator.cpp +++ b/APEX_1.4/shared/external/src/UserAllocator.cpp @@ -172,7 +172,7 @@ void* UserPxAllocator::allocate(size_t size, const char* typeName, const char* f #if PX_WINDOWS_FAMILY ret = ::_aligned_malloc(size, 16); -#elif PX_ANDROID || PX_LINUX_FAMILY || PX_NX +#elif PX_ANDROID || PX_LINUX_FAMILY || PX_SWITCH /* Allocate size + (15 + sizeof(void*)) bytes and shift pointer further, write original address in the beginning of block.*/ /* Weirdly, memalign sometimes returns unaligned address */ // ret = ::memalign(size, 16); @@ -203,7 +203,7 @@ void UserPxAllocator::deallocate(void* memory) { #if PX_WINDOWS_FAMILY ::_aligned_free(memory); -#elif PX_ANDROID || PX_LINUX_FAMILY || PX_NX +#elif PX_ANDROID || PX_LINUX_FAMILY || PX_SWITCH // Looks scary, but all it does is getting original unaligned block address back from 4/8 bytes (depends on pointer size) prior to <memory> pointer and frees this memory void* originalPtr = (void*)(*(size_t*)((char*)memory - sizeof(void*))); ::free(originalPtr); |