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
This commit is contained in:
ragnarok-clanker 2026-10-28 11:06:57 +00:00
commit 0880609085
2 changed files with 13 additions and 0 deletions

View file

@ -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