Decompile fn_06364 (ApplyServiceOptionWindow27)
Batch #5538 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review. - fn_06364 ApplyServiceOptionWindow27: logic confirmed by peer review Peer-reviewed-by: willerthal, Snow Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
261416432b
commit
5f99fe86ef
1 changed files with 22 additions and 0 deletions
|
|
@ -18,6 +18,7 @@
|
|||
#include "UI/Window/UIWindow.h"
|
||||
#include "UI/Window/UIWindowMgr.h"
|
||||
#include "UI/Window/WindowDialogs.h"
|
||||
#include "UI/Window/WindowManagerWindows.h"
|
||||
#include "Script/LuaInstance.h"
|
||||
#include "Script/LuaScript.h"
|
||||
#include "Utility/Singleton.h"
|
||||
|
|
@ -721,6 +722,8 @@ void ApplyServiceOptionAskOnDisable(int id, unsigned char value, bool notify, in
|
|||
SendClientOption(value, GetRagConnection(), g_packetLengths);
|
||||
}
|
||||
|
||||
// OFFSET: 0x006C5FC0
|
||||
|
||||
// OFFSET: 0x006C60F0
|
||||
// FUNCTION: fn_06375
|
||||
void ApplyServiceOptionWindow190(int id, unsigned char value, bool notify, int enabledMessage, int disabledMessage) {
|
||||
|
|
@ -867,6 +870,25 @@ void ApplyServiceOptionWeatherFlag(int id, unsigned char value, bool notify, int
|
|||
g_weatherEffect.unknown_0001 = value ^ 1;
|
||||
}
|
||||
|
||||
// OFFSET: 0x006C5AD0
|
||||
// FUNCTION: fn_06364
|
||||
void ApplyServiceOptionWindow27(int, unsigned char, bool, int, int) {
|
||||
if (g_windowMgr.unknown_0304 != 0) {
|
||||
reinterpret_cast<WindowDialogs*>(&g_windowMgr)->Confirm(LookupMessage(0x24B), 0, true, false, 0, "Message", 0x118, 0x78, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
if (g_windowMgr.unknown_02FC != 0) {
|
||||
CMode* mode = g_modeMgr.GetGameMode();
|
||||
if (mode) {
|
||||
mode->SendMsg(0x52, 0, 0, 0, 0);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
reinterpret_cast<WindowManagerWindows*>(&g_windowMgr)->EnsureWindow(0x1B);
|
||||
}
|
||||
|
||||
// GLOBAL: gl_24912
|
||||
template <>
|
||||
CGameSettingsMgr* Singleton<CGameSettingsMgr>::s_instance = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue