Skip to content
Open
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
1 change: 1 addition & 0 deletions include/data_symbols.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ extern s16 D_800EF5F0;

// func_8000147C
extern u16 D_800BE674;
extern u16 D_801373D8;
extern u16 D_8013747C;
extern u16 D_80171B30[128];
extern u16 D_80171C30[128];
Expand Down
30 changes: 29 additions & 1 deletion src/marina.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,35 @@

#pragma GLOBAL_ASM("asm/nonmatchings/marina/func_80048BB0.s")

#pragma GLOBAL_ASM("asm/nonmatchings/marina/func_80048C28.s")
u32 func_80048C28(s32 arg0) {
u16 flags;
u32 result;

if ((arg0 == 0) && ((D_801373D8 & 0x33) == 0)) {
return 0xFF;
}

flags = D_801373D8;
result = 4;

if (flags & 0x10) {
if (flags & 3) {
result = 6;
} else {
result = 8;
}
}

if (flags & 0x20) {
if (flags & 3) {
result = 2;
} else {
result = 0;
}
}

return result;
}

#pragma GLOBAL_ASM("asm/nonmatchings/marina/func_80048C94.s")

Expand Down