notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some more risky timing changes
[picodrive.git]
/
pico
/
state.c
diff --git
a/pico/state.c
b/pico/state.c
index
089957e
..
f4e685f
100644
(file)
--- a/
pico/state.c
+++ b/
pico/state.c
@@
-7,7
+7,7
@@
*/
\r
\r
#include "pico_int.h"
\r
*/
\r
\r
#include "pico_int.h"
\r
-#include <zlib
/zlib
.h>
\r
+#include <zlib.h>
\r
\r
#include "../cpu/sh2/sh2.h"
\r
#include "sound/ym2612.h"
\r
\r
#include "../cpu/sh2/sh2.h"
\r
#include "sound/ym2612.h"
\r
@@
-589,6
+589,9
@@
readend:
if (PicoAHW & PAHW_32X)
\r
Pico32xStateLoaded(1);
\r
\r
if (PicoAHW & PAHW_32X)
\r
Pico32xStateLoaded(1);
\r
\r
+ if (PicoLoadStateHook != NULL)
\r
+ PicoLoadStateHook();
\r
+
\r
// must unpack 68k and z80 after banks are set up
\r
if (!(PicoAHW & PAHW_SMS))
\r
SekUnpackCpu(buff_m68k, 0);
\r
// must unpack 68k and z80 after banks are set up
\r
if (!(PicoAHW & PAHW_SMS))
\r
SekUnpackCpu(buff_m68k, 0);
\r
@@
-683,9
+686,8
@@
static int pico_state_internal(void *afile, int is_save)
ret = state_load_legacy(afile);
\r
}
\r
\r
ret = state_load_legacy(afile);
\r
}
\r
\r
- if (PicoLoadStateHook != NULL)
\r
- PicoLoadStateHook();
\r
Pico.m.dirtyPal = 1;
\r
Pico.m.dirtyPal = 1;
\r
+ Pico.video.status &= ~(SR_VB | SR_F);
\r
}
\r
\r
return ret;
\r
}
\r
\r
return ret;
\r