mirror of
https://github.com/jakcron/nstool
synced 2024-11-22 21:49:30 +00:00
[libhac] Stub unused entries in KIP KernelCapList.
This commit is contained in:
parent
5af7558a1b
commit
696cd481e3
1 changed files with 5 additions and 1 deletions
|
@ -74,7 +74,11 @@ void nn::hac::KernelInitialProcessHeader::toBytes()
|
||||||
throw fnd::Exception(kModuleName, "Too many kernel capabilities");
|
throw fnd::Exception(kModuleName, "Too many kernel capabilities");
|
||||||
}
|
}
|
||||||
memcpy(hdr->capabilities, mKernelCapabilities.getBytes().data(), mKernelCapabilities.getBytes().size());
|
memcpy(hdr->capabilities, mKernelCapabilities.getBytes().data(), mKernelCapabilities.getBytes().size());
|
||||||
//memset(hdr->capabilities + mKernelCapabilities.getBytes().size(), 0xff, kip::kKernCapabilitySize - mKernelCapabilities.getBytes().size());
|
if (mKernelCapabilities.getBytes().size() < kip::kKernCapabilitySize)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
memset(hdr->capabilities + mKernelCapabilities.getBytes().size(), 0xff, kip::kKernCapabilitySize - mKernelCapabilities.getBytes().size());
|
||||||
|
|
||||||
// flags
|
// flags
|
||||||
for (size_t i = 0; i < mFlagList.size(); i++)
|
for (size_t i = 0; i < mFlagList.size(); i++)
|
||||||
|
|
Loading…
Reference in a new issue