mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-22 02:45:07 -04:00
dmnt.gen2: enable attach to arbitrary program id
This commit is contained in:
parent
92a8c8eb88
commit
159f8d384b
3 changed files with 25 additions and 2 deletions
|
@ -44,6 +44,13 @@ namespace ams::pm::dmnt {
|
|||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result HookToCreateProcess(os::NativeHandle *out_handle, const ncm::ProgramId program_id) {
|
||||
Event evt;
|
||||
R_TRY(pmdmntHookToCreateProcess(std::addressof(evt), static_cast<u64>(program_id)));
|
||||
*out_handle = evt.revent;
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Result AtmosphereGetProcessInfo(os::NativeHandle *out_handle, ncm::ProgramLocation *out_loc, cfg::OverrideStatus *out_status, os::ProcessId process_id) {
|
||||
*out_handle = os::InvalidNativeHandle;
|
||||
*out_loc = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue