Rename "overlay setup" to "game mode"

This commit is contained in:
Aetias
2025-07-04 20:57:03 +02:00
parent b7c6ae6e7c
commit fe0f15031d
5 changed files with 18 additions and 18 deletions
+8 -8
View File
@@ -9,7 +9,7 @@ struct UnkStruct_020ee698 {
};
extern UnkStruct_020ee698 data_ov000_020ee698;
struct OverlaySetup {
struct GameMode {
/* 00 */ unk8 mUnk_00;
/* 01 */ unk8 mUnk_01;
/* 02 */ unk8 mUnk_02;
@@ -22,7 +22,7 @@ struct OverlaySetup {
/* 18 */ void *mUnk_18;
/* 1c */
};
extern OverlaySetup gOverlaySetups[];
extern GameMode gGameModes[];
extern u32 *data_027e0ce0[];
extern "C" void func_ov007_02102850(u32 **);
@@ -54,21 +54,21 @@ THUMB void OverlayManager::Unload(OverlayIndex index) {
//! TODO: solve the .word issue with the overlay IDs
//! both functions should match otherwise
THUMB void OverlayManager::LoadOverlaySetup(s32 index) {
THUMB void OverlayManager::LoadGameMode(s32 mode) {
OverlayId overlayId;
OverlaySetup *pSetup;
GameMode *pSetup;
pSetup = &gOverlaySetups[index];
pSetup = &gGameModes[mode];
this->LoadIfNotLoaded(OverlayIndex_1, pSetup->slot1Overlay);
this->LoadIfNotLoaded(OverlayIndex_2, pSetup->slot2Overlay);
if (index == 5) {
if (mode == 5) {
func_ov007_02102850(data_027e0ce0);
} else {
overlayId = pSetup->slot12Overlay;
if (index == 6 && data_ov000_020ee698.mUnk_2c == 2) {
if (mode == 6 && data_ov000_020ee698.mUnk_2c == 2) {
overlayId = OverlayId_61;
}
@@ -77,7 +77,7 @@ THUMB void OverlayManager::LoadOverlaySetup(s32 index) {
}
}
THUMB void OverlayManager::UnloadOverlaySetup() {
THUMB void OverlayManager::UnloadGameMode() {
this->Unload(OverlayIndex_12);
this->Unload(OverlayIndex_3);