func_80337B68() match, core2/code_AEDA0.c done, progress update
This commit is contained in:
parent
322ed87b54
commit
69c2d2bcbb
|
@ -1,4 +1,4 @@
|
|||
# banjo (98.5528%)
|
||||
# banjo (98.6321%)
|
||||
|
||||
<img src="./progress/progress_total.svg">
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
</mask>
|
||||
<g mask="url(#anybadge_1)">
|
||||
<path fill="#555" d="M0 0h44v20H0z"/>
|
||||
<path fill="#0ae000" d="M44 0h67v20H44z"/>
|
||||
<path fill="#09e000" d="M44 0h67v20H44z"/>
|
||||
<path fill="url(#b)" d="M0 0h111v20H0z"/>
|
||||
</g>
|
||||
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
||||
|
@ -17,7 +17,7 @@
|
|||
<text x="22.0" y="14">core2</text>
|
||||
</g>
|
||||
<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">97.8743%</text>
|
||||
<text x="77.5" y="14">97.8743%</text>
|
||||
<text x="78.5" y="15" fill="#010101" fill-opacity=".3">98.0125%</text>
|
||||
<text x="77.5" y="14">98.0125%</text>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
@ -17,7 +17,7 @@
|
|||
<text x="75.0" y="14">Banjo-Kazooie (us.v10)</text>
|
||||
</g>
|
||||
<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">98.5528%</text>
|
||||
<text x="183.5" y="14">98.5528%</text>
|
||||
<text x="184.5" y="15" fill="#010101" fill-opacity=".3">98.6321%</text>
|
||||
<text x="183.5" y="14">98.6321%</text>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -377,93 +377,55 @@ void spriteRender_drawWithSegment(Gfx **gfx, Vtx **vtx, BKSprite *sprite, u32 fr
|
|||
func_8033687C(gfx);
|
||||
}
|
||||
|
||||
|
||||
#ifndef NONMATCHING
|
||||
#pragma GLOBAL_ASM("asm/nonmatchings/core2/code_AEDA0/func_80337B68.s")
|
||||
#else
|
||||
void func_80337B68(Gfx **gfx, Vtx **vtx, Struct84s *texture_list, s32 texture_index) {
|
||||
s16 temp_a1;
|
||||
s32 temp_at;
|
||||
s32 temp_lo;
|
||||
s32 temp_lo_2;
|
||||
s32 temp_t9;
|
||||
s32 temp_v1;
|
||||
s32 var_a0;
|
||||
s32 var_a0_2;
|
||||
s32 var_a1;
|
||||
s32 v2;
|
||||
s32 var_ra;
|
||||
s32 var_s1;
|
||||
s32 var_s1_2;
|
||||
s32 var_t0;
|
||||
s32 var_t0_2;
|
||||
s32 v0;
|
||||
s32 var_t2;
|
||||
s32 v1;
|
||||
s32 var_t3;
|
||||
s32 v3;
|
||||
s32 var_t4;
|
||||
s32 var_v1;
|
||||
s32 var_v1_2;
|
||||
s32 var_v1_3;
|
||||
s32 var_v1_4;
|
||||
s32 var_v1_5;
|
||||
s32 var_v1_6;
|
||||
s32 var_v1_7;
|
||||
void *temp_a0;
|
||||
void *temp_a0_2;
|
||||
void *temp_a0_3;
|
||||
void *temp_a0_4;
|
||||
void *temp_a0_5;
|
||||
void *temp_a0_6;
|
||||
void *temp_a2;
|
||||
void *temp_a2_2;
|
||||
void *temp_s0;
|
||||
Vtx *temp_s3;
|
||||
Vtx *start_vtx;
|
||||
BKSpriteTextureBlock *txtr_ptr;
|
||||
u16 *var_t5;
|
||||
s32 temp_lo;
|
||||
s32 var_a0;
|
||||
s32 var_a2;
|
||||
u16 *tmem;
|
||||
s32 i_vtx0;
|
||||
s32 size;
|
||||
|
||||
func_80335D30();
|
||||
func_80335D30(gfx);
|
||||
txtr_ptr = func_8033EFB0(texture_list, texture_index);
|
||||
temp_v1 = D_80383644;
|
||||
temp_lo = temp_v1 / 3;
|
||||
temp_s3 = *vtx;
|
||||
var_s1 = 0;
|
||||
var_t4 = (s32) (((f32) txtr_ptr->y / (f32) txtr_ptr->h) * (f32) temp_v1);
|
||||
for(var_s1 = 0; var_s1 < 3; var_s1++){
|
||||
var_a0 = var_t4;
|
||||
start_vtx = *vtx;
|
||||
temp_lo = (s32) D_80383644 / 3;
|
||||
var_a2 = -((f32) txtr_ptr->x / (f32) txtr_ptr->w) * D_80383640;
|
||||
var_a0 = ((f32) txtr_ptr->y / (f32) txtr_ptr->h) * D_80383644;
|
||||
|
||||
for(var_s1 = 0, size = 3; var_s1 < size; var_s1++){
|
||||
for(var_t2 = 0; var_t2 < 2; var_t2++){
|
||||
for(var_v1 = 0; var_v1 < 2; var_v1++){
|
||||
(*vtx)->v.ob[0] = (s16) ((var_v1 * D_80383640) + (s32) (-((f32) txtr_ptr->x / (f32) txtr_ptr->w) * (f32) D_80383640));
|
||||
(*vtx)->v.ob[1] = (s16) (-(var_t2 * (D_80383644/3) - (var_s1*(D_80383644/3))) + (s32) (((f32) txtr_ptr->x / (f32) txtr_ptr->w) * (f32) D_80383644));
|
||||
(*vtx)->v.ob[0] = (var_v1 * D_80383640) + var_a2;
|
||||
(*vtx)->v.ob[1] = var_a0 - (var_t2*temp_lo) ;
|
||||
(*vtx)->v.ob[2] = 0;
|
||||
(*vtx)->v.tc[0] = ((txtr_ptr->w - 1) * var_v1) << 6;
|
||||
(*vtx)->n.tc[1] = (0x1A * var_v1) << 6;
|
||||
*(u32*)((*vtx)->v.cn) = 0x00007F80;
|
||||
(*vtx)->v.tc[1] = ((0x1A)*var_t2) << 6;
|
||||
*(u32*)((*vtx)->v.cn) = 0x7F80;
|
||||
(*vtx)++;
|
||||
}
|
||||
var_a0 += -temp_lo;
|
||||
}
|
||||
var_t4 -= temp_lo;
|
||||
}
|
||||
var_t5 = (u16*)(txtr_ptr + 1);
|
||||
v0 = 0;
|
||||
v1 = 1;
|
||||
v3 = 3;
|
||||
v2 = 2;
|
||||
gSPVertex((*gfx)++, temp_s3, 12, 0);
|
||||
for(var_s1 = 0; var_s1 < 3; var_s1++){
|
||||
gDPLoadTextureBlock((*gfx)++, var_t5, G_IM_FMT_RGBA, G_IM_SIZ_16b, txtr_ptr->w, ((var_s1 < 2) ? 1 : 0) + 0x1A, NULL, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
||||
gSP2Triangles((gfx++), v0, v1, v3, var_s1, v2, v0, v3,var_s1);
|
||||
var_t5 += txtr_ptr->w * 0x1A;
|
||||
v0 += 4;
|
||||
v1 += 4;
|
||||
v3 += 4;
|
||||
v2 += 4;
|
||||
var_a0 -= temp_lo;
|
||||
}
|
||||
|
||||
tmem = (u16*)(txtr_ptr + 1);
|
||||
gSPVertex((*gfx)++, start_vtx, 12, 0);
|
||||
|
||||
i_vtx0 = 0;
|
||||
for(var_s1 = 0; var_s1 < size; var_s1++){
|
||||
gDPLoadTextureBlock((*gfx)++, tmem , G_IM_FMT_RGBA, G_IM_SIZ_16b, txtr_ptr->w, 0x1A + ((var_s1 < 2) ? 1 : 0) , NULL, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
||||
gSP2Triangles((*gfx)++,
|
||||
i_vtx0 + 0, i_vtx0 + 1, i_vtx0 + 3, i_vtx0,
|
||||
i_vtx0 + 0, i_vtx0 + 3, i_vtx0 + 2, i_vtx0);
|
||||
tmem += txtr_ptr->w * 0x1A;
|
||||
i_vtx0 += 4;
|
||||
}
|
||||
func_8033687C(gfx);
|
||||
}
|
||||
#endif
|
||||
|
||||
void func_80338048(Gfx **gfx, Mtx **mtx, Vtx **vtx, f32 arg3[3], Struct84s *arg4, s32 arg5) {
|
||||
func_803380F8(gfx, mtx, arg3);
|
||||
|
|
Loading…
Reference in New Issue