Skip to content

Commit 77bbe3c

Browse files
committed
BugTrap now saves reports in the engine's appdata folder
1 parent efe3718 commit 77bbe3c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/xrCore/xrDebug.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,13 @@ void WINAPI xrDebug::PreErrorHandler(INT_PTR)
334334
BT_AddLogFile(temp);
335335
if (*BugReportFile)
336336
BT_AddLogFile(BugReportFile);
337+
338+
string_path dumpPath;
339+
if (FS.path_exist("$app_data_root$"))
340+
FS.update_path(dumpPath, "$app_data_root$", dumpPath);
341+
xr_strcat(dumpPath, "reports");
342+
343+
BT_SetReportFilePath(dumpPath);
337344
BT_SaveSnapshot(nullptr);
338345
}
339346

0 commit comments

Comments
 (0)