mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-18 08:22:04 +00:00
pm: hook up the new libnx apis
This commit is contained in:
parent
0a81889967
commit
f804793fdf
4 changed files with 11 additions and 16 deletions
|
@ -29,7 +29,7 @@ namespace ams::pm::shell {
|
|||
Result GetProcessEventInfo(ProcessEventInfo *out);
|
||||
Result GetApplicationProcessIdForShell(os::ProcessId *out);
|
||||
Result BoostSystemMemoryResourceLimit(u64 size);
|
||||
Result EnableApplicationExtraThread();
|
||||
Result EnableSystemExtraThread();
|
||||
Result BoostApplicationThreadResourceLimit();
|
||||
Result BoostSystemThreadResourceLimit();
|
||||
|
||||
}
|
||||
|
|
|
@ -26,9 +26,7 @@ namespace ams::pm::dmnt {
|
|||
}
|
||||
|
||||
Result GetProgramId(ncm::ProgramId *out_program_id, os::ProcessId process_id) {
|
||||
/* TODO: return return pmdmntGetProgramId(reinterpret_cast<u64 *>(out_program_id), static_cast<u64>(process_id)); */
|
||||
AMS_UNUSED(out_program_id, process_id);
|
||||
AMS_ABORT("TODO");
|
||||
return pmdmntGetProgramId(reinterpret_cast<u64 *>(out_program_id), static_cast<u64>(process_id));
|
||||
}
|
||||
|
||||
Result GetProcessId(os::ProcessId *out_process_id, const ncm::ProgramId program_id) {
|
||||
|
|
|
@ -29,15 +29,13 @@ namespace ams::pm::info {
|
|||
}
|
||||
|
||||
Result GetAppletCurrentResourceLimitValues(pm::ResourceLimitValues *out) {
|
||||
/* TODO: return pminfoGetAppletCurrentResourceLimitValues(reinterpret_cast<PmResourceLimitValues *>(out)); */
|
||||
AMS_UNUSED(out);
|
||||
AMS_ABORT("TODO");
|
||||
static_assert(sizeof(pm::ResourceLimitValues) == sizeof(::PmResourceLimitValues));
|
||||
return pminfoGetAppletCurrentResourceLimitValues(reinterpret_cast<PmResourceLimitValues *>(out));
|
||||
}
|
||||
|
||||
Result GetAppletPeakResourceLimitValues(pm::ResourceLimitValues *out) {
|
||||
/* TODO: return pminfoGetAppletPeakResourceLimitValues(reinterpret_cast<PmResourceLimitValues *>(out)); */
|
||||
AMS_UNUSED(out);
|
||||
AMS_ABORT("TODO");
|
||||
static_assert(sizeof(pm::ResourceLimitValues) == sizeof(::PmResourceLimitValues));
|
||||
return pminfoGetAppletPeakResourceLimitValues(reinterpret_cast<PmResourceLimitValues *>(out));
|
||||
}
|
||||
|
||||
Result GetProcessInfo(ncm::ProgramLocation *out_loc, cfg::OverrideStatus *out_status, os::ProcessId process_id) {
|
||||
|
|
|
@ -50,14 +50,13 @@ namespace ams::pm::shell {
|
|||
return ::pmshellBoostSystemMemoryResourceLimit(size);
|
||||
}
|
||||
|
||||
Result EnableApplicationExtraThread() {
|
||||
return ::pmshellEnableApplicationExtraThread();
|
||||
Result BoostApplicationThreadResourceLimit() {
|
||||
return ::pmshellBoostApplicationThreadResourceLimit();
|
||||
}
|
||||
#endif
|
||||
|
||||
Result EnableSystemExtraThread() {
|
||||
/* TODO: return ::pmshellEnableSystemExtraThread(); */
|
||||
AMS_ABORT("TODO");
|
||||
Result BoostSystemThreadResourceLimit() {
|
||||
return ::pmshellBoostSystemThreadResourceLimit();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue