mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
md, fix ssf2 mapping setup when loading a savestate
This commit is contained in:
parent
ce4ae174ea
commit
f8dba3f63a
1 changed files with 6 additions and 3 deletions
|
@ -71,9 +71,12 @@ static void carthw_ssf2_mem_setup(void)
|
||||||
|
|
||||||
static void carthw_ssf2_statef(void)
|
static void carthw_ssf2_statef(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i, reg;
|
||||||
for (i = 1; i < 8; i++)
|
for (i = 1; i < 8; i++) {
|
||||||
carthw_ssf2_write8(0xa130f0 | (i << 1), carthw_ssf2_banks[i]);
|
reg = carthw_ssf2_banks[i];
|
||||||
|
carthw_ssf2_banks[i] = i;
|
||||||
|
carthw_ssf2_write8(0xa130f1 | (i << 1), reg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void carthw_ssf2_unload(void)
|
static void carthw_ssf2_unload(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue