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.
This commit is contained in:
ragnarok-clanker 2026-11-10 16:56:17 +00:00
commit f5c43f09fc

View file

@ -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<std::char_traits<char>>(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<int>(entry - std::begin(fallback));
return entry != std::end(fallback) ? static_cast<int>(entry - std::begin(fallback)) : 0;
}
#pragma inline_depth()
// OFFSET: 0x0054F8A0
// FUNCTION: fn_01960