mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-18 17:14:28 -04:00
strat: replace kernel/dbg magic numbers with result defs
This commit is contained in:
parent
285feba42b
commit
acffae6643
13 changed files with 52 additions and 33 deletions
|
@ -40,8 +40,8 @@ Result DebugMonitorService::GetProcessId(Out<u64> out_pid, Handle hnd) {
|
|||
|
||||
Result DebugMonitorService::GetProcessHandle(Out<Handle> out_hnd, u64 pid) {
|
||||
Result rc = svcDebugActiveProcess(out_hnd.GetPointer(), pid);
|
||||
if (rc == 0xF401) {
|
||||
rc = 0x4B7;
|
||||
if (rc == ResultKernelAlreadyExists) {
|
||||
rc = ResultDebugAlreadyAttached;
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue