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).
25 lines
781 B
C++
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 {};
|
|
}
|