From 8b0ea441e654aa575f8975a2a60bcd593d88bd19 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 14:29:42 +0000 Subject: [PATCH] Decompile fn_04391 (IsMapDisplayNameTranslated) Batch #8131 by pedrao: 0 byte-identical, 1 confirmed by peer review. - fn_04391 IsMapDisplayNameTranslated: logic confirmed by peer review Peer-reviewed-by: eAthena, Yommy, secret Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/WorldView/WorldViewData.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/Contents/WorldView/WorldViewData.cpp b/Source/Contents/WorldView/WorldViewData.cpp index 9ff9804b..ad7ca3e7 100644 --- a/Source/Contents/WorldView/WorldViewData.cpp +++ b/Source/Contents/WorldView/WorldViewData.cpp @@ -1,6 +1,8 @@ #include "Contents/WorldView/WorldViewData.h" #include "Client/Mode/CMode.h" #include "Client/Mode/ModeMgr.h" +#include "Client/Session.h" +#include "Contents/MessageTable.h" #include "Render/Renderer.h" #include "Render/Textures/Texture.h" #include "Render/Textures/TextureCache.h" @@ -570,3 +572,11 @@ int CWorldViewMgr::LevelCount() { CWorldViewWorld* CWorldViewMgr::CurrentWorld() { return this->worlds[this->currentWorld]; } + +// OFFSET: 0x00617950 +// FUNCTION: fn_04391 +bool IsMapDisplayNameTranslated(const char* mapName) { + const std::string placeholder = LookupMessage(0xBB); + const std::string displayName = g_session.GetMapDisplayName(mapName); + return placeholder != displayName; +}