Qt: Add save info to bug report logs

This commit is contained in:
Vicki Pfau 2025-06-10 01:16:38 -07:00
parent ae6b0ed1be
commit 0584d59bce
2 changed files with 9 additions and 0 deletions

View File

@ -70,6 +70,7 @@ Misc:
- Qt: Add shortcuts to increment fast forward speed (mgba.io/i/2903)
- Qt: Enable ROM preloading by default
- Qt: Throttle fatal error dialogs
- Qt: Add save info to bug report logs
- Res: Port hq2x and OmniScale shaders from SameBoy
- Res: Port NSO-gba-colors shader (closes mgba.io/i/2834)
- Res: Update gba-colors shader (closes mgba.io/i/2976)

View File

@ -503,6 +503,14 @@ void ReportView::addGamepadInfo(QStringList& report) {
}
void ReportView::addROMInfo(QStringList& report, CoreController* controller) {
QFileInfo saveInfo(controller->savePath());
if (saveInfo.exists()) {
report << QString("Save file: %1").arg(redact(saveInfo.filePath()));
report << QString("Save size: %1").arg(saveInfo.size());
} else {
report << QString("No save file");
}
report << QString("Currently paused: %1").arg(yesNo[controller->isPaused()]);
mCore* core = controller->thread()->core;