Skip to content

Commit

Permalink
fix path hash for bo6 sp
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed Nov 2, 2024
1 parent 56cc80f commit d944448
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/acts/tools/gsc_opcodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ void VmInfo::AddDevCallName(uint64_t name) {

uint64_t VmInfo::HashField(const char* value) const {
uint64_t t;
if (!value || !*value) {
return 0;
}
if (hash::TryHashPattern(value, t)) {
return t;
}
Expand All @@ -254,10 +257,13 @@ uint64_t VmInfo::HashField(const char* value) const {

uint64_t VmInfo::HashPath(const char* value) const {
uint64_t t;
if (!value || !*value) {
return 0;
}
if (hash::TryHashPattern(value, t)) {
return t;
}
if (HasFlag(VmFlags::VMF_HASH_CER) || HasFlag(VmFlags::VMF_HASH_IW)) {
if (HasFlag(VmFlags::VMF_HASH_CER) || HasFlag(VmFlags::VMF_HASH_CER_SP) || HasFlag(VmFlags::VMF_HASH_IW)) {
return hash::HashIWRes(value);
}
return hash::Hash64(value);
Expand Down

0 comments on commit d944448

Please sign in to comment.