From 764c5f33eca08ffcb5214539e430dce772727c42 Mon Sep 17 00:00:00 2001 From: MegaMech Date: Tue, 16 Apr 2024 22:58:59 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20n64decom?= =?UTF-8?q?p/mk64@a4f103258c5b7afe6db31593bccf43c8038dfda9=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- actors_8c.html | 2 +- ...d__red__shells_2update_8inc_8c_source.html | 167 +++++++++--------- bug.html | 4 +- ceremony__and__credits_8c.html | 6 +- ceremony__and__credits_8h.html | 4 +- choco__mountain_2course__offsets_8c.html | 4 +- code__80005FD0_8c.html | 2 +- code__80091750_8c.html | 4 +- code__80091750_8h.html | 4 +- compiling.html | 2 +- crash__screen_8c.html | 2 +- doxygen_crawl.html | 68 +++---- kalimari__desert_2course__offsets_8c.html | 8 +- main_8c.html | 2 +- main_8h.html | 6 +- navtreeindex42.js | 4 +- osPiRawStartDma_8c.html | 2 +- osPiStartDma_8c.html | 2 +- os__pi_8h.html | 2 +- player__controller_8c.html | 2 +- player__controller_8h.html | 2 +- toads__turnpike_2course__data_8c.html | 2 +- toads__turnpike_2course__data_8h.html | 2 +- todo.html | 36 ++-- train_2render_8inc_8c_source.html | 87 +++++---- trees_2render_8inc_8c_source.html | 85 +++++---- wario__stadium_2course__data_8c.html | 2 +- wario__stadium_2course__data_8h.html | 2 +- yoshi__egg_2render_8inc_8c_source.html | 7 +- 29 files changed, 258 insertions(+), 264 deletions(-) diff --git a/actors_8c.html b/actors_8c.html index a7631b973..1f69431ad 100644 --- a/actors_8c.html +++ b/actors_8c.html @@ -1565,7 +1565,7 @@ Here is the caller graph for this function:
-
Todo
Is this making the shell spin?
+
Todo
Is this making the shell spin?
Here is the call graph for this function:
diff --git a/blue__and__red__shells_2update_8inc_8c_source.html b/blue__and__red__shells_2update_8inc_8c_source.html index cde97e9b9..07e063120 100644 --- a/blue__and__red__shells_2update_8inc_8c_source.html +++ b/blue__and__red__shells_2update_8inc_8c_source.html @@ -116,103 +116,103 @@ $(function(){initNavTree('blue__and__red__shells_2update_8inc_8c_source.html',''
6#include <code_800029B0.h>
7
-
8void func_802B3B44(struct ShellActor *shell) {
-
9 u16 currentWaypoint;
-
10 u16 nextWaypoint;
-
11 f32 temp_f0;
-
12 f32 temp_f0_2;
-
13 f32 temp_f0_3;
-
14 f32 temp_f12_3;
-
15 f32 temp_f14_2;
-
16 f32 temp_f16_2;
-
17 f32 temp_f2;
-
18 f32 temp_f12;
-
19 f32 temp_f28;
-
20 f32 temp_f20;
-
21 f32 temp_f22;
-
22 f32 temp_f24;
-
23 f32 temp_f12_0;
-
24 f32 temp_f12_1;
-
25 f32 temp_f12_2;
-
26 f32 temp_f18_3;
-
27 f32 temp_f16_3;
-
28 f32 temp_f26;
-
29 Vec3f origPos;
+ + + + + + + + + + + + + + + + + + + + + +
30
-
31 currentWaypoint = shell->pathIndex;
-
32 temp_f2 = D_80164490[currentWaypoint].posX;
-
33 temp_f12 = D_80164490[currentWaypoint].posY;
-
34 temp_f28 = D_80164490[currentWaypoint].posZ;
-
35 nextWaypoint = currentWaypoint + 1;
+
31 currentWaypoint = shell->pathIndex;
+ + + +
36
-
37 if (nextWaypoint >= D_80164430) {
-
38 nextWaypoint -= D_80164430;
+
37 if (nextWaypoint >= D_80164430) {
+
39 }
40
-
41 temp_f20 = temp_f2 - shell->pos[0];
-
42 temp_f22 = temp_f12 - shell->pos[1];
-
43 temp_f24 = temp_f28 - shell->pos[2];
-
44 temp_f0 = (temp_f20 * temp_f20) + (temp_f22 * temp_f22) + (temp_f24 * temp_f24);
-
45 if (temp_f0 > 400.0f) {
-
46 temp_f18_3 = D_80164490[nextWaypoint].posX;
-
47 temp_f16_3 = D_80164490[nextWaypoint].posY;
-
48 temp_f26 = D_80164490[nextWaypoint].posZ;
+
41 temp_f20 = temp_f2 - shell->pos[0];
+
42 temp_f22 = temp_f12 - shell->pos[1];
+
43 temp_f24 = temp_f28 - shell->pos[2];
+ +
45 if (temp_f0 > 400.0f) {
+ + +
49
-
50 temp_f12_0 = temp_f18_3 - shell->pos[0];
-
51 temp_f12_1 = temp_f16_3 - shell->pos[1];
-
52 temp_f12_2 = temp_f26 - shell->pos[2];
+
50 temp_f12_0 = temp_f18_3 - shell->pos[0];
+
51 temp_f12_1 = temp_f16_3 - shell->pos[1];
+
52 temp_f12_2 = temp_f26 - shell->pos[2];
53
-
54 temp_f0_3 = (temp_f12_0 * temp_f12_0) + (temp_f12_1 * temp_f12_1) + (temp_f12_2 * temp_f12_2);
-
55 if (temp_f0_3 < temp_f0) {
-
56 shell->pathIndex = nextWaypoint;
+ +
55 if (temp_f0_3 < temp_f0) {
+
56 shell->pathIndex = nextWaypoint;
57 } else {
-
58 temp_f0_2 = sqrtf(temp_f0) * 4.0f;
-
59 temp_f20 /= temp_f0_2;
-
60 temp_f22 /= temp_f0_2;
-
61 temp_f24 /= temp_f0_2;
+
58 temp_f0_2 = sqrtf(temp_f0) * 4.0f;
+ + +
62
-
63 temp_f12_3 = shell->velocity[0];
-
64 temp_f14_2 = shell->velocity[1];
-
65 temp_f16_2 = shell->velocity[2];
+
63 temp_f12_3 = shell->velocity[0];
+
64 temp_f14_2 = shell->velocity[1];
+
65 temp_f16_2 = shell->velocity[2];
66
-
67 temp_f12_3 += temp_f20;
-
68 temp_f14_2 += temp_f22;
-
69 temp_f16_2 += temp_f24;
-
70 temp_f0 = sqrtf((temp_f12_3 * temp_f12_3) + (temp_f14_2 * temp_f14_2) + (temp_f16_2 * temp_f16_2));
-
71 if (temp_f0 > 6.0f) {
-
72 temp_f0 /= 6.0f;
-
73 temp_f12_3 /= temp_f0;
-
74 temp_f14_2 /= temp_f0;
-
75 temp_f16_2 /= temp_f0;
+ + + + +
71 if (temp_f0 > 6.0f) {
+
72 temp_f0 /= 6.0f;
+ + +
76 }
-
77 shell->velocity[0] = temp_f12_3;
-
78 shell->velocity[1] = temp_f14_2;
-
79 shell->velocity[2] = temp_f16_2;
+
77 shell->velocity[0] = temp_f12_3;
+
78 shell->velocity[1] = temp_f14_2;
+
79 shell->velocity[2] = temp_f16_2;
80
-
81 origPos[0] = shell->pos[0];
-
82 origPos[1] = shell->pos[1];
-
83 origPos[2] = shell->pos[2];
+
81 origPos[0] = shell->pos[0];
+
82 origPos[1] = shell->pos[1];
+
83 origPos[2] = shell->pos[2];
84
-
85 shell->pos[0] += temp_f12_3;
-
86 shell->pos[1] += temp_f14_2;
-
87 shell->pos[2] += temp_f16_2;
-
88 func_802AD950(&shell->unk30, 4.0f, shell->pos[0], shell->pos[1], shell->pos[2], origPos[0], origPos[1], origPos[2]);
-
89 func_802B4E30((struct Actor *) shell);
+
85 shell->pos[0] += temp_f12_3;
+
86 shell->pos[1] += temp_f14_2;
+
87 shell->pos[2] += temp_f16_2;
+
88 func_802AD950(&shell->unk30, 4.0f, shell->pos[0], shell->pos[1], shell->pos[2], origPos[0], origPos[1], origPos[2]);
+
89 func_802B4E30((struct Actor *) shell);
90 }
91 } else {
-
92 if (temp_f0 > 5.0f) {
-
93 shell->pos[0] = temp_f2;
-
94 shell->pos[1] = shell->boundingBoxSize + temp_f12;
-
95 shell->pos[2] = temp_f28;
-
96 shell->pathIndex = nextWaypoint;
+
92 if (temp_f0 > 5.0f) {
+
93 shell->pos[0] = temp_f2;
+
94 shell->pos[1] = shell->boundingBoxSize + temp_f12;
+
95 shell->pos[2] = temp_f28;
+
96 shell->pathIndex = nextWaypoint;
97 } else {
-
98 temp_f18_3 = D_80164490[nextWaypoint].posX;
-
99 temp_f16_3 = D_80164490[nextWaypoint].posY;
-
100 temp_f26 = D_80164490[nextWaypoint].posZ;
+ + +
101
-
102 shell->pos[0] = (temp_f2 + temp_f18_3) * 0.5f;
-
103 shell->pos[1] = ((temp_f12 + temp_f16_3) * 0.5f) + shell->boundingBoxSize;
-
104 shell->pos[2] = (temp_f28 + temp_f26) * 0.5f;
+
102 shell->pos[0] = (temp_f2 + temp_f18_3) * 0.5f;
+
103 shell->pos[1] = ((temp_f12 + temp_f16_3) * 0.5f) + shell->boundingBoxSize;
+
104 shell->pos[2] = (temp_f28 + temp_f26) * 0.5f;
105
106 shell->velocity[0] = (temp_f18_3 - temp_f2) * 0.5f;
107 shell->velocity[1] = (temp_f16_3 - temp_f12) * 0.5f;
@@ -660,11 +660,6 @@ $(function(){initNavTree('blue__and__red__shells_2update_8inc_8c_source.html',''
s16 currentRank
Definition common_structs.h:251
Vec3f pos
Definition common_structs.h:258
Definition actor_types.h:302
-
f32 boundingBoxSize
Definition actor_types.h:315
-
Vec3f velocity
Definition actor_types.h:324
-
Vec3f pos
Definition actor_types.h:323
-
Collision unk30
Definition actor_types.h:325
-
u16 pathIndex
Definition actor_types.h:319
s16 posZ
Definition waypoints.h:9
s16 posY
Definition waypoints.h:8
s16 posX
Definition waypoints.h:7
diff --git a/bug.html b/bug.html index cb0bbc309..2b09f90c6 100644 --- a/bug.html +++ b/bug.html @@ -105,11 +105,11 @@ $(function(){initNavTree('bug.html',''); initResizable(); });
Global crash_screen_draw_info (u16 *framebuffer, OSThread *thread)
-
if this check fails, the ra register is printed a second time.
+
if this check fails, the ra register is printed a second time.
Global DEBUG_MODE
This looks like it should work at any point in the race.
Global func_8001969C (UNUSED s32 playerId, UNUSED f32 arg1, s32 cameraId, UNUSED s16 pathIndex)
-
Adding an (f32) cast changes asm, why?
+
Adding an (f32) cast changes asm, why?
Global func_800B9BE4 (f32, f32, u16 *)
they probably meant to store the value to tmp[i] and tmp[8 + i]
Global func_800BB388 (s32 bankId, s32 instId, s32 arg2)
diff --git a/ceremony__and__credits_8c.html b/ceremony__and__credits_8c.html index e12614db6..781609c87 100644 --- a/ceremony__and__credits_8c.html +++ b/ceremony__and__credits_8c.html @@ -1008,7 +1008,7 @@ Here is the caller graph for this function:
-
Todo
Cast to normal Camera? Or from CinematicCamera?
+
Todo
Cast to normal Camera? Or from CinematicCamera?
Here is the call graph for this function:
@@ -1295,7 +1295,7 @@ Here is the caller graph for this function:
-
Todo
Does this match as a return of s8?
+
Todo
Does this match as a return of s8?
Here is the call graph for this function:
@@ -2367,7 +2367,7 @@ Here is the call graph for this function:
-
Todo
What does this even do?
+
Todo
What does this even do?
Here is the call graph for this function:
diff --git a/ceremony__and__credits_8h.html b/ceremony__and__credits_8h.html index 305cb43f9..1b90c2c2a 100644 --- a/ceremony__and__credits_8h.html +++ b/ceremony__and__credits_8h.html @@ -960,7 +960,7 @@ Here is the caller graph for this function:
-
Todo
Cast to normal Camera? Or from CinematicCamera?
+
Todo
Cast to normal Camera? Or from CinematicCamera?
Here is the call graph for this function:
@@ -2202,7 +2202,7 @@ Here is the call graph for this function:
-
Todo
What does this even do?
+
Todo
What does this even do?
Here is the call graph for this function:
diff --git a/choco__mountain_2course__offsets_8c.html b/choco__mountain_2course__offsets_8c.html index 01c9eead1..627cb3a2f 100644 --- a/choco__mountain_2course__offsets_8c.html +++ b/choco__mountain_2course__offsets_8c.html @@ -192,7 +192,7 @@ Variables
{gTexture64647C, 0x0829, 0x1000, 0x0},
{gTexture647F4C, 0x05BC, 0x1000, 0x0},
{gTexture64FBF4, 0x0274, 0x0800, 0x0},
-
{gTexture653DB0, 0x06AE, 0x0800, 0x0},
+
{gTexture653DB0, 0x06AE, 0x0800, 0x0},
{gTexture652B54, 0x0606, 0x0800, 0x0},
{gTexture65315C, 0x04A9, 0x0800, 0x0},
{gTexture6684F8, 0x010D, 0x0800, 0x0},
@@ -211,7 +211,6 @@ Variables
{0x00000000, 0x0000, 0x0000, 0x0},
}
u8 gTexture64FBF4[]
-
u8 gTexture653DB0[]
u8 gTexture67B864[]
u8 gTexture65315C[]
u8 gTexture679C04[]
@@ -227,6 +226,7 @@ Variables
u8 gTexture64619C[]
u8 gTextureSignBackside[]
u8 gTexture6774D8[]
+
u8 gTexture653DB0[]
u8 gTextureSignFallingRocks[]
u8 gTexture647F4C[]
u8 gTexture67DC20[]
diff --git a/code__80005FD0_8c.html b/code__80005FD0_8c.html index e35ad00a2..bf8e246b3 100644 --- a/code__80005FD0_8c.html +++ b/code__80005FD0_8c.html @@ -5107,7 +5107,7 @@ Here is the caller graph for this function:
-
Bug
Adding an (f32) cast changes asm, why?
+
Bug
Adding an (f32) cast changes asm, why?
Here is the caller graph for this function:
diff --git a/code__80091750_8c.html b/code__80091750_8c.html index 7b303b5f3..ac3b81cab 100644 --- a/code__80091750_8c.html +++ b/code__80091750_8c.html @@ -1880,7 +1880,7 @@ Here is the caller graph for this function:
-
Todo
These sizes need to be sizeof() for shiftability if possible
+
Todo
These sizes need to be sizeof() for shiftability if possible
Here is the call graph for this function:
@@ -12161,7 +12161,7 @@ Here is the caller graph for this function:
-
Todo
Move gGfxPool out of main.h
+
Todo
Move gGfxPool out of main.h
diff --git a/code__80091750_8h.html b/code__80091750_8h.html index 9d67b082d..949d7075d 100644 --- a/code__80091750_8h.html +++ b/code__80091750_8h.html @@ -2057,7 +2057,7 @@ Here is the caller graph for this function:
-
Todo
These sizes need to be sizeof() for shiftability if possible
+
Todo
These sizes need to be sizeof() for shiftability if possible
Here is the call graph for this function:
@@ -13095,7 +13095,7 @@ Here is the caller graph for this function:
-
Todo
Move gGfxPool out of main.h
+
Todo
Move gGfxPool out of main.h
diff --git a/compiling.html b/compiling.html index d8b1f26ca..a220521ad 100644 --- a/compiling.html +++ b/compiling.html @@ -140,7 +140,7 @@ Arch Windows

Setup

diff --git a/crash__screen_8c.html b/crash__screen_8c.html index fe02308f8..424a1da29 100644 --- a/crash__screen_8c.html +++ b/crash__screen_8c.html @@ -283,7 +283,7 @@ Here is the caller graph for this function:
-
Bug
if this check fails, the ra register is printed a second time.
+
Bug
if this check fails, the ra register is printed a second time.
Here is the call graph for this function:
diff --git a/doxygen_crawl.html b/doxygen_crawl.html index 13e54ae8d..68fbefac4 100644 --- a/doxygen_crawl.html +++ b/doxygen_crawl.html @@ -101,8 +101,8 @@ - + @@ -152,13 +152,13 @@ - + - + @@ -245,8 +245,8 @@ - + @@ -345,6 +345,7 @@ + @@ -365,7 +366,6 @@ - @@ -401,8 +401,6 @@ - - @@ -414,9 +412,10 @@ - + + @@ -439,6 +438,7 @@ + @@ -506,9 +506,9 @@ + - @@ -536,8 +536,8 @@ - + @@ -554,14 +554,14 @@ - + - + @@ -637,9 +637,9 @@ - + @@ -690,9 +690,9 @@ - + @@ -700,13 +700,13 @@ - - + - + + @@ -720,8 +720,8 @@ - + @@ -746,11 +746,11 @@ - + - + @@ -769,8 +769,8 @@ - + @@ -804,14 +804,14 @@ - - - + + + @@ -828,13 +828,13 @@ - + @@ -862,8 +862,8 @@ - + @@ -905,8 +905,8 @@ - + @@ -919,8 +919,8 @@ - + @@ -934,8 +934,8 @@ - + @@ -981,8 +981,8 @@ - + @@ -997,15 +997,15 @@ + - + - @@ -1019,10 +1019,10 @@ - + @@ -1034,8 +1034,8 @@ - + diff --git a/kalimari__desert_2course__offsets_8c.html b/kalimari__desert_2course__offsets_8c.html index dcfdf001f..f9b6699ff 100644 --- a/kalimari__desert_2course__offsets_8c.html +++ b/kalimari__desert_2course__offsets_8c.html @@ -769,8 +769,8 @@ Variables
{gTexture67D304, 0x091C, 0x1000, 0x0},
{gTexture67E010, 0x0415, 0x0800, 0x0},
{gTexture67EEAC, 0x0140, 0x0800, 0x0},
-
{gTextureSignShellShot0, 0x038C, 0x1000, 0x0},
-
{gTextureSignShellShot1, 0x0247, 0x1000, 0x0},
+
{gTextureSignShellShot0, 0x038C, 0x1000, 0x0},
+
{gTextureSignShellShot1, 0x0247, 0x1000, 0x0},
{gTextureSignKoopaAir0, 0x0360, 0x1000, 0x0},
{gTextureSignKoopaAir1, 0x0304, 0x1000, 0x0},
{0x00000000, 0x0000, 0x0000, 0x0},
@@ -788,7 +788,9 @@ Variables
u8 gTextureRailroadCrossingTrack[]
u8 gTextureSignKoopaAir0[]
u8 gTexture6473E4[]
+
u8 gTextureSignShellShot1[]
u8 gTexture67D304[]
+
u8 gTextureSignShellShot0[]
u8 gTextureSignMarioStar0[]
u8 gTexture668920[]
u8 gTexture67291C[]
@@ -798,8 +800,6 @@ Variables
u8 gTexture647994[]
u8 gTextureFenceBarbedWire[]
u8 gTextureSignMarioStar1[]
-
u8 gTextureSignShellShot1[]
-
u8 gTextureSignShellShot0[]
diff --git a/main_8c.html b/main_8c.html index 04266ca95..38408a38a 100644 --- a/main_8c.html +++ b/main_8c.html @@ -573,7 +573,7 @@ Here is the caller graph for this function:
-
Todo
Why did void* work for matching
+
Todo
Why did void* work for matching
Here is the caller graph for this function:
diff --git a/main_8h.html b/main_8h.html index aed101a92..7c156017d 100644 --- a/main_8h.html +++ b/main_8h.html @@ -611,7 +611,7 @@ Variables
-
Todo
Verify with proper documentation
+
Todo
Verify with proper documentation
@@ -640,7 +640,7 @@ Variables
-
Todo
Verify with proper documentation
+
Todo
Verify with proper documentation
@@ -659,7 +659,7 @@ Variables
-
Todo
Why did void* work for matching
+
Todo
Why did void* work for matching
Here is the caller graph for this function:
diff --git a/navtreeindex42.js b/navtreeindex42.js index 79cb44b87..b94dbaede 100644 --- a/navtreeindex42.js +++ b/navtreeindex42.js @@ -74,8 +74,8 @@ var NAVTREEINDEX42 = "gfx__output__buffer_8h.html#aa6e89ad26a571573a3618e8bd57f2fcd":[8,0,3,2,2,1], "gfx__output__buffer_8h.html#acd645401a3e14e342cad25f6471ef97a":[8,0,3,2,2,0], "gfx__output__buffer_8h_source.html":[8,0,3,2,2], -"globals.html":[8,1,0,0], "globals.html":[8,1,0], +"globals.html":[8,1,0,0], "globals_a.html":[8,1,0,1], "globals_b.html":[8,1,0,2], "globals_c.html":[8,1,0,3], @@ -111,8 +111,8 @@ var NAVTREEINDEX42 = "globals_enum.html":[8,1,4], "globals_eval.html":[8,1,5], "globals_f.html":[8,1,0,6], -"globals_func.html":[8,1,1], "globals_func.html":[8,1,1,0], +"globals_func.html":[8,1,1], "globals_func_a.html":[8,1,1,1], "globals_func_b.html":[8,1,1,2], "globals_func_c.html":[8,1,1,3], diff --git a/osPiRawStartDma_8c.html b/osPiRawStartDma_8c.html index b4feeebe7..59e8acd63 100644 --- a/osPiRawStartDma_8c.html +++ b/osPiRawStartDma_8c.html @@ -186,7 +186,7 @@ Here is the caller graph for this function:
-
Todo
figure out why this is like this
+
Todo
figure out why this is like this
diff --git a/osPiStartDma_8c.html b/osPiStartDma_8c.html index 661858b66..9de6d0159 100644 --- a/osPiStartDma_8c.html +++ b/osPiStartDma_8c.html @@ -167,7 +167,7 @@ Variables
-
Todo
name magic constants
+
Todo
name magic constants
Here is the call graph for this function:
diff --git a/os__pi_8h.html b/os__pi_8h.html index b6b02c130..6e2c0bcb1 100644 --- a/os__pi_8h.html +++ b/os__pi_8h.html @@ -441,7 +441,7 @@ Here is the caller graph for this function:
-
Todo
name magic constants
+
Todo
name magic constants
Here is the call graph for this function:
diff --git a/player__controller_8c.html b/player__controller_8c.html index af91329b7..1dc364437 100644 --- a/player__controller_8c.html +++ b/player__controller_8c.html @@ -763,7 +763,7 @@ Here is the caller graph for this function:
-
Todo
make a proper match
+
Todo
make a proper match
Here is the call graph for this function:
diff --git a/player__controller_8h.html b/player__controller_8h.html index 40025779f..b84a49437 100644 --- a/player__controller_8h.html +++ b/player__controller_8h.html @@ -729,7 +729,7 @@ Here is the caller graph for this function:
-
Todo
make a proper match
+
Todo
make a proper match
Here is the call graph for this function:
diff --git a/toads__turnpike_2course__data_8c.html b/toads__turnpike_2course__data_8c.html index 1b978096a..0c0810c53 100644 --- a/toads__turnpike_2course__data_8c.html +++ b/toads__turnpike_2course__data_8c.html @@ -3026,7 +3026,7 @@ Variables
#define G_IM_FMT_RGBA
Definition gbi.h:396
#define G_IM_SIZ_16b
Definition gbi.h:407
#define G_CC_DECALRGBA
Definition gbi.h:512
-
Todo
Replace addresses with variables
+
Todo
Replace addresses with variables
diff --git a/toads__turnpike_2course__data_8h.html b/toads__turnpike_2course__data_8h.html index 840c1177b..8649ed263 100644 --- a/toads__turnpike_2course__data_8h.html +++ b/toads__turnpike_2course__data_8h.html @@ -2812,7 +2812,7 @@ Variables
-
Todo
Replace addresses with variables
+
Todo
Replace addresses with variables
diff --git a/todo.html b/todo.html index cede8341a..813907389 100644 --- a/todo.html +++ b/todo.html @@ -105,8 +105,8 @@ $(function(){initNavTree('todo.html',''); initResizable(); });
Global __osGetId (OSPfs *pfs)
-

loads of magic constants..

-

remove magic constant

+

remove magic constant

+

loads of magic constants..

Global __osPfsReleasePages (OSPfs *pfs, __OSInode *inode, u8 start_page, u16 *sum, u8 bank, __OSInodeUnit *last_page, int flag)
magic number
@@ -115,8 +115,8 @@ $(function(){initNavTree('todo.html',''); initResizable(); });
Global __osPiDevMgr
In libreultra this is in an include
Global __osRepairPackId (OSPfs *pfs, __OSPackId *badid, __OSPackId *newid)
-

remove magic constant

-

fix magic number

+

fix magic number

+

remove magic constant

Global _course_mario_raceway_dl_mio0SegmentRomStart []
These should probably be ptr's instead of array's?
@@ -125,11 +125,11 @@ $(function(){initNavTree('todo.html',''); initResizable(); });
Global BAD_RETURN (cmd)
put this define in types.h or similar. Certain functions are marked as having return values, but do not actually return a value. This causes undefined behavior, which we'd rather avoid on modern GCC. This only impacts -O2 and can matter for both the function itself and functions that call it.
Global clear_framebuffer (s32)
-
Why did void* work for matching
+
Why did void* work for matching
Global D_800E43B0 []
unused?
Global D_8018D9B0
-
Move gGfxPool out of main.h
+
Move gGfxPool out of main.h
Global d_course_banshee_boardwalk_dl_0 []
Replace addresses with variables
Global d_course_big_donut_dl []
@@ -157,9 +157,9 @@ $(function(){initNavTree('todo.html',''); initResizable(); });
Global d_course_sherbet_land_dl_0 []
Replace addresses with variables
Global d_course_toads_turnpike_dl_0 []
-
Replace addresses with variables
-
Global d_course_wario_stadium_dl_0 []
Replace addresses with variables
+
Global d_course_wario_stadium_dl_0 []
+
Replace addresses with variables
Global d_course_yoshi_valley_dl_0 []
Replace addresses with variables
Global debug_switch_character_ceremony_cutscene (void)
@@ -175,7 +175,7 @@ $(function(){initNavTree('todo.html',''); initResizable(); });
Global func_800100F0 (s32)
Confirm this comment
Global func_80028864 (Player *, Camera *, s8, s8)
-
make a proper match
+
make a proper match
Global func_80046030 (u8 *tlut, u8 *texture, Vtx *arg2, s32 width, s32 arg4, s32 height)
tlut/texture unconfirmed. This could be texture1 and texture2
Global func_8004B7DC (s32 x, s32 y, s32 width, s32 height, s32 arg4, s32 arg5, s32 arg6)
@@ -185,15 +185,15 @@ $(function(){initNavTree('todo.html',''); initResizable(); });
Global func_800745C8 (s32 objectIndex, s32 arg1)
arg1 should likely be a u8 *
Global func_80091FA4 (void)
-
These sizes need to be sizeof() for shiftability if possible
+
These sizes need to be sizeof() for shiftability if possible
Global func_800CBC24 (void)
clenanup, something's weird with the variables. D_800EA4A4 is probably EuAudioCmd bc of the + 0x100
Global func_80282D90 (struct CinematicCamera *, struct struct_80286A04 *, struct struct_80286A04 *, s32)
-
Cast to normal Camera? Or from CinematicCamera?
+
Cast to normal Camera? Or from CinematicCamera?
Global func_8028336C (UNUSED struct CinematicCamera *arg0, UNUSED Camera *camera)
-
Does this match as a return of s8?
+
Does this match as a return of s8?
Global func_802846E4 (struct CinematicCamera *)
-
What does this even do?
+
What does this even do?
Global func_8028F970 (void)
increasing players past four would require increase this loop iterator.
Global gen_random_item (s16 rank, s16 isCpu)
@@ -215,9 +215,9 @@ $(function(){initNavTree('todo.html',''); initResizable(); });
Global M_TASK_FLAG0
These defines shouldn't exist - PR/rcp.h has them properly defined (ultralib)
Global MTX_KART_POOL_SIZE
-
Verify with proper documentation
+
Verify with proper documentation
Global MTX_SHADOW_POOL_SIZE
-
Verify with proper documentation
+
Verify with proper documentation
Global new_actor (ActorInitParams *)
More indepth error checking/return value
Global Note::priority
@@ -227,9 +227,9 @@ $(function(){initNavTree('todo.html',''); initResizable(); });
Global osPfsDeleteFile (OSPfs *pfs, u16 company_code, u32 game_code, u8 *game_name, u8 *ext_name)
magic constant
Global osPiStartDma (OSIoMesg *mb, s32 priority, s32 direction, uintptr_t devAddr, void *vAddr, size_t nbytes, OSMesgQueue *mq)
-
name magic constants
+
name magic constants
Global osRomBase
-
figure out why this is like this
+
figure out why this is like this
Global osViBlack (u8 active)
name magic constants
Global osViSwapBuffer (void *vaddr)
@@ -237,7 +237,7 @@ $(function(){initNavTree('todo.html',''); initResizable(); });
Global PI_DOMAIN1
This define is from os.h, but including that causes problems...
Global render_actor_shell (Camera *camera, Mat4 matrix, struct ShellActor *shell)
-
Is this making the shell spin?
+
Is this making the shell spin?
Global SOUND_ARG_LOAD (sound_bank, byte2, byte3, sound_id)
format like sm64 sounds.h
Global UPDATE_REG (reg, var)
diff --git a/train_2render_8inc_8c_source.html b/train_2render_8inc_8c_source.html index 0e51a52e2..e2f528a87 100644 --- a/train_2render_8inc_8c_source.html +++ b/train_2render_8inc_8c_source.html @@ -368,71 +368,70 @@ $(function(){initNavTree('train_2render_8inc_8c_source.html',''); initResizable(
262 gSPPopMatrix(gDisplayListHead++, G_MTX_MODELVIEW);
263
-
264 mtxf_rotate_x(sp120, (s16) (actor->wheelRot + 0x222));
-
265 vec3f_set(sp160, 17.0f, 6.0f, 12.0f);
- - +
264 mtxf_rotate_x(sp120, (s16) (actor->wheelRot + 0x222));
+
265 vec3f_set(sp160, 17.0f, 6.0f, 12.0f);
+
266 mtxf_translate(spE0, sp160);
+
267 mtxf_multiplication(spA0, sp120, spE0);
268
-
269 if (render_set_position(spA0, 3) == 0) { return; }
+
269 if (render_set_position(spA0, 3) == 0) { return; }
270
- - + +
272 gSPPopMatrix(gDisplayListHead++, G_MTX_MODELVIEW);
273
-
274 mtxf_rotate_x(sp120, (s16) (actor->wheelRot + 0x222));
-
275 vec3f_set(sp160, -17.0f, 6.0f, 12.0f);
- - +
274 mtxf_rotate_x(sp120, (s16) (actor->wheelRot + 0x222));
+
275 vec3f_set(sp160, -17.0f, 6.0f, 12.0f);
+
276 mtxf_translate(spE0, sp160);
+
277 mtxf_multiplication(spA0, sp120, spE0);
278
-
279 if (render_set_position(spA0, 3) == 0) { return; }
+
279 if (render_set_position(spA0, 3) == 0) { return; }
280
- - + +
282 gSPPopMatrix(gDisplayListHead++, G_MTX_MODELVIEW);
283
-
284 mtxf_rotate_x(sp120, (s16) (actor->wheelRot + 0x5B0));
-
285 vec3f_set(sp160, 17.0f, 6.0f, -8.0f);
- - +
284 mtxf_rotate_x(sp120, (s16) (actor->wheelRot + 0x5B0));
+
285 vec3f_set(sp160, 17.0f, 6.0f, -8.0f);
+
286 mtxf_translate(spE0, sp160);
+
287 mtxf_multiplication(spA0, sp120, spE0);
288
-
289 if (render_set_position(spA0, 3) == 0) { return; }
+
289 if (render_set_position(spA0, 3) == 0) { return; }
290
- - + +
292 gSPPopMatrix(gDisplayListHead++, G_MTX_MODELVIEW);
293
-
294 mtxf_rotate_x(sp120, (s16) (actor->wheelRot + 0x5B0));
-
295 vec3f_set(sp160, -17.0f, 6.0f, -8.0f);
- - +
294 mtxf_rotate_x(sp120, (s16) (actor->wheelRot + 0x5B0));
+
295 vec3f_set(sp160, -17.0f, 6.0f, -8.0f);
+
296 mtxf_translate(spE0, sp160);
+
297 mtxf_multiplication(spA0, sp120, spE0);
298
-
299 if (render_set_position(spA0, 3) == 0) { return; }
+
299 if (render_set_position(spA0, 3) == 0) { return; }
300
- - + +
302 gSPPopMatrix(gDisplayListHead++, G_MTX_MODELVIEW);
303
-
304 mtxf_rotate_x(sp120, (s16) (actor->wheelRot + 0x16C));
-
305 vec3f_set(sp160, 17.0f, 6.0f, -24.0f);
- - +
304 mtxf_rotate_x(sp120, (s16) (actor->wheelRot + 0x16C));
+
305 vec3f_set(sp160, 17.0f, 6.0f, -24.0f);
+
306 mtxf_translate(spE0, sp160);
+
307 mtxf_multiplication(spA0, sp120, spE0);
308
-
309 if (render_set_position(spA0, 3) == 0) { return; }
+
309 if (render_set_position(spA0, 3) == 0) { return; }
310
- - + +
312 gSPPopMatrix(gDisplayListHead++, G_MTX_MODELVIEW);
313
-
314 mtxf_rotate_x(sp120, (s16) (actor->wheelRot + 0x16C));
-
315 vec3f_set(sp160, -17.0f, 6.0f, -24.0f);
- - +
314 mtxf_rotate_x(sp120, (s16) (actor->wheelRot + 0x16C));
+
315 vec3f_set(sp160, -17.0f, 6.0f, -24.0f);
+
316 mtxf_translate(spE0, sp160);
+
317 mtxf_multiplication(spA0, sp120, spE0);
318
-
319 if (render_set_position(spA0, 3) == 0) { return; }
+
319 if (render_set_position(spA0, 3) == 0) { return; }
320
- - - + +
322 gSPPopMatrix(gDisplayListHead++, G_MTX_MODELVIEW);
+
323 gSPSetGeometryMode(gDisplayListHead++, G_CULL_BACK);
324}
Camera * camera1
Definition camera.c:22
-
s16 gCourseMaxZ
Definition code_800029B0.c:92
f32 Vec3f[3]
Definition common_structs.h:6
f32 Mat4[4][4]
Definition common_structs.h:16
diff --git a/trees_2render_8inc_8c_source.html b/trees_2render_8inc_8c_source.html index 29b513e35..5cd934338 100644 --- a/trees_2render_8inc_8c_source.html +++ b/trees_2render_8inc_8c_source.html @@ -305,87 +305,87 @@ $(function(){initNavTree('trees_2render_8inc_8c_source.html',''); initResizable(
229
230 if (temp_f0 < 0.0f) { return; }
231
-
232 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
+
232 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 250000.0f)) {
233 func_8029794C(arg2->pos, arg2->rot, 2.79999995f);
234 }
-
235 arg1[3][0] = arg2->pos[0];
-
236 arg1[3][1] = arg2->pos[1];
-
237 arg1[3][2] = arg2->pos[2];
+
235 arg1[3][0] = arg2->pos[0];
+
236 arg1[3][1] = arg2->pos[1];
+
237 arg1[3][2] = arg2->pos[2];
238
-
239 if (render_set_position(arg1, 0) != 0) {
- +
239 if (render_set_position(arg1, 0) != 0) {
+
241 }
242}
243
- -
252 f32 temp_f0;
-
253 s16 temp_v0 = arg2->flags;
+ +
252 f32 temp_f0;
+
253 s16 temp_v0 = arg2->flags;
254
-
255 if ((temp_v0 & 0x800) != 0) { return; }
+
255 if ((temp_v0 & 0x800) != 0) { return; }
256
-
257 temp_f0 = is_within_render_distance(camera->pos, arg2->pos, camera->rot[1], 0, gCameraZoom[camera - camera1], 4000000.0f);
+
257 temp_f0 = is_within_render_distance(camera->pos, arg2->pos, camera->rot[1], 0, gCameraZoom[camera - camera1], 4000000.0f);
258
-
259 if (temp_f0 < 0.0f) { return; }
+
259 if (temp_f0 < 0.0f) { return; }
260
-
261 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 40000.0f)) {
+
261 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 40000.0f)) {
262 func_8029794C(arg2->pos, arg2->rot, 1.0f);
263 }
-
264 arg1[3][0] = arg2->pos[0];
-
265 arg1[3][1] = arg2->pos[1];
-
266 arg1[3][2] = arg2->pos[2];
+
264 arg1[3][0] = arg2->pos[0];
+
265 arg1[3][1] = arg2->pos[1];
+
266 arg1[3][2] = arg2->pos[2];
267
-
268 if (render_set_position(arg1, 0) != 0) {
- +
268 if (render_set_position(arg1, 0) != 0) {
+
270 }
271}
272
- -
281 f32 temp_f0;
-
282 s16 temp_v0 = arg2->flags;
+ +
281 f32 temp_f0;
+
282 s16 temp_v0 = arg2->flags;
283
-
284 if ((temp_v0 & 0x800) != 0) { return; }
+
284 if ((temp_v0 & 0x800) != 0) { return; }
285
-
286 temp_f0 = is_within_render_distance(camera->pos, arg2->pos, camera->rot[1], 0, gCameraZoom[camera - camera1], 4000000.0f);
+
286 temp_f0 = is_within_render_distance(camera->pos, arg2->pos, camera->rot[1], 0, gCameraZoom[camera - camera1], 4000000.0f);
287
-
288 if (temp_f0 < 0.0f) { return; }
+
288 if (temp_f0 < 0.0f) { return; }
289
-
290 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 40000.0f)) {
+
290 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 40000.0f)) {
291 func_8029794C(arg2->pos, arg2->rot, 1.0f);
292 }
-
293 arg1[3][0] = arg2->pos[0];
-
294 arg1[3][1] = arg2->pos[1];
-
295 arg1[3][2] = arg2->pos[2];
+
293 arg1[3][0] = arg2->pos[0];
+
294 arg1[3][1] = arg2->pos[1];
+
295 arg1[3][2] = arg2->pos[2];
296
-
297 if (render_set_position(arg1, 0) != 0) {
- +
297 if (render_set_position(arg1, 0) != 0) {
+
299 }
300}
301
- -
310 f32 temp_f0;
-
311 s16 temp_v0 = arg2->flags;
+ +
310 f32 temp_f0;
+
311 s16 temp_v0 = arg2->flags;
312
-
313 if ((temp_v0 & 0x800) != 0) { return; }
+
313 if ((temp_v0 & 0x800) != 0) { return; }
314
-
315 temp_f0 = is_within_render_distance(camera->pos, arg2->pos, camera->rot[1], 0, gCameraZoom[camera - camera1], 4000000.0f);
+
315 temp_f0 = is_within_render_distance(camera->pos, arg2->pos, camera->rot[1], 0, gCameraZoom[camera - camera1], 4000000.0f);
316
-
317 if (temp_f0 < 0.0f) { return; }
+
317 if (temp_f0 < 0.0f) { return; }
318
-
319 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 40000.0f)) {
+
319 if (((temp_v0 & 0x400) == 0) && (temp_f0 < 40000.0f)) {
320 func_8029794C(arg2->pos, arg2->rot, 0.80000001f);
321 }
-
322 arg1[3][0] = arg2->pos[0];
-
323 arg1[3][1] = arg2->pos[1];
-
324 arg1[3][2] = arg2->pos[2];
+
322 arg1[3][0] = arg2->pos[0];
+
323 arg1[3][1] = arg2->pos[1];
+
324 arg1[3][2] = arg2->pos[2];
325
-
326 if (render_set_position(arg1, 0) != 0) {
- +
326 if (render_set_position(arg1, 0) != 0) {
+
328 }
329}
@@ -394,7 +394,6 @@ $(function(){initNavTree('trees_2render_8inc_8c_source.html',''); initResizable(
Gfx d_course_bowsers_castle_dl_bush[]
Definition course_data.c:3957
Camera * camera1
Definition camera.c:22
-
s16 gCourseMaxZ
Definition code_800029B0.c:92
u16 common_tlut_trees_import[]
f32 Mat4[4][4]
Definition common_structs.h:16
diff --git a/wario__stadium_2course__data_8c.html b/wario__stadium_2course__data_8c.html index 387a9844b..258a5dd03 100644 --- a/wario__stadium_2course__data_8c.html +++ b/wario__stadium_2course__data_8c.html @@ -450,7 +450,7 @@ Variables
Gfx d_course_wario_stadium_packed_dl_4218[]
Definition course_displaylists.inc.c:2649
Gfx d_course_wario_stadium_packed_dl_5888[]
Definition course_displaylists.inc.c:3475
Gfx d_course_wario_stadium_packed_dl_4BA8[]
Definition course_displaylists.inc.c:3007
-
Todo
Replace addresses with variables
+
Todo
Replace addresses with variables
diff --git a/wario__stadium_2course__data_8h.html b/wario__stadium_2course__data_8h.html index fa6f8f05b..5b98ef9fd 100644 --- a/wario__stadium_2course__data_8h.html +++ b/wario__stadium_2course__data_8h.html @@ -418,7 +418,7 @@ Variables
-
Todo
Replace addresses with variables
+
Todo
Replace addresses with variables
diff --git a/yoshi__egg_2render_8inc_8c_source.html b/yoshi__egg_2render_8inc_8c_source.html index 463f6a8aa..e4d9a67ad 100644 --- a/yoshi__egg_2render_8inc_8c_source.html +++ b/yoshi__egg_2render_8inc_8c_source.html @@ -153,9 +153,9 @@ $(function(){initNavTree('yoshi__egg_2render_8inc_8c_source.html',''); initResiz
51 arg1[3][1] = egg->pos[1];
52 arg1[3][2] = egg->pos[2];
53
-
54 if (render_set_position(arg1, 0) != 0) {
-
55 gSPClearGeometryMode(gDisplayListHead++, G_LIGHTING);
-
56 gSPDisplayList(gDisplayListHead++, d_course_yoshi_valley_dl_egg_lod0);
+
54 if (render_set_position(arg1, 0) != 0) {
+
55 gSPClearGeometryMode(gDisplayListHead++, G_LIGHTING);
+
56 gSPDisplayList(gDisplayListHead++, d_course_yoshi_valley_dl_egg_lod0);
57 }
58 }
59}
@@ -165,6 +165,7 @@ $(function(){initNavTree('yoshi__egg_2render_8inc_8c_source.html',''); initResiz
Camera * camera1
Definition camera.c:22
+
s16 gCourseMaxZ
Definition code_800029B0.c:92
f32 Vec3f[3]
Definition common_structs.h:6
s16 Vec3s[3]
Definition common_structs.h:11
f32 Mat4[4][4]
Definition common_structs.h:16