Search
lxdream.org :: lxdream/src/sh4/sh4core.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.c
changeset 18:9a1b5d75703f
prev16:f383e7640da4
next19:9da7a8e38f9d
author nkeynes
date Thu Dec 15 13:33:14 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Implement save states
file annotate diff log raw
1.1 --- a/src/sh4/sh4core.c Tue Dec 13 12:17:26 2005 +0000
1.2 +++ b/src/sh4/sh4core.c Thu Dec 15 13:33:14 2005 +0000
1.3 @@ -7,7 +7,7 @@
1.4 #include "intc.h"
1.5
1.6 void sh4_save( FILE *f );
1.7 -void sh4_load( FILE *f );
1.8 +int sh4_load( FILE *f );
1.9
1.10 struct dreamcast_module sh4_module = { "SH4", sh4_init, sh4_reset,
1.11 NULL, sh4_stop,
1.12 @@ -51,9 +51,10 @@
1.13 /* Save all additional on-board MMIO state */
1.14 }
1.15
1.16 -void sh4_load( FILE * f )
1.17 +int sh4_load( FILE * f )
1.18 {
1.19 -
1.20 + fread( &sh4r, sizeof(sh4r), 1, f );
1.21 + return 0;
1.22 }
1.23
1.24 void sh4_run(void)
.