mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-10 08:51:35 +00:00
Fix Breakpad using changes provided by Stanislav in a gist
This commit is contained in:
parent
456aee65d9
commit
f865246955
2 changed files with 5 additions and 7 deletions
|
@ -10,7 +10,7 @@ if(ENABLE_BREAKPAD)
|
|||
set(Breakpad_Library "${CMAKE_SOURCE_DIR}/extern/breakpad/src/client/linux/libbreakpad_client.a")
|
||||
elseif(WIN32)
|
||||
set(Breakpad_Headers "${CMAKE_SOURCE_DIR}/extern/breakpad/src/client/windows")
|
||||
set(Breakpad_Library "${CMAKE_SOURCE_DIR}/extern/breakpad/src/client/windows/libbreakpad_client.a")
|
||||
set(Breakpad_Library "-lbreakpad_client")
|
||||
endif (UNIX)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/extern/breakpad/src ${Breakpad_Headers})
|
||||
endif(ENABLE_BREAKPAD)
|
||||
|
|
|
@ -54,7 +54,7 @@ void printVersion(string version, int protocol)
|
|||
#ifdef ENABLE_BREAKPAD
|
||||
google_breakpad::ExceptionHandler *pHandler = 0;
|
||||
#if defined(_WIN32)
|
||||
bool DumpCallback(const char* _dump_dir, const char* _minidump_id, void* context, EXCEPTION_POINTERS* exinfo, MDRawAssertionInfo* assertion, bool success)
|
||||
bool DumpCallback(const wchar_t* _dump_dir,const wchar_t* _minidump_id,void* context,EXCEPTION_POINTERS* exinfo,MDRawAssertionInfo* assertion,bool success)
|
||||
#elif defined(__linux)
|
||||
bool DumpCallback(const google_breakpad::MinidumpDescriptor &md, void *context, bool success)
|
||||
#endif
|
||||
|
@ -67,13 +67,11 @@ void breakpad(std::string pathToDump)
|
|||
{
|
||||
#ifdef _WIN32
|
||||
pHandler = new google_breakpad::ExceptionHandler(
|
||||
pathToDump,
|
||||
L"dumps\\",
|
||||
/*FilterCallback*/ 0,
|
||||
DumpCallback,
|
||||
/*context*/
|
||||
google_breakpad::ExceptionHandler::HANDLER_ALL,
|
||||
true
|
||||
);
|
||||
0,
|
||||
google_breakpad::ExceptionHandler::HANDLER_ALL);
|
||||
#else
|
||||
google_breakpad::MinidumpDescriptor md(pathToDump);
|
||||
pHandler = new google_breakpad::ExceptionHandler(
|
||||
|
|
Loading…
Reference in a new issue