Search
lxdream.org :: lxdream/src/modules.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/modules.h
changeset 17:944f75eea496
prev15:5194dd0fdb60
next23:1ec3acd0594d
author nkeynes
date Tue Dec 13 14:47:59 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change More work on load/save state - save state a little more structured now
Memory save now in
file annotate diff log raw
1.1 --- a/src/modules.h Mon Dec 12 13:11:11 2005 +0000
1.2 +++ b/src/modules.h Tue Dec 13 14:47:59 2005 +0000
1.3 @@ -41,8 +41,9 @@
1.4 /**
1.5 * Load the saved module state from the FILE stream. May be NULL, in which
1.6 * case reset() will be called instead.
1.7 + * @return 0 on success, nonzero on failure.
1.8 */
1.9 - void (*load)(FILE *);
1.10 + int (*load)(FILE *);
1.11 } *dreamcast_module_t;
1.12
1.13 void dreamcast_register_module( dreamcast_module_t );
1.14 @@ -57,6 +58,9 @@
1.15 extern struct dreamcast_module pvr2_module;
1.16 extern struct dreamcast_module gui_module;
1.17
1.18 +void fwrite_string( char *s, FILE *f );
1.19 +int fread_string( char *s, int maxlen, FILE *f );
1.20 +
1.21 #ifdef __cplusplus
1.22 }
1.23 #endif
.