notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce4ae17
)
md, fix ssf2 mapping setup when loading a savestate
author
kub
<derkub@gmail.com>
Sun, 12 Dec 2021 22:48:36 +0000
(23:48 +0100)
committer
kub
<derkub@gmail.com>
Sun, 12 Dec 2021 22:48:36 +0000
(23:48 +0100)
pico/carthw/carthw.c
patch
|
blob
|
blame
|
history
diff --git
a/pico/carthw/carthw.c
b/pico/carthw/carthw.c
index
83cb2da
..
0cee14b
100644
(file)
--- a/
pico/carthw/carthw.c
+++ b/
pico/carthw/carthw.c
@@
-71,9
+71,12
@@
static void carthw_ssf2_mem_setup(void)
static void carthw_ssf2_statef(void)
{
- int i;
- for (i = 1; i < 8; i++)
- carthw_ssf2_write8(0xa130f0 | (i << 1), carthw_ssf2_banks[i]);
+ int i, reg;
+ for (i = 1; i < 8; i++) {
+ reg = carthw_ssf2_banks[i];
+ carthw_ssf2_banks[i] = i;
+ carthw_ssf2_write8(0xa130f1 | (i << 1), reg);
+ }
}
static void carthw_ssf2_unload(void)