Maintenance: [forced, user-approved] Family G30: remove ModeBaseEvents, CharacterConfigSave, AccountConfigLoad. ModeBaseEvents::Send

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
This commit is contained in:
ragnarok-clanker 2026-11-03 14:13:27 +00:00
commit 749039eea6
28 changed files with 101 additions and 211 deletions

View file

@ -1,4 +1,4 @@
#include "Client/ModeBaseEvents.h"
#include "Client/Application/ApplicationWindow.h"
#include "Client/Mode/ModeMgr.h"
#include "Contents/Configuration/ServiceConfiguration.h"
#include "Contents/Party/AdventurerAgencyMgr.h"
@ -9,15 +9,15 @@
// OFFSET: 0x00AD7500
// FUNCTION: fn_17849
int ModeBaseEvents::Send(int event, const char* text, int, int, int) {
int CMode::SendMsg(int event, int argument1, int, int, int) {
if (event == 2) {
g_accountLinkedUserDataMgr->Save(this->emotions, this->script, this->persistenceAccountId, this->renderSystem, this->token16, this->work);
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(this->characterSave, this->token16, this->work);
g_characterLinkedUserDataMgr->Save();
if (g_modeMgr.state != 1) {
if (g_modeMgr.gameMode) {
g_modeMgr.gameMode->running = 0;
@ -31,13 +31,13 @@ int ModeBaseEvents::Send(int event, const char* text, int, int, int) {
}
if (g_serviceType == 11) {
ShellExecuteA(this->window, "open", "http://www.ragnarok.co.in/index.php", nullptr, nullptr, SW_SHOWNORMAL);
ShellExecuteA(hWnd, "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;
this->screenshotRequested = 1;
if (const char* text = reinterpret_cast<const char*>(argument1)) {
this->screenshotName = text;
}
}
return 0;