mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
Finish migrating to new mem handling. Make carthw db external.
Still need to fix asm and protection emulation. git-svn-id: file:///home/notaz/opt/svn/PicoDrive@769 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
af37bca858
commit
45f2f245f5
30 changed files with 948 additions and 1027 deletions
|
@ -977,7 +977,7 @@ int emu_save_load_game(int load, int sram)
|
|||
int truncate = 1;
|
||||
if (PicoAHW & PAHW_MCD)
|
||||
{
|
||||
if (PicoOpt&POPT_EN_MCD_RAMCART) {
|
||||
if (PicoOpt & POPT_EN_MCD_RAMCART) {
|
||||
sram_size = 0x12000;
|
||||
sram_data = SRam.data;
|
||||
if (sram_data)
|
||||
|
@ -988,9 +988,7 @@ int emu_save_load_game(int load, int sram)
|
|||
truncate = 0; // the .brm may contain RAM cart data after normal brm
|
||||
}
|
||||
} else {
|
||||
sram_size = SRam.end-SRam.start+1;
|
||||
if (Pico.m.sram_status & SRS_EEPROM)
|
||||
sram_size = 0x2000;
|
||||
sram_size = SRam.size;
|
||||
sram_data = SRam.data;
|
||||
}
|
||||
if (!sram_data) return 0; // SRam forcefully disabled for this game
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue