From ad485d434adfa2f01e643e321b9e23c17df1edd0 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Wed, 10 Dec 2014 11:06:17 +0100 Subject: implement retro_serialize/unserialize --- main.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index f09da4d..5f734da 100644 --- a/main.c +++ b/main.c @@ -600,17 +600,17 @@ void make_rpath(char *buff, size_t size, const char *ext) strcpy(p, ext); } -#define main_savestate_builder(type) \ -void main_##type##_savestate(file_tag_type savestate_file) \ -{ \ - file_##type##_variable(savestate_file, cpu_ticks); \ - file_##type##_variable(savestate_file, execute_cycles); \ - file_##type##_variable(savestate_file, video_count); \ - file_##type##_array(savestate_file, timer); \ -} \ - -main_savestate_builder(read); -main_savestate_builder(write_mem); +#define main_savestate_builder(type) \ +void main_##type##_savestate(void) \ +{ \ + state_mem_##type##_variable(cpu_ticks); \ + state_mem_##type##_variable(execute_cycles); \ + state_mem_##type##_variable(video_count); \ + state_mem_##type##_array(timer); \ +} + +main_savestate_builder(read) +main_savestate_builder(write) void printout(void *str, u32 val) -- cgit v1.2.3