From 0880609085eadbda6bc4e21ec47a5fc1a1c5f751 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 28 Oct 2026 11:06:57 +0000 Subject: [PATCH] Decompile fn_17827 (ShowErrorDialog) Batch #1352 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_17827 ShowErrorDialog: logic confirmed by peer review Reviewed-by: ragnarok-clanker --- Source/Client/Application/ErrorDialog.cpp | 10 ++++++++++ Source/Client/Application/ErrorDialog.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/Source/Client/Application/ErrorDialog.cpp b/Source/Client/Application/ErrorDialog.cpp index 6540e49..f8758e2 100644 --- a/Source/Client/Application/ErrorDialog.cpp +++ b/Source/Client/Application/ErrorDialog.cpp @@ -1,6 +1,14 @@ #include "Client/Application/ErrorDialog.h" +#include "Render/DeviceContext/DCSurface.h" #include "Render/RenderSystemBase.h" +// OFFSET: 0x00AD6320 +// FUNCTION: fn_17827 +int ShowErrorDialog(const std::string& text, const UINT& type) { + GetRenderSystemHolder()->PrepareErrorDialog(); + return MessageBoxA(nullptr, text.c_str(), "Error", type); +} + // OFFSET: 0x00AD6360 // FUNCTION: fn_17828 int ShowErrorDialog(CRenderSystemBase* renderSystem, const char* text, UINT type) { @@ -10,3 +18,5 @@ int ShowErrorDialog(CRenderSystemBase* renderSystem, const char* text, UINT type return MessageBoxA(nullptr, text, "Error", type); } + +// OFFSET: 0x00AD6390 diff --git a/Source/Client/Application/ErrorDialog.h b/Source/Client/Application/ErrorDialog.h index 38dc35f..be58e98 100644 --- a/Source/Client/Application/ErrorDialog.h +++ b/Source/Client/Application/ErrorDialog.h @@ -1,10 +1,13 @@ #ifndef RAGNAROK_SOURCE_CLIENT_APPLICATION_ERRORDIALOG_H #define RAGNAROK_SOURCE_CLIENT_APPLICATION_ERRORDIALOG_H +#include #include class CRenderSystemBase; +int ShowErrorDialog(const std::string& text, const UINT& type); int ShowErrorDialog(CRenderSystemBase* renderSystem, const char* text, UINT type); +int ShowErrorDialog(int code); #endif