match func_802E4C0C()

This commit is contained in:
Banjo Kazooie
2022-11-27 13:18:49 -06:00
parent 3aa4568342
commit 1f8c460fe1
7 changed files with 21 additions and 35 deletions

View File

@@ -1,4 +1,4 @@
# banjo (94.6059%) # banjo (94.6127%)
<img src="./progress/progress_total.svg"> <img src="./progress/progress_total.svg">

View File

@@ -17,7 +17,7 @@
<text x="22.0" y="14">core2</text> <text x="22.0" y="14">core2</text>
</g> </g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"> <g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="78.5" y="15" fill="#010101" fill-opacity=".3">93.1301%</text> <text x="78.5" y="15" fill="#010101" fill-opacity=".3">93.1420%</text>
<text x="77.5" y="14">93.1301%</text> <text x="77.5" y="14">93.1420%</text>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -17,7 +17,7 @@
<text x="75.0" y="14">Banjo-Kazooie (us.v10)</text> <text x="75.0" y="14">Banjo-Kazooie (us.v10)</text>
</g> </g>
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11"> <g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
<text x="184.5" y="15" fill="#010101" fill-opacity=".3">94.6059%</text> <text x="184.5" y="15" fill="#010101" fill-opacity=".3">94.6127%</text>
<text x="183.5" y="14">94.6059%</text> <text x="183.5" y="14">94.6127%</text>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -74,20 +74,14 @@ struct5DBC0s *func_802E4B50(void){
return D_8037E900; return D_8037E900;
} }
#ifndef NONMATCHING void func_802E4C0C(struct5DBC0_2s *arg0, u32 arg1)
#pragma GLOBAL_ASM("asm/nonmatchings/core2/code_5DBC0/func_802E4C0C.s") {
#else while(arg1--){
void func_802E4C0C(struct5DBC0_2s * arg0, u32 arg1){
// u32 i, v0;
u32 v0;
while(--arg1 > 0){
// arg1--;
assetcache_release(arg0[arg1].font_bin); assetcache_release(arg0[arg1].font_bin);
free(arg0[arg1].letter_texture); free(arg0[arg1].letter_texture);
} }
free(arg0); free(arg0);
} }
#endif
void func_802E4C78(void){ void func_802E4C78(void){
if(D_8037E900->unk0 != NULL){ if(D_8037E900->unk0 != NULL){

View File

@@ -8,21 +8,13 @@ extern void func_80252C08(f32[3],f32[3], f32, f32[3]);
extern void func_80252CC4(f32[3],s32, f32, s32); extern void func_80252CC4(f32[3],s32, f32, s32);
extern f32 func_802560D0(f32[3], f32[3], f32[3]); extern f32 func_802560D0(f32[3], f32[3], f32[3]);
typedef struct {
u8 pad0[0x24];
BKCollisionTri *unk24;
}Struct_core2_5FD90_0;
typedef struct { typedef struct {
f32 unk0[3]; f32 unk0[3];
f32 unkC[3]; f32 unkC[3];
f32 unk18[3]; f32 unk18[3];
struct { BKCollisionTri *unk24;
BKCollisionTri * unk0; f32 unk28[3][3];
f32 unk4[3][3]; }Struct_core2_5FD90_0;
}
unk24;
}Struct_core2_5FD90_1;
/* .rodata */ /* .rodata */
@@ -35,7 +27,7 @@ struct {
BKCollisionGeo **unk190; BKCollisionGeo **unk190;
}D_8037E910; }D_8037E910;
f32 D_8037EAA8[3][3]; f32 D_8037EAA8[3][3];
Struct_core2_5FD90_1 D_8037EAD0[100]; Struct_core2_5FD90_0 D_8037EAD0[100];
/* .code */ /* .code */
void func_802E6D20(BKCollisionTri *arg0, BKVertexList *vtx_list) { void func_802E6D20(BKCollisionTri *arg0, BKVertexList *vtx_list) {
@@ -477,7 +469,7 @@ s32 func_802E81CC(BKCollisionList *collision_list, BKVertexList *vtx_list, f32 a
// //pad8C; // //pad8C;
// f32 sp80[3]; // f32 sp80[3];
// f32 sp74[3]; // f32 sp74[3];
// Struct_core2_5FD90_1 *var_s2; // Struct_core2_5FD90_0 *var_s2;
// ? *var_t0; // ? *var_t0;
// ? *var_v0; // ? *var_v0;
// f32 *temp_v0; // f32 *temp_v0;

View File

@@ -5,7 +5,7 @@
#include "assets.h" #include "assets.h"
#include "animation.h" #include "animation.h"
extern f32 func_80340A4C(f32, s32, f32 *); extern f32 glspline_catmull_rom_interpolate(f32, s32, f32 *);
extern f32 D_803709E0[]; extern f32 D_803709E0[];
extern u8 D_80370A1C; extern u8 D_80370A1C;
@@ -107,7 +107,7 @@ f32 func_8033AC38(AnimationFile *this, AnimationFileElement *elem, f32 arg2){
sp38[0] = sp38[1] = D_803709E0[elem->unk0_3]; sp38[0] = sp38[1] = D_803709E0[elem->unk0_3];
sp38[2] = (f32) var_a2->unk2 / 64; sp38[2] = (f32) var_a2->unk2 / 64;
sp38[3] = (var_a2->unk0_15 == 1 && elem->data_cnt >= 2) ? (f32)(var_a2 + 1)->unk2/64 : sp38[2]; sp38[3] = (var_a2->unk0_15 == 1 && elem->data_cnt >= 2) ? (f32)(var_a2 + 1)->unk2/64 : sp38[2];
return func_80340A4C((arg2 - this->unk0)/(var_a2->unk0_13 - this->unk0), 4, sp38); return glspline_catmull_rom_interpolate((arg2 - this->unk0)/(var_a2->unk0_13 - this->unk0), 4, sp38);
} }
var_a0 = var_a2 + elem->data_cnt; var_a0 = var_a2 + elem->data_cnt;
var_a0--; var_a0--;
@@ -116,7 +116,7 @@ f32 func_8033AC38(AnimationFile *this, AnimationFileElement *elem, f32 arg2){
sp38[0] = ((var_a0->unk0_14 == 1) && (elem->data_cnt >= 2)) ? (f32) (var_a0 - 1)->unk2 / 64 : sp38[1]; sp38[0] = ((var_a0->unk0_14 == 1) && (elem->data_cnt >= 2)) ? (f32) (var_a0 - 1)->unk2 / 64 : sp38[1];
sp38[2] = sp38[3] = sp38[1]; sp38[2] = sp38[3] = sp38[1];
return func_80340A4C(arg2 - var_a0->unk0_13, 4, sp38); return glspline_catmull_rom_interpolate(arg2 - var_a0->unk0_13, 4, sp38);
} }
@@ -142,7 +142,7 @@ f32 func_8033AC38(AnimationFile *this, AnimationFileElement *elem, f32 arg2){
sp38[0] = (var_a2->unk0_14 == 1 && (var_a2 - 1) >= &elem->data[0]) ? (f32)(var_a2 - 1)->unk2/64 : sp38[1]; sp38[0] = (var_a2->unk0_14 == 1 && (var_a2 - 1) >= &elem->data[0]) ? (f32)(var_a2 - 1)->unk2/64 : sp38[1];
sp38[3] = (var_a0->unk0_15 == 1 && (var_a0 + 1) < &elem->data[elem->data_cnt]) ? (f32)(var_a0 + 1)->unk2/64 : sp38[2]; sp38[3] = (var_a0->unk0_15 == 1 && (var_a0 + 1) < &elem->data[elem->data_cnt]) ? (f32)(var_a0 + 1)->unk2/64 : sp38[2];
return func_80340A4C(temp_f12, 4, sp38); return glspline_catmull_rom_interpolate(temp_f12, 4, sp38);
} }
void func_8033AFB8(Struct_B1400 *arg0, s32 arg1, f32 arg2[3][3]){ void func_8033AFB8(Struct_B1400 *arg0, s32 arg1, f32 arg2[3][3]){

View File

@@ -301,7 +301,7 @@ s32 func_80340760(s32 arg0, s32 *arg1, f32 *arg2, s32 arg3, s32 arg4, f32 *arg5,
return 0; return 0;
} }
f32 func_80340A4C(f32 arg0, s32 arg1, f32 *arg2) { f32 glspline_catmull_rom_interpolate(f32 arg0, s32 arg1, f32 *arg2) {
s32 tmp_v1; s32 tmp_v1;
s32 tmp_t7; s32 tmp_t7;
f32 sp24[3]; f32 sp24[3];