new memory handling, but asm and mappers need update.
[picodrive.git] / platform / common / emu.c
index 4a95a3f..4fcb792 100644 (file)
@@ -989,7 +989,8 @@ int emu_save_load_game(int load, int sram)
                        }\r
                } else {\r
                        sram_size = SRam.end-SRam.start+1;\r
-                       if(Pico.m.sram_reg & 4) sram_size=0x2000;\r
+                       if (Pico.m.sram_status & SRS_EEPROM)\r
+                               sram_size = 0x2000;\r
                        sram_data = SRam.data;\r
                }\r
                if (!sram_data) return 0; // SRam forcefully disabled for this game\r