summaryrefslogtreecommitdiff
path: root/include/toBeSorted
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2025-11-23 15:59:09 +0100
committerrobojumper <robojumper@gmail.com>2025-11-23 16:00:59 +0100
commit88075f00a9a1e021f3eb0e9b88e86a8396ceac17 (patch)
tree2d5ce963d4d14e863caaeaf1aaeca1e373547ff0 /include/toBeSorted
parent57557d11285aeff9ffd86c6e57fdc09b62b391d1 (diff)
d_lyt_control_game OK
Diffstat (limited to 'include/toBeSorted')
-rw-r--r--include/toBeSorted/d_beacon.h2
-rw-r--r--include/toBeSorted/event_manager.h1
-rw-r--r--include/toBeSorted/raii_ptr.h7
3 files changed, 10 insertions, 0 deletions
diff --git a/include/toBeSorted/d_beacon.h b/include/toBeSorted/d_beacon.h
index b963d98a..a0e0d588 100644
--- a/include/toBeSorted/d_beacon.h
+++ b/include/toBeSorted/d_beacon.h
@@ -19,4 +19,6 @@ void setBeaconPositionChecked(const mVec3_c *position, u32 beaconIndex);
/** Checks whether the current stage is ineligible for beacon placement */
bool doesStageForbidBeaconPlacement();
+const mVec3_c *getBeaconPosition(u32 beaconIndex);
+
#endif
diff --git a/include/toBeSorted/event_manager.h b/include/toBeSorted/event_manager.h
index d1c8bae8..1b89074f 100644
--- a/include/toBeSorted/event_manager.h
+++ b/include/toBeSorted/event_manager.h
@@ -52,6 +52,7 @@ public:
// Something like isActorInEvent maybe?
static bool FUN_800a0570(const dAcBase_c *actor);
static bool FUN_800a0ba0();
+ static bool fn_8009F990();
private:
/* 0x000 */ u8 _000[0x084 - 0x000];
diff --git a/include/toBeSorted/raii_ptr.h b/include/toBeSorted/raii_ptr.h
index 31d8ac21..22bab4d4 100644
--- a/include/toBeSorted/raii_ptr.h
+++ b/include/toBeSorted/raii_ptr.h
@@ -17,6 +17,13 @@ public:
}
}
+ void destruct() {
+ if (mPtr != nullptr) {
+ delete mPtr;
+ mPtr = nullptr;
+ }
+ }
+
void operator=(T *ptr) {
mPtr = ptr;
}