Decompile currentPlayerGetCrossPos

This commit is contained in:
Ryan Dwyer 2020-07-30 19:13:18 +10:00
parent 0e0c64fb1a
commit 1a692d0c48
3 changed files with 10 additions and 13 deletions

View File

@ -2501,7 +2501,7 @@ glabel var7f1a9ec4
/* f0623e4: 00000000 */ nop
/* f0623e8: c4560018 */ lwc1 $f22,0x18($v0)
.L0f0623ec:
/* f0623ec: 0fc282fb */ jal func0f0a0bec
/* f0623ec: 0fc282fb */ jal currentPlayerGetCrossPos
/* f0623f0: 27a50104 */ addiu $a1,$sp,0x104
/* f0623f4: 0fc2d5fe */ jal currentPlayerGetScreenLeft
/* f0623f8: 00000000 */ nop
@ -4978,7 +4978,7 @@ glabel var7f1a9f54
/* f0645c8: 27a5006c */ addiu $a1,$sp,0x6c
/* f0645cc: 45020111 */ bc1fl .L0f064a14
/* f0645d0: c7a00058 */ lwc1 $f0,0x58($sp)
/* f0645d4: 0fc282fb */ jal func0f0a0bec
/* f0645d4: 0fc282fb */ jal currentPlayerGetCrossPos
/* f0645d8: afa0004c */ sw $zero,0x4c($sp)
/* f0645dc: 0fc25e24 */ jal floorf
/* f0645e0: c7ac008c */ lwc1 $f12,0x8c($sp)

View File

@ -11293,16 +11293,13 @@ glabel func0f0a0b98
/* f0a0be8: 00000000 */ nop
);
GLOBAL_ASM(
glabel func0f0a0bec
/* f0a0bec: 3c02800a */ lui $v0,%hi(g_Vars+0x284)
/* f0a0bf0: 8c42a244 */ lw $v0,%lo(g_Vars+0x284)($v0)
/* f0a0bf4: c4441660 */ lwc1 $f4,0x1660($v0)
/* f0a0bf8: e4840000 */ swc1 $f4,0x0($a0)
/* f0a0bfc: c4461664 */ lwc1 $f6,0x1664($v0)
/* f0a0c00: 03e00008 */ jr $ra
/* f0a0c04: e4a60000 */ swc1 $f6,0x0($a1)
);
void currentPlayerGetCrossPos(f32 *x, f32 *y)
{
struct player *player = g_Vars.currentplayer;
*x = player->crosspos[0];
*y = player->crosspos[1];
}
void func0f0a0c08(struct coord *arg0, struct coord *arg1)
{

View File

@ -79,7 +79,7 @@ u32 func0f09fa84(void);
void func0f0a0394(void);
void func0f0a0b30(f32 autoaimx, f32 autoaimy);
u32 func0f0a0b98(void);
u32 func0f0a0bec(void);
void currentPlayerGetCrossPos(f32 *x, f32 *y);
void func0f0a0c08(struct coord *arg0, struct coord *arg1);
u32 func0f0a0c44(void);
u32 func0f0a0cb0(void);