rodecomp/Source/Contents/UserData/AccountService.cpp
ragnarok-clanker cabaf32ebb Decompile 3 functions in Source/Client/Session/Session.h, Source/Contents/Emblems/EmblemDataMgr.cpp, ...
Batch #18550 by eAthena: 1 byte-identical, 2 confirmed by peer review.

- fn_03655 CAdventurerAgencyMgr::ServiceUrl: logic confirmed by peer review
- fn_03931 CCharacterLinkedUserDataMgr::RefreshUrls: byte-identical
- fn_04237 CMCStoreInfoBackup::Reset: logic confirmed by peer review

Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-12 15:47:34 +00:00

25 lines
781 B
C++

#include "Contents/UserData/AccountService.h"
#include "Client/Session/Session.h"
#include "Contents/Configuration/ServiceConfiguration.h"
#include "Script/LuaScript.h"
// OFFSET: 0x00DDBB60
// FUNCTION: fn_23360
std::string ResolveAccountServiceBase(LuaScript& settings, LuaScript& tables, const char* host, const char* port, const char* overrideKey) {
std::string address = settings.GlobalString("AssistAddr");
if (!address.empty()) {
return address;
}
std::string key = std::string(host) + ":" + port;
if (overrideKey && *overrideKey) {
key = overrideKey;
}
const char* resolved = nullptr;
if (tables.Call("GetTableStringValueForC", "ss>s", "AssistAddrTbl", key.c_str(), &resolved) && resolved && *resolved) {
return resolved;
}
return {};
}