system: Use strict serialization method for ICD

Backport of 7d8dbd723c

Otherwise SGB savestates sometimes corrupted, see https://gitlab.com/jgemu/bsnes/-/issues/7
This commit is contained in:
Alice Mikhaylenko
2025-07-27 18:06:44 +04:00
committed by Tim Allen
parent ddc3dc2d47
commit b8dcfcd59d

View File

@@ -27,6 +27,9 @@ auto System::runToSave() -> void {
if(cartridge.headerTitle() == "Star Ocean") method = "Strict";
if(cartridge.headerTitle() == "TALES OF PHANTASIA") method = "Strict";
//fast serialization corrupts the Super Game Boy implementation
if(cartridge.has.ICD) method = "Strict";
//fallback in case of unrecognized method specified
if(method != "Fast" && method != "Strict") method = "Fast";