diff options
author | aap <aap@papnet.eu> | 2020-05-11 22:21:26 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-11 22:21:26 +0200 |
commit | 0eb5f93e96bfc4b31c0bde01e9f1296b3b612bc2 (patch) | |
tree | 16bf11e0e8a0353448a643322e9511e8ba659fca /src/core/re3.cpp | |
parent | CVisibilityPlugins (diff) | |
parent | Merge remote-tracking branch 'origin/master' into miami (diff) | |
download | re3-0eb5f93e96bfc4b31c0bde01e9f1296b3b612bc2.tar re3-0eb5f93e96bfc4b31c0bde01e9f1296b3b612bc2.tar.gz re3-0eb5f93e96bfc4b31c0bde01e9f1296b3b612bc2.tar.bz2 re3-0eb5f93e96bfc4b31c0bde01e9f1296b3b612bc2.tar.lz re3-0eb5f93e96bfc4b31c0bde01e9f1296b3b612bc2.tar.xz re3-0eb5f93e96bfc4b31c0bde01e9f1296b3b612bc2.tar.zst re3-0eb5f93e96bfc4b31c0bde01e9f1296b3b612bc2.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 1915e135..bbac265f 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -465,6 +465,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 |