From 9bc40e3a995bab47f691c0d708ff1acc3b386c20 Mon Sep 17 00:00:00 2001 From: jakcron Date: Sat, 27 Oct 2018 15:51:21 +0800 Subject: [PATCH] Commit unsaved changes. --- lib/libhac/include/nn/hac/KernelCapabilityEntry.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libhac/include/nn/hac/KernelCapabilityEntry.h b/lib/libhac/include/nn/hac/KernelCapabilityEntry.h index 7b39302..9da90ef 100644 --- a/lib/libhac/include/nn/hac/KernelCapabilityEntry.h +++ b/lib/libhac/include/nn/hac/KernelCapabilityEntry.h @@ -37,6 +37,7 @@ namespace hac inline kc::KernelCapId getCapId(uint32_t cap) const { kc::KernelCapId id = kc::KC_INVALID; + for (byte_t tmp = 0; tmp < 31; tmp++) { if (((cap >> tmp) & 1) == 0) @@ -45,7 +46,10 @@ namespace hac break; } } + if (id == kc::KC_INVALID && cap == (uint32_t)0xffffffff) + id == kc::KC_STUB; + return id; } };