summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAetias <aetias@outlook.com>2025-07-04 20:57:03 +0200
committerAetias <aetias@outlook.com>2025-07-04 20:57:03 +0200
commitfe0f15031d96b065ba176b3207c5b1e418da243b (patch)
treeb95bf631bc39e5bcaf0df9662c9db000c378a698 /src
parentb7c6ae6e7c5dc5b9994d48d7c9dabf7bf3b9fa9c (diff)
Rename "overlay setup" to "game mode"
Diffstat (limited to 'src')
-rw-r--r--src/Main/System/OverlayManager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Main/System/OverlayManager.cpp b/src/Main/System/OverlayManager.cpp
index 5295fa2d..4f7da68c 100644
--- a/src/Main/System/OverlayManager.cpp
+++ b/src/Main/System/OverlayManager.cpp
@@ -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);