mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-12-02 02:23:20 -08:00
d2r2: when deduplicating types, ensure deterministic (hash -> .debug_info off) mapping, by minimizing the .debug_info off found for a particular type hash - in theory, this step should not be necessary, but there is a mistake / broken part of this theory, which was leading to non-deterministic type graphs in a very small # of cases, due to the same hash mapping to different .debug_info offsets across runs. in theory, the hash itself should take care of this, but there is likely something important missing. in either case, minimizing the .debug_info offset is very cheap, and guarantees we parse from a deterministic place no matter what the run looks like.
This commit is contained in:
1 parent
f9eb25dbcb
commit
4f3d9c96b8
2 files changed
+71
-24
No files matched your search
@@ -12,7 +12,6 @@ struct D2R2_UniqueTypeTagNode
|
||||
{
|
||||
D2R2_UniqueTypeTagNode *next;
|
||||
U64 hash;
|
||||
U64 unit_idx;
|
||||
U64 info_off;
|
||||
U64 order_idx;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user