Skip to content

Commit

Permalink
scripts: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bnnm committed Aug 26, 2024
1 parent 60962fd commit 3456a1d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion fnv/fnv.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ static void print_usage(const char* name) {
" List greatly improves speed and results but may skip valid names\n"
" (try disabling if no proper names are found for smaller variables)\n"
" -t: print letter text info (when using high max characters)\n"
" -n: treat input as names and prints FNV IDs\n"
" -n: treat input as names and prints FNV IDs (32-bit)\n"
" -h: show this help\n"
,
(sizeof(void*) >= 8 ? "64-bit" : "32-bit"),
Expand Down Expand Up @@ -638,6 +638,13 @@ static void reverse_names(fnv_config* cfg) {
hash = (hash * 16777619) ^ (uint8_t)c;
}

#if 0
if (cfg->reverse_names_30b) {
uint32_t mask = (1U << 30) - 1;
hash = (hash >> 30) ^ (mask & hash);
}
#endif

printf("%s: %u / 0x%x\n", name, hash, hash);
//printf("%u: \"%s\",\n", hash, name);
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/vgmstream-filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def start(self):
except subprocess.CalledProcessError as e:
log.debug("ignoring CLI error in %s: %s", filename_in, str(e.output))
total_errors += 1
break
continue

filter = CliFilter(self.args, output_b, basename_in)

Expand Down

0 comments on commit 3456a1d

Please sign in to comment.