Implement crash report system on Windows.

This commit is contained in:
Andrew
2014-05-09 20:08:07 -05:00
parent 489cb4dbf5
commit 9e80ddb040
2 changed files with 111 additions and 72 deletions

View File

@ -81,14 +81,6 @@ set(CRASH_HANDLER_IMPL "")
message(STATUS "Crash dumps are ${MultiMC_HANDLE_SEGV}")
if (MultiMC_HANDLE_SEGV)
add_definitions(-DHANDLE_SEGV)
if (UNIX)
set(CRASH_HANDLER_IMPL "UnixCrash.cpp")
elseif (WIN32)
message(WARNING "The crash dump system is not currently implemented on Windows")
#set(CRASH_HANDLER_IMPL "WinCrash.cpp")
else ()
message(WARNING "The crash dump system is not supported on this platform.")
endif ()
endif ()
option(MultiMC_TEST_SEGV "Intentionally segfault on startup to test crash handling." OFF)
@ -275,7 +267,7 @@ SET(MULTIMC_SOURCES
# Crash handling
HandleCrash.h
${CRASH_HANDLER_IMPL}
HandleCrash.cpp
# Logging
logger/QsDebugOutput.cpp