Batch #10208 by ragnarok-clanker: forced by an admin (10 lower score(s), 42 changed function(s)); checked with 119 compiled unit(s), including every includer of Source/Client/ModeBaseEvents.h, Source/Contents/Async/AsyncWorkMgr.h, Source/Contents/Configuration/ServiceConfiguration.h, Source/Contents/Party/AdventurerAgencyMgr.h, Source/Contents/Party/LoadPartyInfoAsyncWork.h, Source/Contents/Party/PartyJoinResult.h, Source/Contents/Party/RegisterPartyAsyncWork.h, Source/Contents/Party/StopRecruitingAsyncWork.h, Source/UI/Party/UIAdvenPartyBoardWnd.h, Source/UI/Party/UIApplyForPartyWnd.h, Source/UI/Party/UIPartyInfoWnd.h, Source/UI/Party/UIRegisterPartyWnd.h, Source/Contents/Party/AgencyRequestContext.h. Deletes: Source/Contents/Party/AgencyRequestContext.h
44 lines
1.4 KiB
C++
44 lines
1.4 KiB
C++
#include "Client/ModeBaseEvents.h"
|
|
#include "Client/Mode/ModeMgr.h"
|
|
#include "Contents/Configuration/ServiceConfiguration.h"
|
|
#include "Contents/Party/AdventurerAgencyMgr.h"
|
|
#include "Contents/UserData/AccountLinkedUserDataMgr.h"
|
|
#include "Contents/UserData/CharacterLinkedUserDataMgr.h"
|
|
|
|
#include <shellapi.h>
|
|
|
|
// OFFSET: 0x00AD7500
|
|
// FUNCTION: fn_17849
|
|
int ModeBaseEvents::Send(int event, const char* text, int, int, int) {
|
|
if (event == 2) {
|
|
g_accountLinkedUserDataMgr->Save(this->emotions, this->script, this->persistenceAccountId, this->renderSystem, this->token16, this->work);
|
|
if (g_modeMgr.state != 1) {
|
|
if (g_modeMgr.gameMode) {
|
|
g_modeMgr.gameMode->running = 0;
|
|
}
|
|
} else if (g_modeMgr.gameMode) {
|
|
g_characterLinkedUserDataMgr->Save(this->characterSave, this->token16, this->work);
|
|
if (g_modeMgr.state != 1) {
|
|
if (g_modeMgr.gameMode) {
|
|
g_modeMgr.gameMode->running = 0;
|
|
}
|
|
} else if (g_modeMgr.gameMode) {
|
|
g_adventurerAgencyMgr->RequestStop();
|
|
if (g_modeMgr.gameMode) {
|
|
g_modeMgr.gameMode->running = 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
if (g_serviceType == 11) {
|
|
ShellExecuteA(this->window, "open", "http://www.ragnarok.co.in/index.php", nullptr, nullptr, SW_SHOWNORMAL);
|
|
}
|
|
g_modeMgr.running = 0;
|
|
} else if (event == 68) {
|
|
this->transitionRequested = 1;
|
|
if (text) {
|
|
this->transitionName = text;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|