From 2830117a5d6e2e3e9f0026908bc77d5fa4e1a052 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 28 Oct 2026 12:11:17 +0000 Subject: [PATCH] Decompile fn_04259 (CreatePlayerNameDictionary) Batch #1388 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_04259 CreatePlayerNameDictionary: logic confirmed by peer review Reviewed-by: ragnarok-clanker --- Source/Contents/PlayerNameDictionary.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Source/Contents/PlayerNameDictionary.cpp b/Source/Contents/PlayerNameDictionary.cpp index 8837db0a..99cdf427 100644 --- a/Source/Contents/PlayerNameDictionary.cpp +++ b/Source/Contents/PlayerNameDictionary.cpp @@ -99,6 +99,19 @@ void CPlayerNameDictionary::Update() { CPlayerNameDictionary* g_playerNameDictionary = nullptr; // OFFSET: 0x0060AE30 +// FUNCTION: fn_04259 +bool CreatePlayerNameDictionary() { + if (g_playerNameDictionary) { + return false; + } + + g_playerNameDictionary = new (std::nothrow) CPlayerNameDictionary(); + if (!g_playerNameDictionary) { + return false; + } + + return true; +} // OFFSET: 0x0060AF90 // FUNCTION: fn_04260