From 3e47dd180deb8d015918e0d0ca5c57b459196795 Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Thu, 14 May 2020 22:59:57 -0400 Subject: [PATCH] Fix compatibility with libnx v3.2.0. --- source/services.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/services.c b/source/services.c index a2fc044..1d4a1fc 100644 --- a/source/services.c +++ b/source/services.c @@ -39,6 +39,7 @@ typedef struct ServicesInfoEntry { /* Function prototypes. */ +static Result servicesPlUserInitialize(void); static Result servicesNifmUserInitialize(void); static bool servicesClkGetServiceType(void *arg); static bool servicesSplCryptoCheckAvailability(void *arg); @@ -53,7 +54,7 @@ static ServicesInfoEntry g_serviceInfo[] = { { false, "spl", NULL, &splInitialize, &splExit }, { false, "spl:mig", &servicesSplCryptoCheckAvailability, &splCryptoInitialize, &splCryptoExit }, /* Checks if spl:mig is really available (e.g. avoid calling splInitialize twice) */ { false, "pm:dmnt", NULL, &pmdmntInitialize, &pmdmntExit }, - { false, "pl", NULL, &plInitialize, &plExit }, + { false, "pl:u", NULL, &servicesPlUserInitialize, &plExit }, { false, "psm", NULL, &psmInitialize, &psmExit }, { false, "nifm:u", NULL, &servicesNifmUserInitialize, &nifmExit }, { false, "clk", &servicesClkGetServiceType, NULL, NULL }, /* Placeholder for pcv / clkrst */ @@ -180,6 +181,11 @@ void servicesChangeHardwareClockRates(u32 cpu_rate, u32 mem_rate) mutexUnlock(&g_servicesMutex); } +static Result servicesPlUserInitialize(void) +{ + return plInitialize(PlServiceType_User); +} + static Result servicesNifmUserInitialize(void) { return nifmInitialize(NifmServiceType_User);