From ef2ddf69127f15f933e73436c030fd725c40aa04 Mon Sep 17 00:00:00 2001 From: Mats A Date: Thu, 26 Dec 2019 18:55:00 +0100 Subject: [PATCH] fix breaking changes from the 3.0.0 libnx release --- audio/drivers/switch_audio_compat.h | 2 +- audio/drivers/switch_libnx_audren_thread_audio.c | 2 +- frontend/drivers/platform_switch.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/audio/drivers/switch_audio_compat.h b/audio/drivers/switch_audio_compat.h index bc65f72ed9..8f9b228376 100644 --- a/audio/drivers/switch_audio_compat.h +++ b/audio/drivers/switch_audio_compat.h @@ -17,7 +17,7 @@ typedef Thread compat_thread; typedef CondVar compat_condvar; #define compat_thread_create(thread, func, data, stack_size, prio, cpu) \ - threadCreate(thread, func, data, stack_size, prio, cpu) + threadCreate(thread, func, data, NULL, stack_size, prio, cpu) #define compat_thread_start(thread) \ threadStart(thread) #define compat_thread_join(thread) \ diff --git a/audio/drivers/switch_libnx_audren_thread_audio.c b/audio/drivers/switch_libnx_audren_thread_audio.c index a4cde5a52e..c44f18aab4 100644 --- a/audio/drivers/switch_libnx_audren_thread_audio.c +++ b/audio/drivers/switch_libnx_audren_thread_audio.c @@ -232,7 +232,7 @@ static void *libnx_audren_thread_audio_init(const char *device, unsigned rate, u svcGetThreadPriority(&thread_priority, CUR_THREAD_HANDLE); rc = threadCreate(&aud->thread, &thread_job, - (void*)aud, thread_stack_size, + (void*)aud, NULL, thread_stack_size, thread_priority - 1, thread_preferred_cpu); if (R_FAILED(rc)) { diff --git a/frontend/drivers/platform_switch.c b/frontend/drivers/platform_switch.c index 92685e5aa2..df18934f91 100644 --- a/frontend/drivers/platform_switch.c +++ b/frontend/drivers/platform_switch.c @@ -691,7 +691,7 @@ static void frontend_switch_init(void *data) uint32_t width = 0; uint32_t height = 0; - nifmInitialize(); + nifmInitialize(NifmServiceType_User); if(hosversionBefore(8, 0, 0)) pcvInitialize();