summaryrefslogtreecommitdiff
path: root/src/code_80005FD0.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/code_80005FD0.c')
-rw-r--r--src/code_80005FD0.c37
1 files changed, 13 insertions, 24 deletions
diff --git a/src/code_80005FD0.c b/src/code_80005FD0.c
index 057e43144..0356473b7 100644
--- a/src/code_80005FD0.c
+++ b/src/code_80005FD0.c
@@ -19,10 +19,17 @@
#include "code_80057C60.h"
#include "bomb_kart.h"
#include "courses/all_course_data.h"
+#include "common_textures.h"
+extern UnkCommonTextureStruct0 *D_800DC720[];
-//Collision D_80162E70;
-//s16 D_80162EB0; LIkely a float.
+s32 unk_code_80005FD0_pad[24];
+Collision D_80162E70;
+s16 D_80162EB0; // Possibly a float.
+s16 D_80162EB2; // possibly [3]
+s16 code_80005FD0_pad[2];
+
+uintptr_t *D_80162EB8[20];
// Strings, presented by google translate!
@@ -5340,30 +5347,12 @@ s32 func_8001168C(s16 *arg0, void *arg1, s32 arg2) {
GLOBAL_ASM("asm/non_matchings/code_80005FD0/func_8001168C.s")
#endif
-#ifdef MIPS_TO_C
-//generated by mips_to_c commit 3c3b0cede1a99430bfd3edf8d385802b94f91307
-void *segmented_to_virtual_dupe_2(void*); // extern
-extern s32 D_800DC720;
-extern ? D_80162EB8;
-extern ? D_80162F08;
-
void func_80011A5C(void) {
- ? *temp_s0;
- s32 *phi_s1;
- ? *phi_s0;
-
- phi_s1 = &D_800DC720;
- phi_s0 = &D_80162EB8;
- do {
- temp_s0 = phi_s0 + 4;
- temp_s0->unk-4 = segmented_to_virtual_dupe_2(*phi_s1);
- phi_s1 += 4;
- phi_s0 = temp_s0;
- } while (temp_s0 != &D_80162F08);
+ s32 i;
+ for (i = 0; i < 20; i++) {
+ D_80162EB8[i] = segmented_to_virtual_dupe_2(D_800DC720[i]);
+ }
}
-#else
-GLOBAL_ASM("asm/non_matchings/code_80005FD0/func_80011A5C.s")
-#endif
void func_80011AB8(s32 index) {
D_801632B8[index] = 0;