diff --git a/Source/Client/Application/ErrorDialog.cpp b/Source/Client/Application/ErrorDialog.cpp index f8758e2..b8c89a6 100644 --- a/Source/Client/Application/ErrorDialog.cpp +++ b/Source/Client/Application/ErrorDialog.cpp @@ -20,3 +20,10 @@ int ShowErrorDialog(CRenderSystemBase* renderSystem, const char* text, UINT type } // OFFSET: 0x00AD6390 +// FUNCTION: fn_17829 +int ShowErrorDialog(int code) { + char text[80]; + wsprintfA(text, "%d\n", code); + GetRenderSystemHolder()->PrepareErrorDialog(); + return MessageBoxA(nullptr, text, "Error", MB_OK); +}