Batch #10264 by ragnarok-clanker: forced by an admin (2 lower score(s), 29 changed function(s)); checked with 511 compiled unit(s), including every includer of Source/Client/Session.h, Source/Contents/Async/AsyncWorkMgr.h, Source/Contents/Hotkeys/EmotionHotkeys.h, Source/Contents/UserData/AccountLinkedUserDataLoadAsyncWork.h, Source/Contents/UserData/AccountLinkedUserDataMgr.h, Source/Contents/UserData/CharacterLinkedUserDataMgr.h, Source/Contents/UserData/NormalItemSlots.h, Source/Client/ModeBaseEvents.h, Source/Contents/UserData/AccountConfigLoad.h, Source/Contents/UserData/CharacterConfigSave.h. Deletes: Source/Client/ModeBaseEvents.h, Source/Contents/UserData/AccountConfigLoad.h, Source/Contents/UserData/CharacterConfigSave.h
44 lines
1.3 KiB
C++
44 lines
1.3 KiB
C++
#include "Client/Application/ApplicationWindow.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 CMode::SendMsg(int event, int argument1, int, int, int) {
|
|
if (event == 2) {
|
|
g_accountLinkedUserDataMgr->Save();
|
|
if (g_modeMgr.state != 1) {
|
|
if (g_modeMgr.gameMode) {
|
|
g_modeMgr.gameMode->running = 0;
|
|
}
|
|
} else if (g_modeMgr.gameMode) {
|
|
g_characterLinkedUserDataMgr->Save();
|
|
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(hWnd, "open", "http://www.ragnarok.co.in/index.php", nullptr, nullptr, SW_SHOWNORMAL);
|
|
}
|
|
g_modeMgr.running = 0;
|
|
} else if (event == 68) {
|
|
this->screenshotRequested = 1;
|
|
if (const char* text = reinterpret_cast<const char*>(argument1)) {
|
|
this->screenshotName = text;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|