From 10fa4cb0375c755dadf75266e920cdf1327cebf8 Mon Sep 17 00:00:00 2001 From: DodongoRex <257213629+DodongoRex@users.noreply.github.com> Date: Sat, 31 Jan 2026 17:55:32 -0500 Subject: [PATCH] Decompile func_80048C94 (marina) --- src/marina.c | 7 ++++++- versions/us1/mischiefmakers.yaml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/marina.c b/src/marina.c index 43c590e..a5d244a 100644 --- a/src/marina.c +++ b/src/marina.c @@ -1,5 +1,8 @@ #include "common.h" +extern s32 D_800D5794[]; +extern f32 D_800EF630; + #pragma GLOBAL_ASM("asm/nonmatchings/marina/func_80048600.s") #pragma GLOBAL_ASM("asm/nonmatchings/marina/func_800486F4.s") @@ -10,7 +13,9 @@ #pragma GLOBAL_ASM("asm/nonmatchings/marina/func_80048C28.s") -#pragma GLOBAL_ASM("asm/nonmatchings/marina/func_80048C94.s") +s32 func_80048C94(s32 index) { + return (s32)((f32)D_800D5794[index] * D_800EF630); +} #pragma GLOBAL_ASM("asm/nonmatchings/marina/func_80048CE4.s") diff --git a/versions/us1/mischiefmakers.yaml b/versions/us1/mischiefmakers.yaml index 35e0166..79ea488 100644 --- a/versions/us1/mischiefmakers.yaml +++ b/versions/us1/mischiefmakers.yaml @@ -97,7 +97,7 @@ segments: - [0x027F70, asm] # has to do with on screen text - [0x0438E0, asm] - [0x048A30, asm] - - [0x049200, asm, marina] + - [0x049200, c, marina] # marina code segment - [0x04FEB0, asm] - [0x059EA0, asm] - [0x05D120, asm]