Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assorted matches #1450

Merged
merged 4 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading