mirror of
https://github.com/zeldaret/botw
synced 2026-06-11 13:10:05 -04:00
ksys: Add HavokWorkerMgr stub
This commit is contained in:
@@ -2,6 +2,8 @@ target_sources(uking PRIVATE
|
||||
Account.cpp
|
||||
Account.h
|
||||
DebugMessage.h
|
||||
HavokWorkerMgr.cpp
|
||||
HavokWorkerMgr.h
|
||||
KingEditor.h
|
||||
OverlayArena.cpp
|
||||
OverlayArena.h
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
#include "KingSystem/System/HavokWorkerMgr.h"
|
||||
|
||||
namespace ksys {
|
||||
|
||||
SEAD_SINGLETON_DISPOSER_IMPL(HavokWorkerMgr)
|
||||
|
||||
HavokWorkerMgr::~HavokWorkerMgr() = default;
|
||||
|
||||
u32 HavokWorkerMgr::getWorkerThreadId(int idx) const {
|
||||
return mWorkers[idx]->getId();
|
||||
}
|
||||
|
||||
} // namespace ksys
|
||||
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <heap/seadDisposer.h>
|
||||
#include <mc/seadWorkerMgr.h>
|
||||
#include "KingSystem/Utils/Types.h"
|
||||
|
||||
namespace ksys {
|
||||
|
||||
class HavokWorkerMgr : public sead::WorkerMgr {
|
||||
SEAD_SINGLETON_DISPOSER(HavokWorkerMgr)
|
||||
HavokWorkerMgr() = default;
|
||||
~HavokWorkerMgr() override;
|
||||
|
||||
public:
|
||||
// TODO: implement. This is almost exactly the same as sead::WorkerMgr::initialize
|
||||
// but with a custom Worker class that calls out to Havok.
|
||||
void initialize(const InitializeArg& arg) override;
|
||||
|
||||
u32 getWorkerThreadId(int idx) const;
|
||||
};
|
||||
KSYS_CHECK_SIZE_NX150(HavokWorkerMgr, 0xd8);
|
||||
|
||||
} // namespace ksys
|
||||
Reference in New Issue
Block a user