From 30ed94e803b5dc137bf8fe5f411258ec92c03a7a Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 29 Mar 2021 21:20:12 -0700 Subject: [PATCH] Qt: Add ROM filename and size to bug reporter --- CHANGES | 2 ++ src/platform/qt/ReportView.cpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/CHANGES b/CHANGES index dd731128c..8148926e7 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,8 @@ Emulation fixes: - GBA Memory: Fix loading Thumb savestates when in ARM mode Other fixes: - GBA: Fix FireRed revision misdetecting as a ROM hack +Misc: + - Qt: Add ROM filename and size to bug reporter 0.9.0: (2021-03-28) Features: diff --git a/src/platform/qt/ReportView.cpp b/src/platform/qt/ReportView.cpp index b33fd2ea6..d21da1422 100644 --- a/src/platform/qt/ReportView.cpp +++ b/src/platform/qt/ReportView.cpp @@ -245,6 +245,11 @@ void ReportView::generateReport() { { CoreController::Interrupter interrupter(controller); + QFileInfo rom(window->windowFilePath()); + if (rom.exists()) { + windowReport << QString("Filename: %1").arg(redact(rom.filePath())); + windowReport << QString("Size: %1").arg(rom.size()); + } addROMInfo(windowReport, controller.get()); if (m_ui.includeSave->isChecked() && !m_ui.includeState->isChecked()) {