You've already forked OpenRCT2-Unity
mirror of
https://github.com/izzy2lost/OpenRCT2-Unity.git
synced 2026-03-10 12:38:22 -07:00
Add architecture info to crash dump file name
This commit is contained in:
committed by
Ted John
parent
3df88895f7
commit
ead79360c8
@@ -44,6 +44,9 @@ extern "C" {
|
||||
const wchar_t *_wszCommitSha1Short = WSZ("");
|
||||
#endif
|
||||
|
||||
// OPENRCT2_ARCHITECTURE is required to be defined in version.h
|
||||
const wchar_t *_wszArchitecture = WSZ(OPENRCT2_ARCHITECTURE);
|
||||
|
||||
static bool OnCrash(const wchar_t * dumpPath,
|
||||
const wchar_t * miniDumpId,
|
||||
void * context,
|
||||
@@ -70,7 +73,7 @@ static bool OnCrash(const wchar_t * dumpPath,
|
||||
|
||||
// Try to rename the files
|
||||
wchar_t dumpFilePathNew[MAX_PATH];
|
||||
swprintf_s(dumpFilePathNew, sizeof(dumpFilePathNew), L"%s%s(%s).dmp", dumpPath, miniDumpId, _wszCommitSha1Short);
|
||||
swprintf_s(dumpFilePathNew, sizeof(dumpFilePathNew), L"%s%s(%s_%s).dmp", dumpPath, miniDumpId, _wszCommitSha1Short, _wszArchitecture);
|
||||
if (_wrename(dumpFilePath, dumpFilePathNew) == 0)
|
||||
{
|
||||
std::wcscpy(dumpFilePath, dumpFilePathNew);
|
||||
|
||||
Reference in New Issue
Block a user