From f83ce0e2445aedf021b6ac6ee4c2a2f2875bbcc7 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 28 Oct 2026 19:19:26 +0000 Subject: [PATCH] Maintenance: Define g_fontCache (gl_24541, 0x1387434). The dynamic initializer at 0x405400 builds it in place by inlining the FontCac Batch #1649 by ragnarok-clanker: no function's compiled code changes; checked with 3 compiled unit(s), including every includer of Source/Render/Text/FontCache.h. --- Source/Render/Text/FontCache.cpp | 3 +++ Source/Render/Text/FontCache.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Source/Render/Text/FontCache.cpp b/Source/Render/Text/FontCache.cpp index 53c9a75..513769b 100644 --- a/Source/Render/Text/FontCache.cpp +++ b/Source/Render/Text/FontCache.cpp @@ -36,6 +36,9 @@ namespace { } } +// GLOBAL: gl_24541 +FontCache g_fontCache; + // OFFSET: 0x0054D530 // FUNCTION: fn_01935 FontCache::FontCache() { diff --git a/Source/Render/Text/FontCache.h b/Source/Render/Text/FontCache.h index b6d808f..0d786dd 100644 --- a/Source/Render/Text/FontCache.h +++ b/Source/Render/Text/FontCache.h @@ -61,4 +61,6 @@ static_assert(offsetof(FontEntry, font) == 0x0010); static_assert(offsetof(FontEntry, privateResources) == 0x0014); #endif +extern FontCache g_fontCache; + #endif