Qt: Add ROM filename and size to bug reporter

This commit is contained in:
Vicki Pfau 2021-03-29 21:20:12 -07:00
parent 4c0294d7ff
commit b6025e4108
2 changed files with 7 additions and 0 deletions

View File

@ -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:

View File

@ -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()) {