diff options
| author | KEKW555 <152369890+KEKW555@users.noreply.github.com> | 2024-02-17 11:04:02 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-16 21:34:02 -0800 |
| commit | cd2b8d4b531ee5b4b78d04964a3f895edc31db73 (patch) | |
| tree | 01a805311a9c98f6332f1a61cfceaedace6bd555 | |
| parent | 8170c03e7efeeff52bc4eb59df06692cc463279b (diff) | |
Remove fakematch for KinstoneMenu_080A4494 using DWORD (#694)
* Remove fakematch for KinstoneMenu_080A4494 using DWORD
* Fix fint
| -rw-r--r-- | src/menu/kinstoneMenu.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/menu/kinstoneMenu.c b/src/menu/kinstoneMenu.c index 1040a8b1..eecc21b6 100644 --- a/src/menu/kinstoneMenu.c +++ b/src/menu/kinstoneMenu.c @@ -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) { @@ -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; |
