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.
This is a small parser for the savedata (tgfd.dat, 4056 bytes) and profile (*.sav, 84 bytes) files.
This work is incomplete and I'm uploading it as I don't have time to finish this at the moment. A handful of issues will be created after merge:
The lap-times are not assigned to the correct track. There might be a different order for track besttimes (vs. unlocked / locked bits) as I wasn't able to find any obvious pattern. Testing was quite time consuming as I had to get a record for each track I wanted to identify. Note that all best times currently have an even index.The lap-times don't have a printable track name. The order is the same as the track list dumped by extract-data.I wrote this some months ago, but I believe N64 used 84 byte profiles too. At least I remember that N64, PC and DC are very similar. I think the major difference was how the highscore names were stored.
Closes #7 .