From c98b24cf29a8cd98201ac7bd00b457d8842c0f2d Mon Sep 17 00:00:00 2001 From: w12x Date: Thu, 23 Oct 2008 05:57:15 -0500 Subject: [PATCH] [svn] Restore automatic crashlog generation on Windows. Make sure to have a Crashes folder in the working directory of the executables. --HG-- branch : trunk --- src/shared/WheatyExceptionReport.cpp | 4 +--- win/VC71/TrinityCore.vcproj | 8 ++++++++ win/VC71/TrinityRealm.vcproj | 8 ++++++++ win/VC80/TrinityCore.vcproj | 8 ++++++++ win/VC80/TrinityRealm.vcproj | 8 ++++++++ win/VC90/TrinityCore.vcproj | 8 ++++++++ win/VC90/TrinityRealm.vcproj | 8 ++++++++ 7 files changed, 49 insertions(+), 3 deletions(-) diff --git a/src/shared/WheatyExceptionReport.cpp b/src/shared/WheatyExceptionReport.cpp index 41d2a5e2727..6a4276cca0f 100644 --- a/src/shared/WheatyExceptionReport.cpp +++ b/src/shared/WheatyExceptionReport.cpp @@ -14,8 +14,7 @@ #define _NO_CVCONST_H #include #include "WheatyExceptionReport.h" -#include "svn_revision.h" -#define CrashFolder _T("Crashs") +#define CrashFolder _T("Crashes") //#pragma comment(linker, "/defaultlib:dbghelp.lib") inline LPTSTR ErrorMessage(DWORD dw) @@ -386,7 +385,6 @@ PEXCEPTION_POINTERS pExceptionInfo ) GetLocalTime(&systime); // Start out with a banner - _tprintf(_T("Revision: %s\r\n"), SVN_REVISION); _tprintf(_T("Date %u:%u:%u. Time %u:%u \r\n"), systime.wDay, systime.wMonth, systime.wYear, systime.wHour, systime.wMinute); PEXCEPTION_RECORD pExceptionRecord = pExceptionInfo->ExceptionRecord; diff --git a/win/VC71/TrinityCore.vcproj b/win/VC71/TrinityCore.vcproj index ca6f5130e6d..03ef53ab66c 100644 --- a/win/VC71/TrinityCore.vcproj +++ b/win/VC71/TrinityCore.vcproj @@ -211,6 +211,14 @@ copy ..\..\src\trinitycore\trinitycore.conf.dist ..\..\bin\$(PlatformName)_$(Con + + + + diff --git a/win/VC71/TrinityRealm.vcproj b/win/VC71/TrinityRealm.vcproj index f40805b1882..02f8993705d 100644 --- a/win/VC71/TrinityRealm.vcproj +++ b/win/VC71/TrinityRealm.vcproj @@ -176,6 +176,14 @@ + + + + diff --git a/win/VC80/TrinityCore.vcproj b/win/VC80/TrinityCore.vcproj index b15347662a5..6209bd3f9aa 100644 --- a/win/VC80/TrinityCore.vcproj +++ b/win/VC80/TrinityCore.vcproj @@ -493,6 +493,14 @@ RelativePath="..\..\src\trinitycore\TrinityCore.rc" > + + + + diff --git a/win/VC80/TrinityRealm.vcproj b/win/VC80/TrinityRealm.vcproj index 1171ef5af5f..b6c91e47eb8 100644 --- a/win/VC80/TrinityRealm.vcproj +++ b/win/VC80/TrinityRealm.vcproj @@ -449,6 +449,14 @@ RelativePath="..\..\src\trinityrealm\TrinityRealm.rc" > + + + + diff --git a/win/VC90/TrinityCore.vcproj b/win/VC90/TrinityCore.vcproj index 6402c655558..39d09f277be 100644 --- a/win/VC90/TrinityCore.vcproj +++ b/win/VC90/TrinityCore.vcproj @@ -486,6 +486,14 @@ RelativePath="..\..\src\trinitycore\TrinityCore.rc" > + + + + diff --git a/win/VC90/TrinityRealm.vcproj b/win/VC90/TrinityRealm.vcproj index ab6486af0cd..80ba6157e8b 100644 --- a/win/VC90/TrinityRealm.vcproj +++ b/win/VC90/TrinityRealm.vcproj @@ -438,6 +438,14 @@ RelativePath="..\..\src\trinityrealm\TrinityRealm.rc" > + + + +