enderalse/source/fs.dll/skse64/skse64_loader_common/LoaderError.cpp

20 lines
367 B
C++
Raw Normal View History

2021-10-06 00:45:46 +00:00
#include "LoaderError.h"
#include <cstdarg>
void PrintLoaderError(const char * fmt, ...)
{
char buf[4096];
va_list args;
va_start(args, fmt);
gLog.Log(IDebugLog::kLevel_FatalError, fmt, args);
va_end(args);
va_start(args, fmt);
vsprintf_s(buf, sizeof(buf), fmt, args);
va_end(args);
MessageBox(NULL, buf, "SKSE64 Loader", MB_OK | MB_ICONEXCLAMATION);
}