add testing code for privileged instructions

This commit is contained in:
FunkyFr3sh 2024-09-24 20:17:53 +02:00
parent 7febf01343
commit e0e59cd9fa
4 changed files with 135 additions and 46 deletions

View file

@ -43,9 +43,14 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
#ifdef _DEBUG
dbg_init();
g_dbg_exception_filter = real_SetUnhandledExceptionFilter((LPTOP_LEVEL_EXCEPTION_FILTER)dbg_exception_handler);
#endif
cfg_load();
#else
cfg_load();
if (g_config.ignore_exceptions)
{
g_dbg_exception_filter = real_SetUnhandledExceptionFilter((LPTOP_LEVEL_EXCEPTION_FILTER)dbg_exception_handler);
}
#endif
char buf[1024];