From 8bc185b3f682e9b9a2412015a2fe7ac3d8c92352 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Wed, 28 Apr 2021 21:56:10 +1000 Subject: [PATCH] Decompile func0001c924 --- src/include/lib/model.h | 2 +- src/lib/model.c | 20 ++++++-------------- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/src/include/lib/model.h b/src/include/lib/model.h index 631b4da6e..9795f9014 100644 --- a/src/include/lib/model.h +++ b/src/include/lib/model.h @@ -43,7 +43,7 @@ void func0001c664(struct model *model, struct modelnode *node); void func0001c784(struct model *model, struct modelnode *node); void func0001c7d0(struct model *model, struct modelnode *node); void modelAttachHead(struct model *model, struct modelnode *node); -u32 func0001c868(void); +void func0001c868(struct modelnode *node, bool visible); void func0001c924(struct model *model, struct modelnode *node); void func0001c950(struct model *model, struct modelnode *node); void func0001cb0c(struct model *model, struct modelnode *node); diff --git a/src/lib/model.c b/src/lib/model.c index 313b16709..7ee1c7e07 100644 --- a/src/lib/model.c +++ b/src/lib/model.c @@ -3252,20 +3252,12 @@ glabel func0001c868 /* 1c920: 00000000 */ nop ); -GLOBAL_ASM( -glabel func0001c924 -/* 1c924: 27bdffe8 */ addiu $sp,$sp,-24 -/* 1c928: afbf0014 */ sw $ra,0x14($sp) -/* 1c92c: 0c006a87 */ jal modelGetNodeRwData -/* 1c930: afa5001c */ sw $a1,0x1c($sp) -/* 1c934: 8fa4001c */ lw $a0,0x1c($sp) -/* 1c938: 0c00721a */ jal func0001c868 -/* 1c93c: 8c450000 */ lw $a1,0x0($v0) -/* 1c940: 8fbf0014 */ lw $ra,0x14($sp) -/* 1c944: 27bd0018 */ addiu $sp,$sp,0x18 -/* 1c948: 03e00008 */ jr $ra -/* 1c94c: 00000000 */ nop -); +void func0001c924(struct model *model, struct modelnode *node) +{ + union modelrwdata *rwdata = modelGetNodeRwData(model, node); + + func0001c868(node, rwdata->hat.visible); +} void func0001c950(struct model *model, struct modelnode *node) {