fix mods crashing instead of failing to load when they fail to load

This commit is contained in:
dank_meme 2024-06-13 22:02:49 +02:00
parent bacab92b75
commit e37615b459

View file

@ -407,7 +407,9 @@ static LONG WINAPI exceptionHandler(LPEXCEPTION_POINTERS info) {
// SetThreadName
0x406d1388,
// c++ exceptions, handled separately
EXCEPTION_NUMBER
EXCEPTION_NUMBER,
// mods failing to load
ERROR_DLL_INIT_FAILED
});
if (std::find(ignored.begin(), ignored.end(), info->ExceptionRecord->ExceptionCode) != ignored.end()) {