define .rodata splits for all core2 files

This commit is contained in:
Banjo Kazooie
2022-09-25 16:30:31 -05:00
parent c3cf6dd913
commit eafea932fa
29 changed files with 112 additions and 179 deletions

View File

@@ -6,11 +6,6 @@
extern u8 func_8033E8D0(void);
/* .rodata */
extern f32 D_803793F0;
extern f64 D_803793F8;
extern f32 D_80379400;
/* .code */
void func_803525A0(f32 arg0[3]){
u8 sp1F;
@@ -22,7 +17,7 @@ void func_803525A0(f32 arg0[3]){
sp18 = func_8033E960();
projectile_setPosition(sp1E, arg0);
func_80344D94(sp1F, arg0);
sp18[1] = D_803793F0;
sp18[1] = 0.45f;
}
}
@@ -70,10 +65,10 @@ void func_803526DC(void) {
func_8033FE2C(sp43, 9.0f);
temp_f16 = (s32) ml_map_f(temp_f20, 0.0f, sp38, sp30, 10.0f);
func_8033FFE4(sp43, temp_f16, temp_f16);
if (temp_f20 < D_803793F8) {
if (temp_f20 < 0.1) {
func_8033FC34(sp43, (s32) ml_map_f(temp_f20, 0.0f, 0.08f, 20.0f, 255.0f));
} else {
func_8033FC34(sp43, (s32) ml_map_f(temp_f20, D_80379400, sp38, 255.0f, 20.0f));
func_8033FC34(sp43, (s32) ml_map_f(temp_f20, 0.1f, sp38, 255.0f, 20.0f));
}
temp_f20 += time_getDelta();
temp_s0->unk0 = temp_f20;