create MiniDump on crash in Debug builds

This commit is contained in:
FunkyFr3sh 2021-01-28 07:38:03 +01:00
parent 59a57ed7a5
commit 76dd7ae674
4 changed files with 36 additions and 3 deletions

View file

@ -32,6 +32,7 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
#if _DEBUG
dbg_init();
dprintf("cnc-ddraw = %p\n", hDll);
SetUnhandledExceptionFilter((LPTOP_LEVEL_EXCEPTION_FILTER)dbg_exception_handler);
#endif
g_ddraw_module = hDll;