rodecomp/Source/Contents/UserData/AccountService.cpp
ragnarok-clanker 454304132f Maintenance: Fix LNK2001/2019: batch 18550 declared CSession::ResolveAccountServiceBase() but fn_23360 was defined as a free 5-arg fu
Batch #18595 by ragnarok-clanker: forced by an admin (0 lower score(s), 6 changed function(s)); checked with 6 compiled unit(s).
2026-11-12 16:23:16 +00:00

24 lines
719 B
C++

#include "Client/Session/Session.h"
#include "Contents/Configuration/ServiceConfiguration.h"
#include "Script/LuaScript.h"
// OFFSET: 0x00DDBB60
// FUNCTION: fn_23360
std::string CSession::ResolveAccountServiceBase() {
std::string address = this->m_hotkeyScript->GlobalString("AssistAddr");
if (!address.empty()) {
return address;
}
std::string key = std::string(g_serviceHost) + ":" + g_servicePort;
if (g_serviceOverrideKey && *g_serviceOverrideKey) {
key = g_serviceOverrideKey;
}
const char* resolved = nullptr;
if (this->m_hotkeyScript->Call("GetTableStringValueForC", "ss>s", "AssistAddrTbl", key.c_str(), &resolved) && resolved && *resolved) {
return resolved;
}
return {};
}