Skip to content

Commit 21c0896

Browse files
author
Requiem
committed
feat: updated core to remove unknown brand if detected with other brands
1 parent f854dd1 commit 21c0896

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/vmaware.hpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11996,6 +11996,14 @@ struct VM {
1199611996
}
1199711997
}
1199811998

11999+
// remove "Unknown" if detected with other brands
12000+
if (active_count > 1) {
12001+
const int idx = find_index(brands::NULL_BRAND);
12002+
if (idx != -1) {
12003+
remove_at(idx);
12004+
}
12005+
}
12006+
1199912007
if (active_count > 1) {
1200012008
std::sort(active_brands.begin(), active_brands.begin() + static_cast<std::ptrdiff_t>(active_count), [](
1200112009
const brand_element_t& a,
@@ -12611,7 +12619,7 @@ struct VM {
1261112619
}
1261212620

1261312621
auto hardened_logic = []() -> bool {
12614-
// Helper to get the specific brand associated with a technique using the cache.
12622+
// Helper to get the specific brand associated with a technique using the cache
1261512623
auto detected_brand = [](const enum_flags flag) -> const char* {
1261612624
if (!check(flag)) {
1261712625
return brands::NULL_BRAND;

0 commit comments

Comments
 (0)