-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove gDecompressionBuffer #6029
Remove gDecompressionBuffer #6029
Conversation
…expansion into decompression_buffer
It is done.
Because GF abused the buffer, this PR affects pretty much every area of the game(though some are more affected than others), so a full playthrough would be advised before merging. |
Trading: Works. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't had time to look through it properly.
Some initial things.
@@ -255,10 +255,14 @@ static void CB2_MysteryEventMenu(void) | |||
case 11: | |||
if (gReceivedRemoteLinkPlayers == 0) | |||
{ | |||
// No clue what is going on here, and from where gDecompressionBuffer gets actually populated with mystery event script. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there even a way to test mystery gifts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, no idea. If there is, we should test them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should allocations with 0xXXXX
sizes have #define
d sizes instead?
Review comments applied @hedara90 |
If someone's already started working on it, or would like to do it - let me know and I'll cancel the PR.
If not, I'll continue working on it.
Things to note in the release changelog:
gDecompressionBuffer
has been removed. Use eithermalloc_and_decompress
orAlloc
, thenFree
on the pointer when you're done. Whatever fits your use-case the best.