puae 2.3.1

parent 168d9d13
...@@ -5107,7 +5107,9 @@ static void vsync_handler_pre (void) ...@@ -5107,7 +5107,9 @@ static void vsync_handler_pre (void)
picasso_handle_vsync (); picasso_handle_vsync ();
#endif #endif
audio_vsync (); audio_vsync ();
#ifdef SCSIEMU
blkdev_vsync (); blkdev_vsync ();
#endif
CIA_vsync_prehandler (); CIA_vsync_prehandler ();
if (quit_program > 0) { if (quit_program > 0) {
......
...@@ -679,8 +679,12 @@ void savestate_restore_finish (void) ...@@ -679,8 +679,12 @@ void savestate_restore_finish (void)
restore_audio_finish (); restore_audio_finish ();
restore_disk_finish (); restore_disk_finish ();
restore_blitter_finish (); restore_blitter_finish ();
#ifdef CD32
restore_akiko_finish (); restore_akiko_finish ();
#endif
#ifdef CDTV
restore_cdtv_finish (); restore_cdtv_finish ();
#endif
restore_p96_finish (); restore_p96_finish ();
#ifdef A2065 #ifdef A2065
restore_a2065_finish (); restore_a2065_finish ();
...@@ -927,6 +931,7 @@ static int save_state_internal (struct zfile *f, const TCHAR *description, int c ...@@ -927,6 +931,7 @@ static int save_state_internal (struct zfile *f, const TCHAR *description, int c
} }
} }
#endif #endif
#ifdef GAYLE
dst = save_gayle (&len, NULL); dst = save_gayle (&len, NULL);
if (dst) { if (dst) {
save_chunk (f, dst, len, "GAYL", 0); save_chunk (f, dst, len, "GAYL", 0);
...@@ -939,7 +944,8 @@ static int save_state_internal (struct zfile *f, const TCHAR *description, int c ...@@ -939,7 +944,8 @@ static int save_state_internal (struct zfile *f, const TCHAR *description, int c
xfree (dst); xfree (dst);
} }
} }
#endif
#ifdef CDTV
for (i = 0; i < MAX_TOTAL_SCSI_DEVICES; i++) { for (i = 0; i < MAX_TOTAL_SCSI_DEVICES; i++) {
dst = save_cd (i, &len); dst = save_cd (i, &len);
if (dst) { if (dst) {
...@@ -947,7 +953,7 @@ static int save_state_internal (struct zfile *f, const TCHAR *description, int c ...@@ -947,7 +953,7 @@ static int save_state_internal (struct zfile *f, const TCHAR *description, int c
save_chunk (f, dst, len, name, 0); save_chunk (f, dst, len, name, 0);
} }
} }
#endif
dst = save_debug_memwatch (&len, NULL); dst = save_debug_memwatch (&len, NULL);
if (dst) { if (dst) {
save_chunk (f, dst, len, "DMWP", 0); save_chunk (f, dst, len, "DMWP", 0);
...@@ -1223,12 +1229,14 @@ void savestate_rewind (void) ...@@ -1223,12 +1229,14 @@ void savestate_rewind (void)
if (restore_u32_func (&p)) if (restore_u32_func (&p))
p = restore_dmac (p); p = restore_dmac (p);
#endif #endif
#ifdef GAYLE
if (restore_u32_func (&p)) if (restore_u32_func (&p))
p = restore_gayle (p); p = restore_gayle (p);
for (i = 0; i < 4; i++) { for (i = 0; i < 4; i++) {
if (restore_u32_func (&p)) if (restore_u32_func (&p))
p = restore_ide (p); p = restore_ide (p);
} }
#endif
p += 4; p += 4;
if (p != p2) { if (p != p2) {
gui_message ("reload failure, address mismatch %p != %p", p, p2); gui_message ("reload failure, address mismatch %p != %p", p, p2);
...@@ -1565,6 +1573,7 @@ retry2: ...@@ -1565,6 +1573,7 @@ retry2:
p += len; p += len;
} }
#endif #endif
#ifdef GAYLE
if (bufcheck (st, p, 0)) if (bufcheck (st, p, 0))
goto retry; goto retry;
p3 = p; p3 = p;
...@@ -1587,6 +1596,7 @@ retry2: ...@@ -1587,6 +1596,7 @@ retry2:
p += len; p += len;
} }
} }
#endif
save_u32_func (&p, tlen); save_u32_func (&p, tlen);
st->end = p; st->end = p;
st->inuse = 1; st->inuse = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment