Decompile animGetFrame
This commit is contained in:
parent
374eb80305
commit
c7e8f278d2
|
|
@ -89,7 +89,7 @@ struct anim {
|
|||
/*0x09*/ u8 flip2;
|
||||
/*0x0a*/ u8 looping;
|
||||
/*0x0b*/ u8 average;
|
||||
/*0x0c*/ u32 frame;
|
||||
/*0x0c*/ f32 frame;
|
||||
/*0x10*/ u32 frac;
|
||||
/*0x14*/ u16 framea;
|
||||
/*0x16*/ u16 frameb;
|
||||
|
|
|
|||
|
|
@ -3571,19 +3571,14 @@ glabel func0001d15c
|
|||
/* 1d178: 00000000 */ sll $zero,$zero,0x0
|
||||
);
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel animGetFrame
|
||||
/* 1d17c: 8c820020 */ lw $v0,0x20($a0)
|
||||
/* 1d180: 50400004 */ beqzl $v0,.L0001d194
|
||||
/* 1d184: 44800000 */ mtc1 $zero,$f0
|
||||
/* 1d188: 03e00008 */ jr $ra
|
||||
/* 1d18c: c440000c */ lwc1 $f0,0xc($v0)
|
||||
/* 1d190: 44800000 */ mtc1 $zero,$f0
|
||||
.L0001d194:
|
||||
/* 1d194: 00000000 */ sll $zero,$zero,0x0
|
||||
/* 1d198: 03e00008 */ jr $ra
|
||||
/* 1d19c: 00000000 */ sll $zero,$zero,0x0
|
||||
);
|
||||
f32 animGetFrame(struct animdata *animdata)
|
||||
{
|
||||
if (animdata->anim) {
|
||||
return animdata->anim->frame;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
GLOBAL_ASM(
|
||||
glabel func0001d1a0
|
||||
|
|
|
|||
Loading…
Reference in New Issue