mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 16:50:54 +01:00
18 lines
411 B
C
18 lines
411 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
class CrashHandler
|
||
|
|
{
|
||
|
|
PVOID m_handler;
|
||
|
|
static LPTOP_LEVEL_EXCEPTION_FILTER m_pUnhandled; // For remembering "original" UnhandledExceptionFilter
|
||
|
|
|
||
|
|
public:
|
||
|
|
CrashHandler();
|
||
|
|
~CrashHandler();
|
||
|
|
|
||
|
|
static void RemovePreviousDump(std::filesystem::path path);
|
||
|
|
static inline LPTOP_LEVEL_EXCEPTION_FILTER GetOriginalUnhandledExceptionFilter()
|
||
|
|
{
|
||
|
|
return m_pUnhandled;
|
||
|
|
}
|
||
|
|
};
|