Skip to content

Commit

Permalink
Assorted matches (#1450)
Browse files Browse the repository at this point in the history
* Match mnGallery_80258940

* Match grDisplay_801C5F60

* Tweak HSD_JObjSetupMatrix

* Match grMaterial_801C8E28
  • Loading branch information
PsiLupan authored Sep 9, 2024
1 parent 138ca63 commit 5fa7cfc
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/GALE01/symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12949,7 +12949,7 @@ fn_802545C4 = .text:0x802545C4; // type:function size:0x37B8
fn_80257D7C = .text:0x80257D7C; // type:function size:0x1A8
mnSnap_80257F24 = .text:0x80257F24; // type:function size:0xA1C scope:global
mnGallery_80258940 = .text:0x80258940; // type:function size:0x2C scope:global
fn_8025896C = .text:0x8025896C; // type:function size:0x9C
mnGallery_8025896C = .text:0x8025896C; // type:function size:0x9C
mnGallery_80258A08 = .text:0x80258A08; // type:function size:0x1BC scope:global
mnGallery_80258BC4 = .text:0x80258BC4; // type:function size:0x18C scope:global
mnGallery_80258D50 = .text:0x80258D50; // type:function size:0x6C scope:global
Expand Down
11 changes: 11 additions & 0 deletions src/melee/gr/grdisplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,14 @@ void grDisplay_801C5B90(HSD_JObj* jobj, void* arg1, u32 arg2, int arg3)
}
}
}

void grDisplay_801C5F60(HSD_GObj* gobj, int code)
{
HSD_CObj* cobj = GET_COBJ(gobj);
if (HSD_CObjSetCurrent(cobj)) {
gobj->gxlink_prios = 8;
Camera_800310A0(0);
HSD_GObj_80390ED0(gobj, 7);
HSD_CObjEndCurrent();
}
}
5 changes: 5 additions & 0 deletions src/melee/gr/grmaterial.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ void grMaterial_801C8E08(HSD_GObj* gobj)
it_802756E0(gobj);
}

void grMaterial_801C8E28(HSD_GObj* gobj)
{
it_802756D0(gobj);
}

bool grMaterial_801C8E48(HSD_GObj* gobj)
{
Item* it = gobj->user_data;
Expand Down
1 change: 1 addition & 0 deletions src/melee/gr/grmaterial.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
/* 1C8CFC */ int grMaterial_801C8CFC(int, int, Ground*, HSD_JObj*, int,
HSD_GObjEvent, int);
/* 1C8E08 */ void grMaterial_801C8E08(int);
/* 1C8E28 */ void grMaterial_801C8E28(HSD_GObj*);
/* 1C94D8 */ void grMaterial_801C94D8(UNK_T hsd_obj);
/* 1C95C4 */ void grMaterial_801C95C4(HSD_GObj*);
/* 1C9604 */ void grMaterial_801C9604(HSD_GObj* bg, int, bool);
Expand Down
10 changes: 10 additions & 0 deletions src/melee/mn/mngallery.c
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
#include "mngallery.h"

#include <baselib/cobj.h>
#include <baselib/memory.h>

extern void* mnGallery_804D6C8C;

void mnGallery_80258940(void)
{
mnGallery_804D6C8C = HSD_MemAlloc(0x271000);
}
9 changes: 9 additions & 0 deletions src/melee/mn/mngallery.h
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
#ifndef _mngallery_h_
#define _mngallery_h_

#include <platform.h>

#include <baselib/gobj.h>

void mnGallery_80258940(void);

#endif
2 changes: 1 addition & 1 deletion src/sysdolphin/baselib/jobj.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ static inline bool HSD_JObjMtxIsDirty(HSD_JObj* jobj)

inline void HSD_JObjSetupMatrix(HSD_JObj* jobj)
{
if (jobj == NULL || !HSD_JObjMtxIsDirty(jobj)) {
if (!jobj || !HSD_JObjMtxIsDirty(jobj)) {
return;
}
HSD_JObjSetupMatrixSub(jobj);
Expand Down

0 comments on commit 5fa7cfc

Please sign in to comment.