Decompiled `func_80072710`

This commit is contained in:
gijs 2023-10-10 13:47:34 +02:00
parent 961718f707
commit ce7f900afd
2 changed files with 10 additions and 6 deletions

View File

@ -62,6 +62,10 @@ typedef u8 bool;
#define false 0 #define false 0
#define true 1 #define true 1
#define OS_TV_TYPE_PAL 0
#define OS_TV_TYPE_NTSC 1
#define OS_TV_TYPE_MPAL 2
#define MAX_BYTES_TO_READ 512 #define MAX_BYTES_TO_READ 512
#define ARRAY_LENGTH(x) ((sizeof(x)) / (sizeof(x[0]))) #define ARRAY_LENGTH(x) ((sizeof(x)) / (sizeof(x[0])))

View File

@ -1,7 +1,6 @@
#include "common.h" #include "common.h"
#include "libmus.h" #include "libmus.h"
INCLUDE_ASM(const s32, "main", func_80070C60); INCLUDE_ASM(const s32, "main", func_80070C60);
INCLUDE_ASM(const s32, "main", AddHeap); INCLUDE_ASM(const s32, "main", AddHeap);
@ -44,7 +43,12 @@ INCLUDE_ASM(const s32, "main", obMain);
INCLUDE_ASM(const s32, "main", func_80072398); INCLUDE_ASM(const s32, "main", func_80072398);
INCLUDE_ASM(const s32, "main", func_80072710); /* 2B10 80072710 */
void func_80072710(void) {
if ((u32)(osTvType - 1) >= OS_TV_TYPE_MPAL) {
while(1);
}
}
INCLUDE_ASM(const s32, "main", __set_vi_mode); INCLUDE_ASM(const s32, "main", __set_vi_mode);
@ -138,10 +142,6 @@ INCLUDE_ASM(const s32, "main", __calls_copy_controller_data);
extern u8 __reset_compared_osTvType(); /* extern */ extern u8 __reset_compared_osTvType(); /* extern */
extern void* D_800C4BB8; extern void* D_800C4BB8;
#define OS_TV_TYPE_PAL 0
#define OS_TV_TYPE_NTSC 1
#define OS_TV_TYPE_MPAL 2
/* 347C 8007307C */ /* 347C 8007307C */
void __calls_osViSwapBuffer_8007307C(void** buffers) void __calls_osViSwapBuffer_8007307C(void** buffers)
{ {