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:
Léo Lam
2026-09-28 03:39:30 +02:00
parent f4cd38c43b
commit e70ecefe40
4 changed files with 8 additions and 2 deletions
+1
View File
@@ -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)
-1
View File
@@ -75,7 +75,6 @@ target_sources(uking PRIVATE
Debug.h
FixedString.h
HashUtil.h
HeapUtil.cpp
HeapUtil.h
InitTimeInfo.h
IteratorUtil.h
+3
View File
@@ -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