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

@ -282,7 +282,7 @@ Result Registration::GetServiceHandle(u64 pid, u64 service, Handle *out) {
}
}
if (R_FAILED(rc)) {
if ((rc & 0x3FFFFF) == 0xE01) {
if ((rc & 0x3FFFFF) == ResultKernelOutOfSessions) {
return ResultSmInsufficientSessions;
}
}