mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-27 18:12:51 -04:00
THA docs (#1177)
* THA docs Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> * format * namefixer * yada * remove zero pad comment * Update include/z64.h Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Update include/thga.h Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * namefixer * bss * namefixer --------- Co-authored-by: Tharo <17233964+Thar0@users.noreply.github.com> Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
This commit is contained in:
+4
-4
@@ -1545,7 +1545,7 @@ void Play_GetFloorSurface(PlayState* this, MtxF* mtx, Vec3f* pos) {
|
||||
|
||||
void* Play_LoadFile(PlayState* this, RomFile* entry) {
|
||||
size_t size = entry->vromEnd - entry->vromStart;
|
||||
void* allocp = THA_AllocEndAlign16(&this->state.heap, size);
|
||||
void* allocp = THA_AllocTailAlign16(&this->state.heap, size);
|
||||
|
||||
DmaMgr_SendRequest0(allocp, entry->vromStart, size);
|
||||
|
||||
@@ -2295,9 +2295,9 @@ void Play_Init(GameState* thisx) {
|
||||
D_801F6D4C->envColor.b = 0;
|
||||
D_801F6D4C->envColor.a = 0;
|
||||
EnvFlags_UnsetAll(this);
|
||||
THA_GetSize(&this->state.heap);
|
||||
zAllocSize = THA_GetSize(&this->state.heap);
|
||||
zAlloc = (uintptr_t)THA_AllocEndAlign16(&this->state.heap, zAllocSize);
|
||||
THA_GetRemaining(&this->state.heap);
|
||||
zAllocSize = THA_GetRemaining(&this->state.heap);
|
||||
zAlloc = (uintptr_t)THA_AllocTailAlign16(&this->state.heap, zAllocSize);
|
||||
ZeldaArena_Init(((zAlloc + 8) & ~0xF), (zAllocSize - ((zAlloc + 8) & ~0xF)) + zAlloc); //! @bug: Incorrect ALIGN16s
|
||||
Actor_InitContext(this, &this->actorCtx, this->linkActorEntry);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user