Batch #12417 by cremane: 0 byte-identical, 5 confirmed by peer review. - fn_03976 CEmblemDataMgr::CompleteUpload: logic confirmed by peer review - fn_03658 CAdventurerAgencyMgr::CompleteChangeMaster: logic confirmed by peer review - fn_03660 CAdventurerAgencyMgr::CompleteMyParty: logic confirmed by peer review - fn_03664 CAdventurerAgencyMgr::CompletePartyInfo: logic confirmed by peer review - fn_03662 CAdventurerAgencyMgr::CompleteList: logic confirmed by peer review Peer-reviewed-by: Yommy, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
32 lines
764 B
C++
32 lines
764 B
C++
#include "Contents/Party/AdventurerAgencyMgr.h"
|
|
#include "UI/Window/UIWindow.h"
|
|
#include "UI/Window/WindowManagerWindows.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, WindowManagerWindows& windows) {
|
|
--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 = windows.LookupWindow(324)) {
|
|
window->SendMsg(nullptr, 6, 415, 0, 0, 0);
|
|
}
|
|
}
|
|
}
|