mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Reorganise 3rdparty, include breakpad with sln, drop mhook. Closes #84
This commit is contained in:
@@ -31,17 +31,20 @@
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
// breakpad
|
||||
#include "common/windows/http_upload.h"
|
||||
#include "client/windows/crash_generation/client_info.h"
|
||||
#include "client/windows/crash_generation/crash_generation_server.h"
|
||||
|
||||
#include "miniz.h"
|
||||
#include "miniz/miniz.h"
|
||||
|
||||
using std::string;
|
||||
using std::wstring;
|
||||
using std::vector;
|
||||
|
||||
HINSTANCE hInstance = NULL;
|
||||
|
||||
#if defined(RELEASE)
|
||||
// breakpad
|
||||
#include "breakpad/common/windows/http_upload.h"
|
||||
#include "breakpad/client/windows/crash_generation/client_info.h"
|
||||
#include "breakpad/client/windows/crash_generation/crash_generation_server.h"
|
||||
|
||||
using google_breakpad::ClientInfo;
|
||||
using google_breakpad::CrashGenerationServer;
|
||||
|
||||
@@ -59,8 +62,6 @@ wstring dump = L"";
|
||||
vector<google_breakpad::CustomInfoEntry> customInfo;
|
||||
wstring logpath = L"";
|
||||
|
||||
HINSTANCE hInstance = NULL;
|
||||
|
||||
INT_PTR CALLBACK CrashHandlerProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
switch (message)
|
||||
@@ -186,6 +187,7 @@ static void _cdecl OnClientExited(void* context, const ClientInfo* client_info)
|
||||
{
|
||||
exitServer = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
@@ -319,7 +321,8 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPWSTR lpCmdLine,
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
#if defined(RELEASE)
|
||||
CrashGenerationServer *crashServer = NULL;
|
||||
|
||||
// special WIN32 option for launching the crash handler
|
||||
@@ -494,6 +497,7 @@ int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPWSTR lpCmdLine,
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
return renderdoccmd(argc, argv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user