Qt: Add exporting of SAV + RTC GB saves from Save Converter to strip RTC data

This commit is contained in:
Vicki Pfau 2023-07-03 16:08:52 -07:00
parent bd15285ea1
commit 747158d5a6
2 changed files with 9 additions and 1 deletions

View File

@ -28,7 +28,7 @@ Misc:
- GB Serialize: Add missing savestate support for MBC6 and NT (newer)
- GBA: Improve detection of valid ELF ROMs
- mGUI: Enable auto-softpatching (closes mgba.io/i/2899)
- Qt: Add exporting of SAV + RTC GBA saves from Save Converter to strip RTC data
- Qt: Add exporting of SAV + RTC saves from Save Converter to strip RTC data
- Scripting: Add `callbacks:oneshot` for single-call callbacks
0.10.2: (2023-04-23)

View File

@ -623,6 +623,11 @@ QList<SaveConverter::AnnotatedSave> SaveConverter::AnnotatedSave::possibleConver
}
break;
default:
if (size & 0xFF) {
AnnotatedSave noRtc = same;
noRtc.size &= ~0xFF;
possible.append(noRtc);
}
break;
}
break;
@ -731,6 +736,9 @@ QByteArray SaveConverter::AnnotatedSave::convertTo(const SaveConverter::Annotate
}
break;
default:
if (endianness == target.endianness && size > target.size) {
converted = backing->read(target.size);
}
break;
}
break;