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