From 6503c2a4a4e7aee1dd9f9ae82d61857ba2cc4412 Mon Sep 17 00:00:00 2001 From: omigamedev Date: Tue, 16 Oct 2018 00:29:19 +0200 Subject: [PATCH] update bugtrap to use the new php server --- src/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b57264a..4de39a9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -350,6 +350,7 @@ static void SetupExceptionHandler() { // Setup exception handler BT_SetAppName(_T("PanoPainter")); + BT_SetAppVersion(g_version_w); //BT_SetSupportEMail(_T("your@email.com")); BT_SetFlags(BTF_DETAILEDMODE | BTF_ATTACHREPORT | BTF_SCREENCAPTURE); @@ -362,6 +363,7 @@ static void SetupExceptionHandler() // = BugTrapWebServer ======================================== //BT_SetSupportServer(_T("http://localhost/BugTrapWebServer/RequestHandler.aspx"), BUGTRAP_HTTP_PORT); //BT_SetSupportServer(_T("http://omigamedev.ddns.net:8088/source/Server/BugTrapWebServer/RequestHandler.aspx"), BUGTRAP_HTTP_PORT); + BT_SetSupportServer(_T("http://panopainter.com/bug/"), BUGTRAP_HTTP_PORT); // required for VS 2005 & 2008 BT_InstallSehFilter(); @@ -373,8 +375,10 @@ static void SetupExceptionHandler() // BT_SetLogEchoMode(g_iLogHandle, BTLE_STDERR | BTLE_DBGOUT); // // PCTSTR pszLogFileName = BT_GetLogFileName(g_iLogHandle); - TCHAR wpath[1024]; - GetFullPathNameW(L"panopainter-log.txt", 1024, wpath, nullptr); + TCHAR wpath[MAX_PATH]; + //GetFullPathNameW(L"panopainter-log.txt", 1024, wpath, nullptr); + auto log_file = App::I.data_path + "/panopainter-log.txt"; + std::mbstowcs(wpath, log_file.c_str(), log_file.size()); BT_AddLogFile(wpath); BT_SetPreErrHandler([](INT_PTR){