mirror of
https://github.com/pret/pokediamond.git
synced 2026-09-11 10:36:34 -05:00
OS_GetResetParameter
This commit is contained in:
@@ -17,4 +17,9 @@ static void OSi_CommonCallback(PXIFifoTag tag, u32 data, BOOL err);
|
||||
static void OSi_SendToPxi(u16 data);
|
||||
void OS_ResetSystem(u32 parameter);
|
||||
|
||||
static inline u32 OS_GetResetParameter(void)
|
||||
{
|
||||
return (u32)*(u32 *)HW_RESET_PARAMETER_BUF;
|
||||
}
|
||||
|
||||
#endif //POKEDIAMOND_OS_RESET_H
|
||||
|
||||
@@ -85,7 +85,7 @@ THUMB_FUNC void NitroMain(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (*((s32 *)HW_RESET_PARAMETER_BUF))
|
||||
switch (OS_GetResetParameter())
|
||||
{
|
||||
case 0:
|
||||
gBacklightTop.unk1C = 0;
|
||||
|
||||
Reference in New Issue
Block a user