From 5fcbc3a53d560495e31c2b18fdada226ee85ba36 Mon Sep 17 00:00:00 2001 From: Silent Date: Tue, 5 Oct 2021 18:23:06 +0200 Subject: [PATCH] Fix #15299: Breakpad crash dumps are created in game directory --- src/openrct2/platform/Crash.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/platform/Crash.cpp b/src/openrct2/platform/Crash.cpp index 69076260b0..1781a4bccc 100644 --- a/src/openrct2/platform/Crash.cpp +++ b/src/openrct2/platform/Crash.cpp @@ -324,9 +324,9 @@ static bool OnCrash( static std::wstring GetDumpDirectory() { auto env = GetContext()->GetPlatformEnvironment(); - auto crashPath = env->GetDirectoryPath(DIRBASE::OPENRCT2, DIRID::CRASH); + auto crashPath = env->GetDirectoryPath(DIRBASE::USER, DIRID::CRASH); - auto result = String::ToWideChar(crashPath.c_str()); + auto result = String::ToWideChar(crashPath); return result; }