Merged
Conversation
… it is an array For TDB >= 69
Make `original_type` point to its element type rather than its own type for array-like object
Contributor
Author
|
I think maybe I should tag @Synthlight and @czastack as this change could break the software that makes use of the rsz dump. I don't know if the change of this PR. If this causes trouble for you guys, adding a new entry like |
Contributor
praydog
approved these changes
Nov 17, 2024
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.


Note that this is a breaking change.
element_type_nametoil2cpp_dump.jsonif it is an array-like object and TDB >= 69 (tested with MHWilds OBT only).Structdata type to the rsz dump. Previously, if it was aStructtype, the dumper would unpack it and flatten it into multiple fields. However, for an array ofStruct, the dumper would skip it. This change will unpack a singleStructtype as before but will leave theStructtype untouched if it is an array ofStruct, with hardcoded Size and Alignment set to 1, 1.original_typehas changed. For array objects, it points to their element type instead of their own type. For example, for an array of int, it was"original_type": "System.UInt32[]"before, but it is"original_type": "System.UInt32"after.