From 38bb1005afd3354301ace284143c7306700017be Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Wed, 9 Feb 2022 17:48:25 +1000 Subject: [PATCH] Decompile func0f0b3988 --- src/game/game_0b3350.c | 24 ++++++------------------ src/include/game/texdecompress.h | 2 +- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/src/game/game_0b3350.c b/src/game/game_0b3350.c index f953ec24c..fb8eef22c 100644 --- a/src/game/game_0b3350.c +++ b/src/game/game_0b3350.c @@ -470,24 +470,12 @@ glabel func0f0b35b8 /* f0b3984: ac820000 */ sw $v0,0x0($a0) ); -GLOBAL_ASM( -glabel func0f0b3988 -/* f0b3988: 27bdffe8 */ addiu $sp,$sp,-24 -/* f0b398c: afbf0014 */ sw $ra,0x14($sp) -/* f0b3990: 8c8e0000 */ lw $t6,0x0($a0) -/* f0b3994: 24050001 */ addiu $a1,$zero,0x1 -/* f0b3998: 00003025 */ or $a2,$zero,$zero -/* f0b399c: 2dc10daf */ sltiu $at,$t6,0xdaf -/* f0b39a0: 50200004 */ beqzl $at,.L0f0b39b4 -/* f0b39a4: 8fbf0014 */ lw $ra,0x14($sp) -/* f0b39a8: 0fc5cd0d */ jal func0f173434 -/* f0b39ac: 00003825 */ or $a3,$zero,$zero -/* f0b39b0: 8fbf0014 */ lw $ra,0x14($sp) -.L0f0b39b4: -/* f0b39b4: 27bd0018 */ addiu $sp,$sp,0x18 -/* f0b39b8: 03e00008 */ jr $ra -/* f0b39bc: 00000000 */ nop -); +void func0f0b3988(struct textureconfig *config) +{ + if (config->texturenum < 0xdaf) { + func0f173434(config, 1, 0, 0); + } +} GLOBAL_ASM( glabel func0f0b39c0 diff --git a/src/include/game/texdecompress.h b/src/include/game/texdecompress.h index 2bb84b9d7..35355ee00 100644 --- a/src/include/game/texdecompress.h +++ b/src/include/game/texdecompress.h @@ -32,7 +32,7 @@ u32 func0f172f44(void); void func0f172f54(s32 *arg0); void func0f172f5c(Gfx *gdl, s32 arg1, s32 arg2); void func0f173010(s32 *texturenum, u32 arg1, u32 arg2); -u32 func0f173434(void); +void func0f173434(struct textureconfig *config, s32 arg1, s32 arg2, s32 arg3); void func0f1734e8(u16 arg0, void *arg1); void func0f173520(u8 *arg0); s32 func0f17353c(s32 arg0);