Collect additional logs for crash handler (#2376)

* Collect launcher.log on crashes

This has been missing for Crash Handler based tspacks for a while, which makes it harder to get information from XLCore users because of our differing log names. (Really, we should rename both to just be xivlauncher.log or something, but that would break existing tooling)

* Collect wine.log on crashes
This commit is contained in:
R 2025-08-19 14:35:55 -07:00 committed by GitHub
parent 2affbe3683
commit 4a743e9060
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -463,12 +463,14 @@ void open_folder_and_select_items(HWND hwndOpener, const std::wstring& path) {
void export_tspack(HWND hWndParent, const std::filesystem::path& logDir, const std::string& crashLog, const std::string& troubleshootingPackData) { void export_tspack(HWND hWndParent, const std::filesystem::path& logDir, const std::string& crashLog, const std::string& troubleshootingPackData) {
static const char* SourceLogFiles[] = { static const char* SourceLogFiles[] = {
"output.log", "output.log", // XIVLauncher for Windows
"launcher.log", // XIVLauncher.Core for [mostly] Linux
"patcher.log", "patcher.log",
"dalamud.log", "dalamud.log",
"dalamud.injector.log", "dalamud.injector.log",
"dalamud.boot.log", "dalamud.boot.log",
"aria.log", "aria.log",
"wine.log"
}; };
static constexpr auto MaxSizePerLog = 1 * 1024 * 1024; static constexpr auto MaxSizePerLog = 1 * 1024 * 1024;
static constexpr std::array<COMDLG_FILTERSPEC, 2> OutputFileTypeFilterSpec{{ static constexpr std::array<COMDLG_FILTERSPEC, 2> OutputFileTypeFilterSpec{{