Merge remote-tracking branch 'upstream/main' into displaytext

This commit is contained in:
Yanis002
2025-06-29 21:29:34 +02:00
274 changed files with 6030 additions and 2785 deletions
+4 -3
View File
@@ -3,17 +3,18 @@
DebugHierarchyBase::DebugHierarchyBase() {}
DebugHierarchyBase::~DebugHierarchyBase() {}
DebugHierarchyNode *DebugHierarchyBase::FindNode(u32 id) {}
bool DebugHierarchyBase::GetChildNode(unk32 param1, const char *description, u32 parent, s32 *param4) {}
bool DebugHierarchyBase::GetChildNode(unk32 param1, const char *description, u32 parent, s32 *param4, unk32 param5,
unk32 param6, unk32 param7, unk32 param8) {}
void DebugHierarchyBase::vfunc_08() {}
void DebugHierarchyBase::vfunc_0c() {}
void DebugHierarchyBase::vfunc_10() {}
void DebugHierarchyBase::vfunc_14() {}
void DebugHierarchyBase::vfunc_18() {}
void DebugHierarchyBase::vfunc_1c() {}
void DebugHierarchyBase::vfunc_20() {}
void DebugHierarchyBase::vfunc_20(unk32 param1, const char *param2, unk32 param3, unk32 param4, unk32 param5, unk32 param6) {}
void DebugHierarchyBase::vfunc_24() {}
void DebugHierarchyBase::vfunc_28() {}
void DebugHierarchyBase::vfunc_2c() {}
void DebugHierarchyBase::vfunc_30() {}
void DebugHierarchyBase::vfunc_38() {}
void DebugHierarchyBase::vfunc_3c() {}
void DebugHierarchyBase::vfunc_3c(unk32 param1, void *param2) {}
+1 -1
View File
@@ -1,5 +1,5 @@
#include "Player/LinkStateBase.hpp"
LinkStateBase *GetLinkState(s32 index) {
LinkStateBase *GetLinkState(LinkStateId index) {
return gLinkStates[index];
}
+86 -5
View File
@@ -1,7 +1,88 @@
#include "System/OverlayManager.hpp"
#include "global.h"
#include "nds/overlay.h"
void OverlayManager::Load(OverlayIndex index, OverlayId id) {}
void OverlayManager::LoadIfNotLoaded(OverlayIndex index, OverlayId id) {}
void OverlayManager::Unload(OverlayIndex index) {}
void OverlayManager::LoadOverlaySetup(s32 index) {}
void OverlayManager::UnloadOverlaySetup() {}
struct UnkStruct_020ee698 {
/* 00 */ unk8 mUnk_00[0x2C];
/* 2c */ unk32 mUnk_2c;
/* 30 */
};
extern UnkStruct_020ee698 data_ov000_020ee698;
struct OverlaySetup {
/* 00 */ unk8 mUnk_00;
/* 01 */ unk8 mUnk_01;
/* 02 */ unk8 mUnk_02;
/* 03 */ unk8 mUnk_03;
/* 04 */ OverlayId slot1Overlay;
/* 08 */ OverlayId slot2Overlay;
/* 0c */ OverlayId slot3Overlay;
/* 10 */ OverlayId slot12Overlay;
/* 14 */ void *mUnk_14;
/* 18 */ void *mUnk_18;
/* 1c */
};
extern OverlaySetup gOverlaySetups[];
extern u32 *data_027e0ce0[];
extern "C" void func_ov007_02102850(u32 **);
extern "C" void func_ov007_021028a0(u32 **);
THUMB void OverlayManager::Load(OverlayIndex index, OverlayId id) {
if (id != OverlayId_None) {
Overlay_Load(NULL, id);
}
this->mLoadedOverlays[index] = id;
}
THUMB void OverlayManager::LoadIfNotLoaded(OverlayIndex index, OverlayId id) {
OverlayId loadedId = this->mLoadedOverlays[index];
if (loadedId != id) {
this->Unload(index);
this->Load(index, id);
}
}
THUMB void OverlayManager::Unload(OverlayIndex index) {
if (this->mLoadedOverlays[index] != OverlayId_None) {
Overlay_Unload(NULL, this->mLoadedOverlays[index]);
this->mLoadedOverlays[index] = OverlayId_None;
}
}
//! TODO: solve the .word issue with the overlay IDs
//! both functions should match otherwise
THUMB void OverlayManager::LoadOverlaySetup(s32 index) {
OverlayId overlayId;
OverlaySetup *pSetup;
pSetup = &gOverlaySetups[index];
this->LoadIfNotLoaded(OverlayIndex_1, pSetup->slot1Overlay);
this->LoadIfNotLoaded(OverlayIndex_2, pSetup->slot2Overlay);
if (index == 5) {
func_ov007_02102850(data_027e0ce0);
} else {
overlayId = pSetup->slot12Overlay;
if (index == 6 && data_ov000_020ee698.mUnk_2c == 2) {
overlayId = OverlayId_61;
}
this->Load(OverlayIndex_3, pSetup->slot3Overlay);
this->Load(OverlayIndex_12, overlayId);
}
}
THUMB void OverlayManager::UnloadOverlaySetup() {
this->Unload(OverlayIndex_12);
this->Unload(OverlayIndex_3);
if (this->mLoadedOverlays[2] == OverlayId_07) {
func_ov007_021028a0(data_027e0ce0);
this->Unload(OverlayIndex_2);
}
}
+1 -1
View File
@@ -238,7 +238,7 @@ THUMB void UnkStruct_02063220::func_0202f754(unk32 param1) {
data_027e08f8.func_0202f9a0(1);
}
uVar1 = data_027e05f8.mUnk_02;
uVar1 = data_027e05f8.mUnk_2;
uVar4 = data_020562e2[this->mUnk_04];
bVar5 = (uVar1 & uVar4) != 0;