Skip to content

Commit

Permalink
PSP DRA DestroyPrimitive (#2054)
Browse files Browse the repository at this point in the history
Simple and easy. Making this one `static` preemptively since that's a
prerequisite for one of the later functions to end up matching.
  • Loading branch information
bismurphy authored Jan 10, 2025
1 parent 0bbfb59 commit 8d538e5
Show file tree
Hide file tree
Showing 2 changed files with 9 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 @@ -6,6 +6,7 @@ func_800EA5E4 = 0x090DFD70;
func_800EA720 = 0x090DFED8;
func_800EAD0C = 0x090E0870;
func_800EAD7C = 0x090E08D8;
DestroyPrimitive = 0x090E0C30;
func_800EDB08 = 0x090E0CF0;
func_800EDB58 = 0x090E0D68;
AllocPrimitives = 0x090E0E30;
Expand Down
9 changes: 8 additions & 1 deletion src/dra_psp/33F0.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,15 @@ void func_800EAD7C(void) {
}
}

INCLUDE_ASM("dra_psp/psp/dra_psp/33F0", func_psp_090E0C30);
static void DestroyPrimitive(Primitive* prim) {
s32 i;
s32 n;
u32* primData = (u32*)prim;

for (n = sizeof(Primitive) / sizeof(*primData), i = 0; i < n; i++) {
*primData++ = 0;
}
}
INCLUDE_ASM("dra_psp/psp/dra_psp/33F0", func_psp_090E0C68);

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

0 comments on commit 8d538e5

Please sign in to comment.