Repository navigation
catalog: add --write-dict to accumulate recovered names into a sorted dict - #14
Closed
tarnobrzeg123-collab wants to merge 1 commit into
Closed
tarnobrzeg123-collab wants to merge 1 commit into
tarnobrzeg123-collab wants to merge 1 commit into
Conversation
Owner
|
Merged manually (resolved a conflict with the recent record-layout fix). The commits are on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #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.