mirror of
https://github.com/zeldaret/mm.git
synced 2026-09-10 03:52:00 -04:00
Z_DLF OK (#965)
* matched both * use overlay reloc macro * fix fake looking match * PR fixes and change other overlay loading functions * rename * formatter * fix build * re format
This commit is contained in:
+4
-4
@@ -3153,10 +3153,10 @@ ActorInit* Actor_LoadOverlay(ActorContext* actorCtx, s16 index) {
|
||||
overlayEntry->numLoaded = 0;
|
||||
}
|
||||
|
||||
actorInit =
|
||||
(uintptr_t)((overlayEntry->initInfo != NULL)
|
||||
? (void*)(-OVERLAY_RELOCATION_OFFSET(overlayEntry) + (uintptr_t)overlayEntry->initInfo)
|
||||
: NULL);
|
||||
actorInit = (uintptr_t)(
|
||||
(overlayEntry->initInfo != NULL)
|
||||
? (void*)((uintptr_t)overlayEntry->initInfo - (intptr_t)OVERLAY_RELOCATION_OFFSET(overlayEntry))
|
||||
: NULL);
|
||||
}
|
||||
|
||||
return actorInit;
|
||||
|
||||
Reference in New Issue
Block a user