#include "Contents/Party/AdventurerAgencyMgr.h" #include "Utility/Async/AsyncDiagnostic.h" #include "Contents/MessageTable.h" #include "UI/Window/UIWindow.h" #include "UI/Window/UIWindowMgr.h" #include #include // OFFSET: 0x005CCD20 // FUNCTION: fn_03666 void CAdventurerAgencyMgr::CompleteRegistration(AsyncDiagnostic diagnostic, std::string response) { --this->pending; if (!diagnostic.success) { return; } Json::Value root; Json::Reader reader; const std::string document(response.c_str()); if (!reader.parse(document, root, true)) { return; } const int type = root["Type"].asInt(); if (type == 2 || type == 3) { g_windowMgr.SendNotice(1, reinterpret_cast(LookupMessage(3417)), 0xFF, 0, 0, 0); return; } this->registered = true; g_windowMgr.SendNotice(1, reinterpret_cast(LookupMessage(3418)), 0xFFFF64, 0, 0, 0); UIWindow* board = g_windowMgr.LookupWindow(324); if (board) { board->SendMsg(nullptr, 6, 415, 0, 0, 0); } else { g_windowMgr.EnsureWindow(324); } }