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

20 lines
367 B
C++

#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);
}