Decomped ov28_0238A58C

Decomped by @taxicat1
This commit is contained in:
AnonymousRandomPerson
2025-09-07 23:37:58 -04:00
parent 92cde4bc3f
commit 520ae97054
12 changed files with 654 additions and 629 deletions

View File

@@ -1,7 +1,7 @@
#include "overlay_13_EntryOverlay13.h"
extern void* MemAlloc(u32 len, u32 flags);
extern void* MemFree(void *);
extern void MemFree(void* ptr);
void sub_0201F2E4(void);
void sub_020348E4(const u8 *);
extern void ov11_022E6E8C(u32);

View File

@@ -5,7 +5,7 @@ extern unkStruct_ov15_0238AE6C* OVERLAY15_UNKNOWN_POINTER__NA_238B180;
extern void ov15_0238AD78(u8);
extern u16 ov15_0238A140(void);
extern void Debug_Print0(const char* fmt);
extern void MemFree(void*);
extern void MemFree(void* ptr);
extern int ov15_0238A234(void);
extern int IsDialogueBoxActive(s8);
extern void HidePortraitBox(int);
@@ -23,7 +23,7 @@ void ov15_0238AE6C(void) {
s32 ov15_0238AE88(void) {
ov15_0238A140();
return 1;
return 1;
}
const char ov15_0238B11C[] = "mes not close\n";
@@ -33,21 +33,21 @@ const char ov15_0238B150[] = "Input not close\n";
void ov15_0238AE98(void) {
if (OVERLAY15_UNKNOWN_POINTER__NA_238B180 == NULL)
if (OVERLAY15_UNKNOWN_POINTER__NA_238B180 == NULL)
return;
if (OVERLAY15_UNKNOWN_POINTER__NA_238B180->unk80 != -2)
if (OVERLAY15_UNKNOWN_POINTER__NA_238B180->unk80 != -2)
Debug_Print0(ov15_0238B11C);
if (OVERLAY15_UNKNOWN_POINTER__NA_238B180->unk82 != -2)
if (OVERLAY15_UNKNOWN_POINTER__NA_238B180->unk82 != -2)
Debug_Print0(ov15_0238B12C);
if (OVERLAY15_UNKNOWN_POINTER__NA_238B180->unk83 != -2)
if (OVERLAY15_UNKNOWN_POINTER__NA_238B180->unk83 != -2)
Debug_Print0(ov15_0238B13C);
if (OVERLAY15_UNKNOWN_POINTER__NA_238B180->unk84 != -2)
if (OVERLAY15_UNKNOWN_POINTER__NA_238B180->unk84 != -2)
Debug_Print0(ov15_0238B150);
MemFree(OVERLAY15_UNKNOWN_POINTER__NA_238B180);
OVERLAY15_UNKNOWN_POINTER__NA_238B180 = NULL;
}
@@ -60,7 +60,7 @@ int ov15_0238AF54(void) {
OVERLAY15_UNKNOWN_POINTER__NA_238B180 -> unk0 = 1;
break;
case 1:
if (ov15_0238A234() == 3)
if (ov15_0238A234() == 3)
OVERLAY15_UNKNOWN_POINTER__NA_238B180 -> unk0 = 2;
break;
case 2:
@@ -81,7 +81,7 @@ int ov15_0238AF54(void) {
break;
case 3:
ov11_022E6E68();
return 4;
return 4;
}
return 1;
}

21
src/overlay_28_0238A58C.c Normal file
View File

@@ -0,0 +1,21 @@
#include "overlay_28_0238A58C.h"
extern void* ov28_0238AD80;
extern void ov28_0238AB5C(s32);
extern void sub_02025C14();
extern void sub_02027170();
extern void sub_02027228();
extern void MemFree(void* ptr);
void ov28_0238A58C(void)
{
ov28_0238AB5C(0);
sub_02025C14();
sub_02027170();
sub_02027228();
if (ov28_0238AD80 != NULL) {
MemFree(ov28_0238AD80);
ov28_0238AD80 = NULL;
}
}

View File

@@ -50,7 +50,7 @@ extern struct struct_1* sub_0202ABB0(s8);
extern void CloseTextBox(s8);
extern void CloseParentMenu(s8);
extern void MemFree(void*);
extern void MemFree(void* ptr);
extern void ov29_022EA428(u32, u32);
extern void AdvanceFrame(u8);

View File

@@ -13,7 +13,7 @@ extern s32 sub_020282F4(s8);
extern void CloseInventoryMenu(s8);
extern void ov29_0234E988(u8*);
extern void CloseTextBox2();
extern void MemFree(void*);
extern void MemFree(void* ptr);
extern void DrawTextInWindow(struct window*, u32, u32, u8*);
u8 ov31_0238372C(struct position* x)