summaryrefslogtreecommitdiff
path: root/src/code_800029B0.c
diff options
context:
space:
mode:
authorCoderStig <79828759+CoderStig@users.noreply.github.com>2021-12-09 14:10:39 -0700
committerGitHub <noreply@github.com>2021-12-09 14:10:39 -0700
commit46247502add6168e77a942dd1d2f6e4e87ddf029 (patch)
treecf6e1cb1f490ea83b175d67f16f44d8f5c2ce24e /src/code_800029B0.c
parentbfcbb8aadac071b6e3f8f34afe819d91e0fa20f3 (diff)
Decomped gfx setup code & changed player pos coords to array (#84)
* Decomped gfx setup code and changed player pos coords to array
Diffstat (limited to 'src/code_800029B0.c')
-rw-r--r--src/code_800029B0.c41
1 files changed, 21 insertions, 20 deletions
diff --git a/src/code_800029B0.c b/src/code_800029B0.c
index 76a06d905..e83c773cc 100644
--- a/src/code_800029B0.c
+++ b/src/code_800029B0.c
@@ -40,7 +40,7 @@ extern s8 D_8018EDF3;
extern s8 gCupSelection;
-extern u32 gIsMirrorMode;
+
extern u32 D_800DC530;
extern u32 D_8015F730;
extern u32 D_8015F734;
@@ -77,20 +77,6 @@ extern f32 gCourseDirection;
extern u16 D_8015F900;
-struct UnkStruct800DC64C {
- s32 unk0;
- s32 unk4;
- s32 unk8;
-};
-extern struct UnkStruct800DC64C D_800DC64C;
-
-struct UnkStruct800DC658 {
- u16 unk0;
- u16 unk2;
- u16 unk4;
-};
-extern struct UnkStruct800DC658 D_800DC658;
-
extern s16 D_800DC5BC, D_800DC5C8;
extern u16 D_80150110;
@@ -108,6 +94,24 @@ struct UnkStruct_800DC5EC *D_800DC5F0 = &D_8015F480[1];
struct UnkStruct_800DC5EC *D_800DC5F4 = &D_8015F480[2];
struct UnkStruct_800DC5EC *D_800DC5F8 = &D_8015F480[3];
s16 D_800DC5FC = 0;
+u8 *D_800DC600 = &osAppNmiBuffer[0];
+s32 gIsMirrorMode = 0;
+f32 D_800DC608 = 1.0f;
+Lights1 D_800DC610[] = {
+ {
+ {175, 175, 175, 0, 175, 175, 175, 0},
+ {255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 120, 0},
+ },
+
+ {
+ {115, 115, 115, 0, 115, 115, 115, 0},
+ {255, 255, 255, 0, 255, 255, 255, 0, 0, 0, 120, 0},
+
+ },
+};
+static s32 pad = 0x80000000;
+s16 D_800DC644 = 8;
+s16 D_800DC648 = 1;
void func_800029B0(void) {
switch(D_800DC5A8) {
@@ -244,11 +248,8 @@ void func_80003010(void) {
void func_80003040(void) {
u32 pad[2];
f32 sp34;
- struct UnkStruct800DC64C sp28;
- struct UnkStruct800DC658 sp20;
-
- sp28 = D_800DC64C;
- sp20 = D_800DC658;
+ s32 sp28[3] = {0};
+ s16 sp20[3] = {0};
D_800DC5BC = 0;
D_800DC5C8 = 0;