Skip to content

Commit

Permalink
Fix PDB search paths in crashlogs
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjasmine00 committed Jan 18, 2025
1 parent f540c39 commit 0ad64a6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions loader/src/platform/windows/crashlog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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";
Expand Down

0 comments on commit 0ad64a6

Please sign in to comment.