rodecomp/Source/Contents/ClientXmlTables.cpp
ragnarok-clanker 7a88edb84c Decompile fn_23848 (CSession::LoadXmlTables)
Batch #1684 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_23848 CSession::LoadXmlTables: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
Adds to the build: Source/Contents/ClientXmlTables.cpp
2026-10-28 20:23:55 +00:00

28 lines
1,009 B
C++

#include "Client/Input/InputCharset.h"
#include "Client/Session.h"
#include "File/File.h"
#include "Resource/XmlNode.h"
// OFFSET: 0x00E1A2B0
// FUNCTION: fn_23848
void CSession::LoadXmlTables() {
CFile petTalkFile;
petTalkFile.Open(g_serverLanguage->ServiceName("PetTalkTable.xml"), 0, true, false);
const char* petTalk = static_cast<const char*>(petTalkFile.GetData());
this->m_petTalkTable.Parse(petTalk, petTalk + petTalkFile.GetSize());
petTalkFile.Close();
CFile skillFile;
if (skillFile.Open("MonsterSkillInfo.xml", 0, true, false)) {
const char* skillInfo = static_cast<const char*>(skillFile.GetData());
this->m_monsterSkillInfo.Parse(skillInfo, skillInfo + skillFile.GetSize());
skillFile.Close();
}
CFile talkFile;
if (talkFile.Open("MonsterTalkTable.xml", 0, true, false)) {
const char* monsterTalk = static_cast<const char*>(talkFile.GetData());
this->m_monsterTalkTable.Parse(monsterTalk, monsterTalk + talkFile.GetSize());
talkFile.Close();
}
}