mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-22 10:45:28 +00:00
[hac] Fix bug where stubbed kernel entries were not ignored.
This commit is contained in:
parent
9bc40e3a99
commit
cd29ed80e6
|
@ -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