summaryrefslogtreecommitdiff
path: root/src/KingSystem/ActorSystem/actBaseProc.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-03-12 01:17:24 +0100
committerLéo Lam <leo@leolam.fr>2021-03-12 01:23:14 +0100
commit1e4f1902c05abbe57932f27e7469e91c74812ce9 (patch)
tree6d73a523702a4812f92fa9d7a61e349e205ee242 /src/KingSystem/ActorSystem/actBaseProc.cpp
parentb90017bf3b3e0839dc45caed5f8f8f6ed6bbec9d (diff)
ksys/act: Fix pre-delete function signature
Tiny differences you only notice when doing matching decomp.
Diffstat (limited to 'src/KingSystem/ActorSystem/actBaseProc.cpp')
-rw-r--r--src/KingSystem/ActorSystem/actBaseProc.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/KingSystem/ActorSystem/actBaseProc.cpp b/src/KingSystem/ActorSystem/actBaseProc.cpp
index 6e1bea55..4342a9d9 100644
--- a/src/KingSystem/ActorSystem/actBaseProc.cpp
+++ b/src/KingSystem/ActorSystem/actBaseProc.cpp
@@ -189,7 +189,7 @@ void BaseProc::onEnterDelete_() {}
void BaseProc::onEnterSleep_() {}
-void BaseProc::preDelete3_(bool*) {}
+void BaseProc::preDelete3_(const PreDeleteArg& arg) {}
bool BaseProc::prepareInit_(sead::Heap*, BaseProc::PrepareArg&) {
return true;
@@ -197,7 +197,7 @@ bool BaseProc::prepareInit_(sead::Heap*, BaseProc::PrepareArg&) {
void BaseProc::onPreDeleteStart_(PrepareArg&) {}
-void BaseProc::preDelete2_(bool*) {}
+void BaseProc::preDelete2_(const PreDeleteArg& arg) {}
void BaseProc::preDelete1_() {}
@@ -475,12 +475,12 @@ void BaseProc::freeLinkData() {
BaseProcLinkDataMgr::instance()->releaseLink(this);
}
-void BaseProc::doPreDelete(bool* do_not_destruct_immediately) {
+void BaseProc::doPreDelete(const PreDeleteArg& arg) {
preDelete1_();
- preDelete2_(do_not_destruct_immediately);
- preDelete3_(do_not_destruct_immediately);
+ preDelete2_(arg);
+ preDelete3_(arg);
- if (*do_not_destruct_immediately)
+ if (arg.do_not_destruct_immediately)
return;
mFlags.set(Flags::Destructed);