Batch #13554 by SapitoSucio: 1 byte-identical, 0 confirmed by peer review. - fn_07779 CTokenizer::operator[]: byte-identical Merged automatically: every function is byte-identical to the original.
37 lines
1 KiB
C++
37 lines
1 KiB
C++
#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) {
|
|
const UINT flags = type;
|
|
const char* message = text.c_str();
|
|
GetRenderSystemHolder()->PrepareErrorDialog();
|
|
return MessageBoxA(nullptr, message, "Error", flags);
|
|
}
|
|
|
|
// OFFSET: 0x00AD6360
|
|
// FUNCTION: fn_17828
|
|
int ShowErrorDialog(const char* text, UINT type) {
|
|
GetRenderSystemHolder()->PrepareErrorDialog();
|
|
return MessageBoxA(nullptr, text, "Error", type);
|
|
}
|
|
|
|
// INLINED
|
|
int ShowErrorDialog(CRenderSystemBase* renderSystem, const char* text, UINT type) {
|
|
if (renderSystem) {
|
|
renderSystem->PrepareErrorDialog();
|
|
}
|
|
|
|
return MessageBoxA(nullptr, text, "Error", 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);
|
|
}
|