From f5c43f09fcae8c5ef99ec6bedd1553223e3d5b34 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 16:56:17 +0000 Subject: [PATCH] Decompile fn_01959 (FallbackFontIndex) Batch #16332 by youko: 1 byte-identical, 0 confirmed by peer review. - fn_01959 FallbackFontIndex: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Render/Text/FontCache.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Render/Text/FontCache.cpp b/Source/Render/Text/FontCache.cpp index ccb4284c0..fc4eef41c 100644 --- a/Source/Render/Text/FontCache.cpp +++ b/Source/Render/Text/FontCache.cpp @@ -256,7 +256,8 @@ HFONT FontCache::Get(int family, int height, unsigned charset, unsigned char bol return entry.font; } -#pragma inline_depth(0) +extern template bool std::_Traits_equal>(const char*, std::size_t, const char*, std::size_t) noexcept; + // OFFSET: 0x0054F830 // FUNCTION: fn_01959 int FallbackFontIndex(const std::string& name) { @@ -268,9 +269,8 @@ int FallbackFontIndex(const std::string& name) { } } - return entry == std::end(fallback) ? 0 : static_cast(entry - std::begin(fallback)); + return entry != std::end(fallback) ? static_cast(entry - std::begin(fallback)) : 0; } -#pragma inline_depth() // OFFSET: 0x0054F8A0 // FUNCTION: fn_01960