mirror of
https://github.com/zeldaret/botw
synced 2026-10-09 13:37:01 -04:00
vlt: move the heap helpers into vltLayerMgrTask.cpp
The binary defines the HeapUtil.h helpers at the start of the LayerMgrTask TU: their statics sit just before LayerMgrTask::sInstance. (AI assisted using Claude Fable 5.1 and Claude Opus 5.5)
This commit is contained in:
@@ -17,6 +17,7 @@ add_subdirectory(Sound)
|
||||
add_subdirectory(System)
|
||||
add_subdirectory(Terrain)
|
||||
add_subdirectory(Utils)
|
||||
add_subdirectory(Volante)
|
||||
add_subdirectory(World)
|
||||
add_subdirectory(XLink)
|
||||
|
||||
|
||||
@@ -75,7 +75,6 @@ target_sources(uking PRIVATE
|
||||
Debug.h
|
||||
FixedString.h
|
||||
HashUtil.h
|
||||
HeapUtil.cpp
|
||||
HeapUtil.h
|
||||
InitTimeInfo.h
|
||||
IteratorUtil.h
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
target_sources(uking PRIVATE
|
||||
vltLayerMgrTask.cpp
|
||||
)
|
||||
@@ -1,7 +1,10 @@
|
||||
#include "KingSystem/Utils/HeapUtil.h"
|
||||
#include <heap/seadHeapMgr.h>
|
||||
#include <thread/seadThread.h>
|
||||
#include "KingSystem/Utils/HeapUtil.h"
|
||||
|
||||
// The heap helpers declared in HeapUtil.h are defined at the start of this TU in the original
|
||||
// binary: they follow a static initializer, their statics sit right before LayerMgrTask::sInstance
|
||||
// and they are out-of-line.
|
||||
namespace ksys::util {
|
||||
|
||||
// Name, layout and purpose unknown; this is stubbed in release builds
|
||||
Reference in New Issue
Block a user