-
Notifications
You must be signed in to change notification settings - Fork 91
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
Document BDHC file loading #362
Conversation
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.
Just the two minor comments. Looks great! 🙏
src/overlay005/bdhc_loader.c
Outdated
BDHCLoader_LoadAccessList(narc, bdhc, bdhcHeader); | ||
|
||
Heap_FreeToHeap(bdhcHeader); | ||
bdhc->loaded = 1; |
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.
polish: Use BOOL
constants for this member, even if the underlying field is not a BOOL
, just for the semantics.
src/overlay005/bdhc_loader.c
Outdated
ctx->bdhc->stripsSize = ctx->bdhcHeader.stripsSize; | ||
BDHCLoader_PrepareBuffers(&ctx->bdhcHeader, ctx->bdhc, (void **)&ctx->buffer); | ||
|
||
subTaskCompleted = 1; |
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.
polish: Use TRUE
/FALSE
.
This documents the loading of BDHC files that are embedded in files of the land data NARC. Credits goes to Mikelan98, HiroTDK and HumanGamer for their resources (listed below). It would have been a lot more painful having to reverse this file format. Resources used: * https://hirotdk.neocities.org/FileSpecs#Terrain * https://www.pokecommunity.com/threads/i-solved-the-final-piece-of-the-terrain-bdhc-files-in-gen-4-inclines.424428/ Signed-off-by: Kuruyia <[email protected]>
7517bc7
to
3f83011
Compare
Oopsie, looks like I got carried away while cleaning up the consts |
This documents the loading of BDHC files that are embedded in files of the land data NARC.
Credits goes to Mikelan98, HiroTDK and HumanGamer for their resources (listed below). It would have been a lot more painful having to reverse this file format.
Resources used: