1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-10 04:31:44 +00:00

Fix compatibility with libnx v3.2.0.

This commit is contained in:
Pablo Curiel 2020-05-14 22:59:57 -04:00
parent 1ebc106b79
commit 3e47dd180d

View file

@ -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);