mirror of
https://github.com/zeldaret/mm.git
synced 2026-09-04 02:09:46 -04:00
Load Docs (#1222)
* Sync with OoT * Macro cleanup * Some cleanup/rename load system name to Fragment * Format * bss * Some clarifying comments regarding fragments * PR suggestions * size_t and numRelocations
This commit is contained in:
@@ -52,7 +52,7 @@ void ActorOverlayTable_FaultClient(void* arg0, void* arg1) {
|
||||
FaultDrawer_Printf("No. RamStart- RamEnd cn Name\n");
|
||||
|
||||
for (actorId = 0, overlayEntry = &gActorOverlayTable[0]; actorId < gMaxActorId; actorId++, overlayEntry++) {
|
||||
overlaySize = VRAM_PTR_SIZE(overlayEntry);
|
||||
overlaySize = (uintptr_t)overlayEntry->vramEnd - (uintptr_t)overlayEntry->vramStart;
|
||||
if (overlayEntry->loadedRamAddr != NULL) {
|
||||
FaultDrawer_Printf("%3d %08x-%08x %3d %s\n", actorId, overlayEntry->loadedRamAddr,
|
||||
(u32)overlayEntry->loadedRamAddr + overlaySize, overlayEntry->numLoaded, "");
|
||||
@@ -69,7 +69,7 @@ void* ActorOverlayTable_FaultAddrConv(void* address, void* param) {
|
||||
ActorId actorId;
|
||||
|
||||
for (actorId = 0; actorId < gMaxActorId; actorId++, actorOvl++) {
|
||||
diff = VRAM_PTR_SIZE(actorOvl);
|
||||
diff = (uintptr_t)actorOvl->vramEnd - (uintptr_t)actorOvl->vramStart;
|
||||
ramStart = actorOvl->loadedRamAddr;
|
||||
ramConv = (uintptr_t)actorOvl->vramStart - (uintptr_t)ramStart;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user