3dS: Attempt to use Core 2 for threads
Jeffrey Pfau jeffrey@endrift.com
Fri, 05 Aug 2016 22:45:45 -0700
2 files changed,
6 insertions(+),
0 deletions(-)
M
src/platform/3ds/threading.h
→
src/platform/3ds/threading.h
@@ -107,6 +107,11 @@ thread->stack = memalign(8, 0x8000);
if (!thread->stack) { return 1; } + bool isNew3DS; + APT_CheckNew3DS(&isNew3DS); + if (isNew3DS && svcCreateThread(&thread->handle, entry, (u32) context, (u32*) &thread->stack[0x8000], 0x18, 2) == 0) { + return 0; + } return svcCreateThread(&thread->handle, entry, (u32) context, (u32*) &thread->stack[0x8000], 0x18, -1); }