Skip to content

Commit

Permalink
Remove fakematch for KinstoneMenu_080A4494 using DWORD (#694)
Browse files Browse the repository at this point in the history
* Remove fakematch for KinstoneMenu_080A4494 using DWORD

* Fix fint
  • Loading branch information
KEKW555 authored Feb 17, 2024
1 parent 8170c03 commit cd2b8d4
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/menu/kinstoneMenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,10 @@ void KinstoneMenu_080A4468(void) {

u32 KinstoneMenu_080A4494(void) {
WStruct* psVar1;
u8* r1;
u32 ret;
union SplitDWord multiVal;
// TODO: Change this to union of u8* and u32
u8* fuserTextId;

psVar1 = sub_0805F2C8();
if (psVar1 != NULL) {
Expand All @@ -639,13 +641,9 @@ u32 KinstoneMenu_080A4494(void) {
psVar1->bgColor = 5;
psVar1->unk1 = 0;
sub_080A44E0(psVar1, gSave.name, 0x80);
#if NON_MATCHING
ret = sub_080A44E0(psVar1, GetFuserId(gFuseInfo.entity) >> 0x20, 0xa0);
#else
GetFuserId(gFuseInfo.entity);
asm("" : "=r"(r1));
ret = sub_080A44E0(psVar1, r1, 0xa0);
#endif
multiVal = GetFuserIdAndFuserTextId(gFuseInfo.entity);
fuserTextId = (u8*)multiVal.HALF_U.HI;
ret = sub_080A44E0(psVar1, fuserTextId, 0xa0);
sub_0805F300(psVar1);
}
return ret;
Expand Down

0 comments on commit cd2b8d4

Please sign in to comment.