papermario/src/code_1370_len_7d0.c

49 lines
1.2 KiB
C
Raw Normal View History

2020-08-04 08:49:11 +02:00
#include "common.h"
2020-10-15 02:49:59 +02:00
#include "nu/nusys.h"
2020-08-04 08:49:11 +02:00
2020-10-15 02:49:59 +02:00
void gfxRetrace_Callback(void);
void gfxPreNMI_Callback(void);
#ifdef NON_MATCHING
// Control flow issue w/ PANIC
void boot_main(void) {
OSViMode* viMode;
if (osTvType == OS_TV_NTSC) {
viMode = &osViModeTable[56];
} else if (osTvType == OS_TV_MPAL) {
viMode = &osViModeTable[57];
} else {
PANIC();
}
osViSetMode(viMode);
osViSetSpecialFeatures(OS_VI_GAMMA_OFF | OS_VI_GAMMA_DITHER_OFF | OS_VI_DIVOT_ON | OS_VI_DITHER_FILTER_ON);
nuGfxDisplayOff();
crash_create_monitor();
func_80025C60();
2020-10-18 05:48:26 +02:00
nuGfxInitEX2();
2020-10-15 02:49:59 +02:00
GAME_STATUS->contBitPattern = nuContInit();
func_8002D160();
func_802B2000();
func_802B203C();
nuGfxFuncSet(gfxRetrace_Callback);
nuGfxPreNMIFuncSet(gfxPreNMI_Callback);
{
// Required to match
s32* randSeed = &gRandSeed;
(*randSeed) += osGetCount();
}
nuGfxDisplayOn();
while (TRUE) {}
}
#else
INCLUDE_ASM(void, "code_1370_len_7d0", boot_main, void);
#endif
INCLUDE_ASM(void, "code_1370_len_7d0", gfxRetrace_Callback, void);
2020-08-04 08:49:11 +02:00
2020-09-25 23:18:09 +02:00
INCLUDE_ASM(s32, "code_1370_len_7d0", func_80026164);
2020-08-04 08:49:11 +02:00
2020-10-15 02:49:59 +02:00
INCLUDE_ASM(void, "code_1370_len_7d0", gfxPreNMI_Callback, void);