add new .ini setting "terminate_process"

This commit is contained in:
FunkyFr3sh 2025-01-02 01:22:03 +01:00
parent 7df6a4e47b
commit ed8584129d
4 changed files with 9 additions and 0 deletions

View file

@ -179,6 +179,9 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
if (g_dbg_exception_handle && remove_handler)
remove_handler(g_dbg_exception_handle);
if (g_config.terminate_process == 2)
TerminateProcess(GetCurrentProcess(), 0);
break;
}
case DLL_THREAD_ATTACH: