diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-05-07 08:26:16 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-05-07 08:26:16 +0200 |
commit | 12a3499ca365756a77958d616423aca39a23234b (patch) | |
tree | 654c8d351a182be99959a3a36cced2ddeab6a63b /src/core/re3.cpp | |
parent | bb std::string (diff) | |
download | re3-12a3499ca365756a77958d616423aca39a23234b.tar re3-12a3499ca365756a77958d616423aca39a23234b.tar.gz re3-12a3499ca365756a77958d616423aca39a23234b.tar.bz2 re3-12a3499ca365756a77958d616423aca39a23234b.tar.lz re3-12a3499ca365756a77958d616423aca39a23234b.tar.xz re3-12a3499ca365756a77958d616423aca39a23234b.tar.zst re3-12a3499ca365756a77958d616423aca39a23234b.zip |
Diffstat (limited to 'src/core/re3.cpp')
-rw-r--r-- | src/core/re3.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp index 2a9cbc77..b7eb6480 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -456,6 +456,20 @@ void re3_trace(const char *filename, unsigned int lineno, const char *func, cons OutputDebugStringA(buff); } +void re3_usererror(const char *format, ...) +{ + va_list va; + va_start(va, format); + vsprintf_s(re3_buff, re3_buffsize, format, va); + va_end(va); + + ::MessageBoxA(nil, re3_buff, "RE3 Error!", + MB_OK|MB_ICONHAND|MB_SETFOREGROUND|MB_TASKMODAL); + + raise(SIGABRT); + _exit(3); +} + #ifdef VALIDATE_SAVE_SIZE int32 _saveBufCount; #endif |