func_8033F5F8() done

This commit is contained in:
Banjo Kazooie
2022-12-18 20:49:52 -06:00
parent 8eaab9848f
commit 2c102f2619
4 changed files with 19 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
# banjo (96.6236%) # banjo (96.6439%)
<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">95.7614%</text> <text x="78.5" y="15" fill="#010101" fill-opacity=".3">95.7968%</text>
<text x="77.5" y="14">95.7614%</text> <text x="77.5" y="14">95.7968%</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">96.6236%</text> <text x="184.5" y="15" fill="#010101" fill-opacity=".3">96.6439%</text>
<text x="183.5" y="14">96.6236%</text> <text x="183.5" y="14">96.6439%</text>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -165,41 +165,36 @@ void model_free(void *arg0){
free(arg0); free(arg0);
} }
#ifndef NONMATCHING BKModel *func_8033F5F8(BKMeshList *meshList, BKVertexList *vertexList) {
#pragma GLOBAL_ASM("asm/nonmatchings/core2/code_B8080/func_8033F5F8.s")
#else
BKModel *func_8033F5F8(BKMeshList *arg0, BKVertexList *arg1) {
BKModel *sp40;
s32 temp_s1; s32 temp_s1;
s32 temp_s6; BKModel *sp40;
void *temp_v0; void *temp_v0;
BKMesh *phi_s3; BKMesh *phi_s3;
BKMesh *phi_s5; BKMesh *phi_s5;
s16 *phi_s2;
BKVtxRef *phi_s0; BKVtxRef *phi_s0;
Vtx *new_var;
s32 phi_s1; s32 phi_s1;
s32 phi_s6; s32 phi_s6;
sp40 = (BKModel *)malloc((meshList_getVtxCount(arg0) * sizeof(BKVtxRef)) + (arg0->meshCount_0 * sizeof(BKMesh)) + sizeof(BKModel)); sp40 = (BKModel *)malloc((meshList_getVtxCount(meshList) * sizeof(BKVtxRef)) + (meshList->meshCount_0 * sizeof(BKMesh)) + sizeof(BKModel));
sp40->meshList_0 = arg0; sp40->meshList_0 = meshList;
sp40->vtxList_4 = arg1; sp40->vtxList_4 = vertexList;
phi_s3 = (BKMesh *)(arg0 + 1); phi_s3 = (BKMesh *)(meshList + 1);
phi_s5 = (BKMesh *)(sp40 + 1); phi_s5 = (BKMesh *)(sp40 + 1);
for(phi_s6 = 0; phi_s6 < arg0->meshCount_0; phi_s6++){ for(phi_s6 = 0; phi_s6 < meshList->meshCount_0; phi_s6++){
phi_s5->uid_0 = (s16) phi_s3->uid_0; phi_s5->uid_0 = (s16) phi_s3->uid_0;
phi_s5->vtxCount_2 = (s16) phi_s3->vtxCount_2; phi_s5->vtxCount_2 = (s16) phi_s3->vtxCount_2;
phi_s2 = (s16*)(phi_s3 + 1); phi_s0 = ((BKVtxRef *)(phi_s5 + 1));
phi_s0 = (BKVtxRef *)(phi_s5 + 1);
for(phi_s1 = 0; phi_s1 < phi_s3->vtxCount_2; phi_s1++){ for(phi_s1 = 0; phi_s1 < phi_s3->vtxCount_2; phi_s1++){
phi_s0[phi_s1].unk10 = phi_s2[phi_s1]; phi_s0->unk10 = ((s16 *)(phi_s3 + 1))[phi_s1];
memcpy(&phi_s0->v, (Vtx *)(arg1 + 1) + phi_s0->unk10, sizeof(Vtx)); memcpy(phi_s0, ((Vtx *)(vertexList + 1)) + phi_s0->unk10, sizeof(Vtx));
phi_s0++;
} }
phi_s3 = (BKMesh *)((Vtx *)(phi_s3 + 1) + phi_s3->vtxCount_2); phi_s3 = (BKMesh *)((s16 *)(phi_s3 + 1) + phi_s3->vtxCount_2);
phi_s3 = (BKMesh *)((BKVtxRef *)(phi_s5 + 1) + phi_s5->vtxCount_2); phi_s5 = (BKMesh *)((BKVtxRef *)(phi_s5 + 1) + phi_s5->vtxCount_2);
} }
return sp40; return sp40;
} }
#endif
void func_8033F738(ActorMarker *arg0) { void func_8033F738(ActorMarker *arg0) {
BKModelBin *sp1C; BKModelBin *sp1C;