From 0ad64a6494da5ecfadc98f30cd70fc8533074279 Mon Sep 17 00:00:00 2001 From: hiimjustin000 <52604018+hiimjustin000@users.noreply.github.com> Date: Sat, 18 Jan 2025 00:31:34 -0500 Subject: [PATCH] Fix PDB search paths in crashlogs --- loader/src/platform/windows/crashlog.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/loader/src/platform/windows/crashlog.cpp b/loader/src/platform/windows/crashlog.cpp index 1990ab475..6c7996cbe 100644 --- a/loader/src/platform/windows/crashlog.cpp +++ b/loader/src/platform/windows/crashlog.cpp @@ -531,11 +531,6 @@ static LONG WINAPI exceptionHandler(LPEXCEPTION_POINTERS info) { bool crashlog::setupPlatformHandler() { SetUnhandledExceptionFilter(exceptionHandler); - g_unzippedSearchPaths.clear(); - for (auto& mod : Loader::get()->getAllMods()) { - g_unzippedSearchPaths += mod->getTempDir().string() + ";"; - } - auto lastCrashedFile = crashlog::getCrashLogDirectory() / "last-crashed"; if (std::filesystem::exists(lastCrashedFile)) { g_lastLaunchCrashed = true; @@ -552,7 +547,12 @@ bool crashlog::didLastLaunchCrash() { return g_lastLaunchCrashed; } -void crashlog::setupPlatformHandlerPost() {} +void crashlog::setupPlatformHandlerPost() { + g_unzippedSearchPaths.clear(); + for (auto& mod : Loader::get()->getAllMods()) { + g_unzippedSearchPaths += mod->getTempDir().string() + ";"; + } +} std::filesystem::path crashlog::getCrashLogDirectory() { return dirs::getGeodeDir() / "crashlogs";