diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-11 20:07:12 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-11 20:07:12 +0200 |
commit | 0aa7f13c32ea1991f4663f5eff1c37478fdf736f (patch) | |
tree | a994ac3a72f9b65dfe6648d3086d4415fe2b1234 /src/core/re3.cpp | |
parent | little fix for cam (diff) | |
parent | remove aps from premake (diff) | |
download | re3-0aa7f13c32ea1991f4663f5eff1c37478fdf736f.tar re3-0aa7f13c32ea1991f4663f5eff1c37478fdf736f.tar.gz re3-0aa7f13c32ea1991f4663f5eff1c37478fdf736f.tar.bz2 re3-0aa7f13c32ea1991f4663f5eff1c37478fdf736f.tar.lz re3-0aa7f13c32ea1991f4663f5eff1c37478fdf736f.tar.xz re3-0aa7f13c32ea1991f4663f5eff1c37478fdf736f.tar.zst re3-0aa7f13c32ea1991f4663f5eff1c37478fdf736f.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 8ed27eef..93424193 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -464,6 +464,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 |