mirror of
https://github.com/jakcron/nstool
synced 2024-11-22 21:49:30 +00:00
[hac] Fix bug where stubbed kernel entries were not ignored.
This commit is contained in:
parent
9bc40e3a99
commit
cd29ed80e6
2 changed files with 4 additions and 1 deletions
|
@ -48,7 +48,7 @@ namespace hac
|
|||
}
|
||||
|
||||
if (id == kc::KC_INVALID && cap == (uint32_t)0xffffffff)
|
||||
id == kc::KC_STUB;
|
||||
id = kc::KC_STUB;
|
||||
|
||||
return id;
|
||||
}
|
||||
|
|
|
@ -117,6 +117,9 @@ void nn::hac::KernelCapabilityControl::fromBytes(const byte_t * data, size_t len
|
|||
case (kc::KC_MISC_FLAGS):
|
||||
miscFlagsCaps.addElement(cap);
|
||||
break;
|
||||
case (kc::KC_STUB):
|
||||
// ignore stubbed
|
||||
break;
|
||||
default:
|
||||
throw fnd::Exception(kModuleName, "Unsupported kernel capability type");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue