Skip to content

Commit

Permalink
dMenu_Collect2D_c::screenSet matches
Browse files Browse the repository at this point in the history
  • Loading branch information
hatal175 committed Sep 27, 2024
1 parent 3180802 commit cbf000d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions include/d/msg/d_msg_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class dMsgObject_c : public msg_class {
/* 80238378 */ static int isMsgSend();
/* 802383A4 */ static bool isMouthCheck();
/* 802383D0 */ static u32 getMessageID();
/* 802383E4 */ u16 getSmellTypeMessageID();
/* 802383E4 */ static u16 getSmellTypeMessageID();
/* 80238410 */ static void setSmellType(u8);
/* 80238440 */ static u8 getSelectCursorPos();
/* 8023846C */ static void setSelectCursorPos(u8);
Expand Down Expand Up @@ -359,7 +359,7 @@ inline u32 dMsgObject_getMessageID() {
return dMsgObject_c::getMessageID();
}

inline u32 dMsgObject_getSmellTypeMessageID() {
inline u16 dMsgObject_getSmellTypeMessageID() {
return dMsgObject_getMsgObjectClass()->getSmellTypeMessageID();
}

Expand Down
11 changes: 6 additions & 5 deletions src/d/menu/d_menu_collect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "d/msg/d_msg_object.h"
#include "d/msg/d_msg_string.h"
#include "d/pane/d_pane_class.h"
#include "d/d_item.h"
#include "dol2asm.h"
#include "dolphin/os.h"
#include "dolphin/types.h"
Expand Down Expand Up @@ -1169,7 +1170,7 @@ SECTION_SDATA2 static f32 lit_5173 = 0.5f;
SECTION_SDATA2 static f32 lit_5174 = -1000.0f;

/* 801B074C-801B1C3C 1AB08C 14F0+00 1/1 0/0 0/0 .text screenSet__17dMenu_Collect2D_cFv */
// issues with addi instructions
// Matches with literals
#ifdef NONMATCHING
void dMenu_Collect2D_c::screenSet() {
static_cast<J2DTextBox*>(mpScreen->search('f_t00'))->setFont(mDoExt_getRubyFont());
Expand All @@ -1187,8 +1188,8 @@ void dMenu_Collect2D_c::screenSet() {
0x60, static_cast<J2DTextBox*>(mpScreen->search(ftext_sv[i]))->getStringPtr(), NULL);
dMeter2Info_getStringKanji(
0x5F, static_cast<J2DTextBox*>(mpScreen->search(ftext_op[i]))->getStringPtr(), NULL);
mpScreen->search(ftext_sv[i])->hide();
mpScreen->search(ftext_op[i])->hide();
mpScreen->search(text_sv[i])->hide();
mpScreen->search(text_op[i])->hide();
}

for (int i = 0; i < 5; i++) {
Expand Down Expand Up @@ -1444,8 +1445,8 @@ void dMenu_Collect2D_c::screenSet() {
field_0x1d8[0][3] = field_0x184[0][3] + 0x100;
field_0x1d8[1][3] = field_0x184[1][3] + 0x100;
field_0x1d8[2][3] = 0x5b9;
field_0x1d8[2][3] = 0x5b1;
field_0x1d8[3][3] = 0;
field_0x1d8[3][3] = 0x5b1;
field_0x1d8[4][3] = 0;
field_0x1d8[5][3] = 0;
field_0x1d8[6][3] = 0;
field_0x1d8[0][4] = dMsgObject_getSmellTypeMessageID() + 0x100;
Expand Down

0 comments on commit cbf000d

Please sign in to comment.