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).
This commit is contained in:
parent
8bcb6b370d
commit
8b0ea441e6
1 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue