mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-19 01:15:08 -04:00
loader: refactor to use LoaderModuleInfo
This commit is contained in:
parent
5c9d0f05b1
commit
ed86c44a49
5 changed files with 36 additions and 44 deletions
|
@ -31,9 +31,9 @@ void DebugMonitorService::ClearLaunchQueue() {
|
|||
LaunchQueue::Clear();
|
||||
}
|
||||
|
||||
Result DebugMonitorService::GetNsoInfo(Out<u32> count, OutPointerWithClientSize<Registration::NsoInfo> out, u64 pid) {
|
||||
Result DebugMonitorService::GetProcessModuleInfo(Out<u32> count, OutPointerWithClientSize<LoaderModuleInfo> out, u64 pid) {
|
||||
/* Zero out the output memory. */
|
||||
std::fill(out.pointer, out.pointer + out.num_elements, Registration::NsoInfo{});
|
||||
std::memset(out.pointer, 0, out.num_elements * sizeof(LoaderModuleInfo));
|
||||
/* Actually return the nso infos. */
|
||||
return Registration::GetNsoInfosForProcessId(out.pointer, out.num_elements, pid, count.GetPointer());
|
||||
return Registration::GetProcessModuleInfo(out.pointer, out.num_elements, pid, count.GetPointer());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue