CrashHandler: Use SetUnhandledExceptionFilter() and terminate on crash

Fixes zombie processes sticking around.
This commit is contained in:
Stenzek
2024-05-07 01:42:59 +10:00
committed by Connor McLaughlin
parent 9752a037be
commit 339dc2313b
4 changed files with 35 additions and 66 deletions
+9
View File
@@ -100,6 +100,15 @@ bool DynamicLibrary::Open(const char* filename, Error* error)
#endif
}
void DynamicLibrary::Adopt(void* handle)
{
pxAssertRel(handle, "Handle is valid");
Close();
m_handle = handle;
}
void DynamicLibrary::Close()
{
if (!IsOpen())