mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-26 12:12:02 +00:00
Fix compatibility with libnx v3.2.0.
This commit is contained in:
parent
1ebc106b79
commit
3e47dd180d
1 changed files with 7 additions and 1 deletions
|
@ -39,6 +39,7 @@ typedef struct ServicesInfoEntry {
|
||||||
|
|
||||||
/* Function prototypes. */
|
/* Function prototypes. */
|
||||||
|
|
||||||
|
static Result servicesPlUserInitialize(void);
|
||||||
static Result servicesNifmUserInitialize(void);
|
static Result servicesNifmUserInitialize(void);
|
||||||
static bool servicesClkGetServiceType(void *arg);
|
static bool servicesClkGetServiceType(void *arg);
|
||||||
static bool servicesSplCryptoCheckAvailability(void *arg);
|
static bool servicesSplCryptoCheckAvailability(void *arg);
|
||||||
|
@ -53,7 +54,7 @@ static ServicesInfoEntry g_serviceInfo[] = {
|
||||||
{ false, "spl", NULL, &splInitialize, &splExit },
|
{ 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, "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, "pm:dmnt", NULL, &pmdmntInitialize, &pmdmntExit },
|
||||||
{ false, "pl", NULL, &plInitialize, &plExit },
|
{ false, "pl:u", NULL, &servicesPlUserInitialize, &plExit },
|
||||||
{ false, "psm", NULL, &psmInitialize, &psmExit },
|
{ false, "psm", NULL, &psmInitialize, &psmExit },
|
||||||
{ false, "nifm:u", NULL, &servicesNifmUserInitialize, &nifmExit },
|
{ false, "nifm:u", NULL, &servicesNifmUserInitialize, &nifmExit },
|
||||||
{ false, "clk", &servicesClkGetServiceType, NULL, NULL }, /* Placeholder for pcv / clkrst */
|
{ false, "clk", &servicesClkGetServiceType, NULL, NULL }, /* Placeholder for pcv / clkrst */
|
||||||
|
@ -180,6 +181,11 @@ void servicesChangeHardwareClockRates(u32 cpu_rate, u32 mem_rate)
|
||||||
mutexUnlock(&g_servicesMutex);
|
mutexUnlock(&g_servicesMutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static Result servicesPlUserInitialize(void)
|
||||||
|
{
|
||||||
|
return plInitialize(PlServiceType_User);
|
||||||
|
}
|
||||||
|
|
||||||
static Result servicesNifmUserInitialize(void)
|
static Result servicesNifmUserInitialize(void)
|
||||||
{
|
{
|
||||||
return nifmInitialize(NifmServiceType_User);
|
return nifmInitialize(NifmServiceType_User);
|
||||||
|
|
Loading…
Reference in a new issue