Skip to content

Commit

Permalink
Enable reading ARAM size before initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Feb 23, 2025
1 parent 292b02b commit a875a8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libogc/aram.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ void AR_Reset(void)

u32 AR_GetSize(void)
{
return __ARSize;
u32 arsize;
arsize = *(u32*)0x800000d0;
if(!arsize) arsize = __ARSize;
return arsize;
}

u32 AR_GetBaseAddress(void)
Expand Down

0 comments on commit a875a8d

Please sign in to comment.