mirror of
https://github.com/zeldaret/botw
synced 2026-10-12 06:26:42 -04:00
98f0c80f1d
They link in the same block as the plain-ksys:: Message family. getItemValue and applyScreenFade sit in engine UI TUs, hence ksys::ui. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
30 lines
764 B
C++
30 lines
764 B
C++
#include "KingSystem/Resource/resControlTask.h"
|
|
#include "KingSystem/Resource/resSystem.h"
|
|
|
|
namespace ksys::res {
|
|
|
|
ControlTask::ControlTask(sead::Heap* heap) : ManagedTask(heap) {}
|
|
|
|
void ControlTask::onRun_() {}
|
|
|
|
void ControlTask::prepareImpl_(TaskRequest* req_) {
|
|
auto* req = static_cast<ControlTaskRequest*>(req_);
|
|
|
|
mData.mHasResLoadReq = req->mHasResLoadReq;
|
|
mData.mPackResUnit = req->mPackResUnit;
|
|
mData.mResHandle = req->mResHandle;
|
|
mData.mResPath = req->mResPath;
|
|
mData.mResLoadReq = req->mResLoadReq;
|
|
mData.mResLoadReq.mPath = mData.mResPath;
|
|
|
|
if (getUserData() == nullptr)
|
|
setUserData(&mData);
|
|
}
|
|
|
|
void ControlTask::preRemoveImpl_() {
|
|
if (returnFalse())
|
|
stubbedLogFunction();
|
|
}
|
|
|
|
} // namespace ksys::res
|