FlatCrawler
FlatCrawler copied to clipboard
Integrate analyzer with new data protection feature
I added the memory protection feature I talked about before.
I thought it could be nice to integrate it into the analyzer.
For example, bin\pokemon\data\poke_misc.bin
has an object member field (field ID 10) that could be a whole range of types according to the analyzer.
By filling in some of the known types that extend the range of the data table we can remove a lot of that uncertainty.
Field 9 is clearly a string so I run rf 9 string
.
Now running the new debug feature I added under the command 'v', you can see that we basically have all of the data filled out already:
.
Most unknown data ranges are of size 20
, so know we know for sure field 10 can't be a ulong[]
(since 4
(entries) * 8
(sizeof(ulong)) = 32
).
Running the command again doesn't (yet) take this into account.
.
But the new data protection feature doesn't let you enter data that would be out of bounds any longer: