Skip to content

Commit

Permalink
PSP DRA DestroyAllPrimitives (#2056)
Browse files Browse the repository at this point in the history
Next one in sequence. No big things.
  • Loading branch information
bismurphy authored Jan 11, 2025
1 parent ead48b4 commit 0a863dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/symbols.pspeu.dra.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ func_800EA720 = 0x090DFED8;
func_800EAD0C = 0x090E0870;
func_800EAD7C = 0x090E08D8;
DestroyPrimitive = 0x090E0C30;
DestroyAllPrimitives = 0x090E0C68;
func_800EDB08 = 0x090E0CF0;
func_800EDB58 = 0x090E0D68;
AllocPrimitives = 0x090E0E30;
Expand Down
12 changes: 11 additions & 1 deletion src/dra_psp/33F0.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,17 @@ static void DestroyPrimitive(Primitive* prim) {
*primData++ = 0;
}
}
INCLUDE_ASM("dra_psp/psp/dra_psp/33F0", func_psp_090E0C68);

void DestroyAllPrimitives(void) {
s32 i;
Primitive* prim;

for (i = 0, prim = g_PrimBuf; i < MAX_PRIM_COUNT; i++) {
DestroyPrimitive(prim);
prim->type = PRIM_NONE;
prim++;
}
}

INCLUDE_ASM("dra_psp/psp/dra_psp/33F0", func_psp_090E0CA8);

Expand Down

0 comments on commit 0a863dd

Please sign in to comment.