Skip to content

Commit

Permalink
BugTrap now saves reports in the engine's appdata folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 20, 2018
1 parent efe3718 commit 77bbe3c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/xrCore/xrDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,13 @@ void WINAPI xrDebug::PreErrorHandler(INT_PTR)
BT_AddLogFile(temp);
if (*BugReportFile)
BT_AddLogFile(BugReportFile);

string_path dumpPath;
if (FS.path_exist("$app_data_root$"))
FS.update_path(dumpPath, "$app_data_root$", dumpPath);
xr_strcat(dumpPath, "reports");

BT_SetReportFilePath(dumpPath);
BT_SaveSnapshot(nullptr);
}

Expand Down

0 comments on commit 77bbe3c

Please sign in to comment.