1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Added "System" option to RtCrashReportKind

This commit is contained in:
Brian Fiete 2024-02-27 16:20:17 -05:00
parent 54136f2606
commit 733b3fe41f
3 changed files with 19 additions and 14 deletions

View file

@ -290,7 +290,8 @@ namespace System
GUI,
Console,
PrintOnly,
None
None,
System
}
enum RtFlags : int32

View file

@ -95,7 +95,8 @@ enum BfpCrashReportKind
BfpCrashReportKind_GUI,
BfpCrashReportKind_Console,
BfpCrashReportKind_PrintOnly,
BfpCrashReportKind_None
BfpCrashReportKind_None,
BfpCrashReportKind_System
};
BFP_EXPORT void BFP_CALLTYPE BfpSystem_Init(int version, BfpSystemInitFlags flags);

View file

@ -1043,6 +1043,9 @@ static long __stdcall SEHFilter(LPEXCEPTION_POINTERS lpExceptPtr)
{
OutputDebugStrF("SEH Filter! CraskReportKind:%d\n", CrashCatcher::Get()->mCrashReportKind);
if (CrashCatcher::Get()->mCrashReportKind == BfpCrashReportKind_System)
return EXCEPTION_CONTINUE_SEARCH;
if (CrashCatcher::Get()->mCrashReportKind == BfpCrashReportKind_None)
{
OutputDebugStrF("Silent Exiting\n");