Batch #10232 by ragnarok-clanker: forced by an admin (22 lower score(s), 263 changed function(s)); checked with 562 compiled unit(s), including every includer of Source/Client/Mode/CLoginMode.h, Source/Client/ReplayPacketRecorder.h, Source/Client/Session.h, Source/Contents/NavigationManager.h, Source/UI/Acceptance/UIJoinPartyAcceptWnd.h, Source/UI/EntryQueue/UIEntryQueueWnd.h, Source/UI/Guild/UIAgitWnd.h, Source/UI/Item/UIParaItemShopWnd.h, Source/UI/Items/UIItemRepairWnd.h, Source/UI/Items/UIMakeTargetListWnd.h, Source/UI/Items/UIMakeTargetProcessWnd.h, Source/UI/Items/UIWeaponRefineWnd.h, Source/UI/Window/UIHomunInfoWnd.h, Source/UI/Window/UIMerInfoWnd.h, Source/UI/Window/UIMessageBox.h, Source/UI/Window/UINavigationWnd.h, Source/UI/Window/UIPayConfirmWnd.h, Source/UI/Window/UIPetInfoWnd.h, Source/UI/Window/UIShowWarpWnd.h, Source/UI/Window/UIWindow.h, Source/UI/Window/UIWindowMgr.h, Source/UI/Window/WindowDialogs.h.
60 lines
1.4 KiB
C++
60 lines
1.4 KiB
C++
#include "Client/Input/ImeHelper.h"
|
|
#include "Client/Application/ApplicationWindow.h"
|
|
#include "Client/Mode/ModeMgr.h"
|
|
#include "Contents/MessageTable.h"
|
|
#include "Network/Connection/Connection.h"
|
|
#include "UI/Window/UIWindowMgr.h"
|
|
#include "UI/Window/WindowDialogs.h"
|
|
|
|
#include <windows.h>
|
|
|
|
typedef int(__cdecl* ImeHelperProc)(HWND window, const char* version);
|
|
typedef ImeHelperProc(__stdcall* QueryImeHelperProc)(DWORD command, const char* version);
|
|
|
|
// OFFSET: 0x00AFB5D0
|
|
// FUNCTION: fn_18304
|
|
void NotifyImeHelper() {
|
|
QueryImeHelperProc query = reinterpret_cast<QueryImeHelperProc>(GetProcAddress(LoadLibraryA("IMESCHLP"), "QueryIMEHelper"));
|
|
if (query) {
|
|
ImeHelperProc helper = query(0x9000F003, "5,01,2600,1832");
|
|
if (helper) {
|
|
helper(hWnd, "5,01,2600,1832");
|
|
}
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00AFB610
|
|
// FUNCTION: fn_18305
|
|
void HandleImeError(const int* error) {
|
|
int message;
|
|
switch (*error) {
|
|
case 0x8000E001:
|
|
message = 1046;
|
|
break;
|
|
case 0x8000E003:
|
|
message = 1047;
|
|
break;
|
|
case 0x8000E004:
|
|
message = 1048;
|
|
break;
|
|
case 0x8000E005:
|
|
message = 1049;
|
|
break;
|
|
case 0x8000E006:
|
|
message = 1050;
|
|
break;
|
|
default:
|
|
goto quit;
|
|
}
|
|
g_windowMgr.Confirm(LookupMessage(message), 0, true, false, 0, "Message", 280, 120, 0);
|
|
|
|
quit:
|
|
NotifyImeHelper();
|
|
GetRagConnection().Close();
|
|
g_modeMgr.Quit();
|
|
}
|
|
|
|
// OFFSET: 0x00AFB780
|
|
// FUNCTION: fn_18306
|
|
void ImeHelperNoop() {
|
|
}
|