strat: replace kernel/dbg magic numbers with result defs

This commit is contained in:
Michael Scire 2019-03-28 16:57:18 -07:00
parent 285feba42b
commit acffae6643
13 changed files with 52 additions and 33 deletions

View file

@ -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;
}