rodecomp/Source/Contents/Party/ChangePartyMasterCompletion.cpp
ragnarok-clanker 36b0e20902 Maintenance: Forced resubmit of batch 17078 (same payload; supersedes it). Class layouts/signatures from binary evidence: CChangePart
Batch #17079 by ragnarok-clanker: forced by an admin (45 lower score(s), 85 changed function(s)); checked with 95 compiled unit(s), including every includer of Source/Contents/Async/AsyncWorkMgr.h, Source/Contents/Emblems/EmblemDataDownloadAsyncWork.h, Source/Contents/Party/AdventurerAgencyMgr.h, Source/Contents/Party/ChangePartyMasterAsyncWork.h, Source/Contents/Party/LoadMyPartyAsyncWork.h, Source/Render/DeviceContext/DCSurface.h.
2026-11-11 13:28:21 +00:00

34 lines
842 B
C++

#include "UI/Window/WindowId.h"
#include "UI/Window/UIEnums.h"
#include "Contents/Party/AdventurerAgencyMgr.h"
#include "UI/Window/UIWindow.h"
#include "UI/Window/UIWindowMgr.h"
#include "Utility/Async/AsyncDiagnostic.h"
#include <json/reader.h>
#include <json/value.h>
// OFFSET: 0x005CB520
// FUNCTION: fn_03658
void CAdventurerAgencyMgr::CompleteChangeMaster(AsyncDiagnostic diagnostic, std::string response) {
--this->pending;
if (!diagnostic.success) {
return;
}
Json::Value root;
Json::Reader reader;
if (!reader.parse(response.c_str(), root, true)) {
return;
}
const int type = root["Type"].asInt();
if (type != 2 && type != 3) {
if (UIWindow* window = g_windowMgr.LookupWindow(WID_ADVENPARTYBOARDWND)) {
window->SendMsg(nullptr, UM_COMMAND, ID_PARTY_RELOAD_FIRST_PAGE, 0, 0, 0);
}
}
}