catalog: add --write-dict to accumulate recovered names into a sorted dict #14
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/nineforge0--forge9!14
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/14/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@tarnobrzeg123-collab on GitHub · 2026-11-25 03:57 UTC · original
tarnobrzeg123-collab:feat/catalog-dict-export→main· +138 −3 · 3 files · 1 commits · closed without mergingCloses #12
Summary
merge_dictandwrite_dicttosrc/rpf9/hashes.rsto mergehexhash nameentries into an existing (or new) dictionary file, deduplicating by hash, preserving existing confirmed entries on conflict, and writing sorted0x{:08x} namelines (one per line).--write-dict <PATH>toforge9 catalogso confirmed candidates — unambiguous single-candidate joaat matches and embedded resource labels whose name (or stem before.#) hashes to the entry's name hash — accumulate across runs and archives. Ambiguous multi-candidate hashes are skipped and reported on stderr so--jsonstdout stays clean.README.md.rpf9::hashes::tests::merge_dict_dedups_sorts_and_preserves_existingandtests::catalog_write_dict_accumulates_sorted_deduped_entries) covering multi-run accumulation, reload via--dict, deduplication, sorting, and skipping ambiguous hashes.Testing
cargo build --release— succeeded with 0 warnings.cargo test --release— all 66 tests pass (59 library + 7 binary), synthetic data only, no game files used../target/release/forge9 catalog --help— verified--write-dict <PATH>option.@nineforge0 on GitHub · 2026-11-25 04:31 UTC · original
Merged manually (resolved a conflict with the recent record-layout fix). The commits are on
main. Thanks for the contribution!Pull request closed