From 9b3f5eb424651d346e3f0d3ba8686cb762d7a43e Mon Sep 17 00:00:00 2001 From: louist103 <35883445+louist103@users.noreply.github.com> Date: Fri, 26 Apr 2024 23:15:07 -0400 Subject: [PATCH] Fix bug with object "loading" --- mm/src/code/z_scene.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/mm/src/code/z_scene.c b/mm/src/code/z_scene.c index ae0550daa..caf78f9e4 100644 --- a/mm/src/code/z_scene.c +++ b/mm/src/code/z_scene.c @@ -83,26 +83,9 @@ void Object_UpdateEntries(ObjectContext* objectCtx) { // to object_table.h there is only one instance of this, along with a bunch of placeholder entries // so we _should_ be fine. Famous last words. entry->id = id; - continue; - // #endregion - - if (entry->dmaReq.vromAddr == 0) { - objectFile = &gObjectTable[id]; - size = objectFile->vromEnd - objectFile->vromStart; - - if (size == 0) { - entry->id = 0; - } else { - osCreateMesgQueue(&entry->loadQueue, &entry->loadMsg, 1); - DmaMgr_SendRequestImpl(&entry->dmaReq, entry->segment, objectFile->vromStart, size, 0, - &entry->loadQueue, OS_MESG_PTR(NULL)); - } - } else if (!osRecvMesg(&entry->loadQueue, NULL, OS_MESG_NOBLOCK)) { - entry->id = id; - } } - entry++; + } }