diff options
author | erorcun <erayorcunus@gmail.com> | 2020-05-11 03:23:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 03:23:36 +0300 |
commit | c66c45f4c8921564dc705c690e25848c330c4b26 (patch) | |
tree | 82c935c912f9436fcc87d4c5e910db89bbf0dda7 /src/core/re3.cpp | |
parent | 05021ed1e1e5374b38f9ce2912c310c04d358f6d (diff) | |
parent | 875c77e8b15c5014ee356c8413273c509daa5bda (diff) |
Merge pull request #509 from Fire-Head/master
OpenAL update
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 2c07836a..0ab32999 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -462,6 +462,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 |