diff --git a/src/Platform.c b/src/Platform.c index 34f7d7d..f41ffde 100644 --- a/src/Platform.c +++ b/src/Platform.c @@ -14,10 +14,6 @@ struct thread_context { #endif }; -#ifdef __3DS__ -static int n3ds_thread_priority = 0x30; -#endif - static int activeThreads = 0; static int activeMutexes = 0; static int activeEvents = 0; @@ -284,10 +280,12 @@ int PltCreateThread(const char* name, ThreadEntry entry, void* context, PLT_THRE #elif defined(__3DS__) { size_t stack_size = 0x40000; + s32 priority = 0x30; + svcGetThreadPriority(&priority, CUR_THREAD_HANDLE); thread->thread = threadCreate(ThreadProc, ctx, stack_size, - n3ds_thread_priority, + priority, -1, false); if (thread->thread == NULL) { @@ -496,9 +494,6 @@ int initializePlatform(void) { return err; } -#ifdef __3DS__ - svcGetThreadPriority(&n3ds_thread_priority, CUR_THREAD_HANDLE); -#endif enterLowLatencyMode(); return 0;