From f6111bc4280a070348157656185940567046af63 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Sun, 3 Oct 2021 17:47:58 +1000 Subject: [PATCH] Decompile func0f14c7dc --- src/game/camdraw.c | 26 +++++++++++--------------- src/include/game/camdraw.h | 2 +- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/src/game/camdraw.c b/src/game/camdraw.c index 030c1a176..e005a1f06 100644 --- a/src/game/camdraw.c +++ b/src/game/camdraw.c @@ -2049,21 +2049,17 @@ glabel func0f14c75c /* f14c7d8: 27bd0028 */ addiu $sp,$sp,0x28 ); -GLOBAL_ASM( -glabel func0f14c7dc -/* f14c7dc: 24030001 */ addiu $v1,$zero,0x1 -/* f14c7e0: 24020040 */ addiu $v0,$zero,0x40 -/* f14c7e4: 240e0004 */ addiu $t6,$zero,0x4 -/* f14c7e8: a0820004 */ sb $v0,0x4($a0) -/* f14c7ec: a0820005 */ sb $v0,0x5($a0) -/* f14c7f0: a0800006 */ sb $zero,0x6($a0) -/* f14c7f4: a08e0007 */ sb $t6,0x7($a0) -/* f14c7f8: a0830008 */ sb $v1,0x8($a0) -/* f14c7fc: a0800009 */ sb $zero,0x9($a0) -/* f14c800: a083000a */ sb $v1,0xa($a0) -/* f14c804: 03e00008 */ jr $ra -/* f14c808: a083000b */ sb $v1,0xb($a0) -); +void func0f14c7dc(struct textureconfig *tconfig) +{ + tconfig->width = 64; + tconfig->height = 64; + tconfig->level = 0; + tconfig->format = 4; + tconfig->depth = 1; + tconfig->s = 0; + tconfig->t = 1; + tconfig->unk0b = 1; +} void func0f14c80c(void) { diff --git a/src/include/game/camdraw.h b/src/include/game/camdraw.h index d8f50e729..d50bf9bc0 100644 --- a/src/include/game/camdraw.h +++ b/src/include/game/camdraw.h @@ -46,7 +46,7 @@ void func0f14bec8(s32 index); void func0f14c1cc(s32 index); void func0f14c50c(struct var8007f8e0 *arg0, struct var8007f8e0 *arg1, u32 line, char *file); void func0f14c75c(struct textureconfig *arg0, struct textureconfig *arg1); -u32 func0f14c7dc(void); +void func0f14c7dc(struct textureconfig *tconfig); u32 func0f14c814(struct textureconfig *arg0); Gfx *func0f14c870(Gfx *gdl, struct textureconfig *tconfig, f32 *arg2, f32 arg3, f32 arg4); void func0f14cdb8(s32 index, u8 *arg1);