mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 17:10:54 +01:00
17 lines
411 B
C++
17 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;
|
|
}
|
|
};
|