mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-22 18:55:29 +00:00
Commit unsaved changes.
This commit is contained in:
parent
da00e5298c
commit
9bc40e3a99
|
@ -37,6 +37,7 @@ namespace hac
|
||||||
inline kc::KernelCapId getCapId(uint32_t cap) const
|
inline kc::KernelCapId getCapId(uint32_t cap) const
|
||||||
{
|
{
|
||||||
kc::KernelCapId id = kc::KC_INVALID;
|
kc::KernelCapId id = kc::KC_INVALID;
|
||||||
|
|
||||||
for (byte_t tmp = 0; tmp < 31; tmp++)
|
for (byte_t tmp = 0; tmp < 31; tmp++)
|
||||||
{
|
{
|
||||||
if (((cap >> tmp) & 1) == 0)
|
if (((cap >> tmp) & 1) == 0)
|
||||||
|
@ -45,7 +46,10 @@ namespace hac
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (id == kc::KC_INVALID && cap == (uint32_t)0xffffffff)
|
if (id == kc::KC_INVALID && cap == (uint32_t)0xffffffff)
|
||||||
|
id == kc::KC_STUB;
|
||||||
|
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue