FlatCrawler icon indicating copy to clipboard operation
FlatCrawler copied to clipboard

Integrate analyzer with new data protection feature

Open duckdoom4 opened this issue 2 years ago • 0 comments

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.

image image

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:

image .

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. image .

But the new data protection feature doesn't let you enter data that would be out of bounds any longer:

image

duckdoom4 avatar Oct 21 '22 21:10 duckdoom4