implement retro_serialize/unserialize

This commit is contained in:
aliaspider
2014-12-10 11:06:17 +01:00
parent 13d5e9c875
commit ad485d434a
15 changed files with 184 additions and 236 deletions

19
cpu.c
View File

@@ -4428,14 +4428,13 @@ void move_reg(u32 *new_reg)
}
#define cpu_savestate_builder(type) \
void cpu_##type##_savestate(file_tag_type savestate_file) \
{ \
file_##type(savestate_file, reg, 0x100); \
file_##type##_array(savestate_file, spsr); \
file_##type##_array(savestate_file, reg_mode); \
} \
cpu_savestate_builder(read);
cpu_savestate_builder(write_mem);
#define cpu_savestate_builder(type) \
void cpu_##type##_savestate(void) \
{ \
state_mem_##type(reg, 0x100); \
state_mem_##type##_array(spsr); \
state_mem_##type##_array(reg_mode); \
}
cpu_savestate_builder(read)
cpu_savestate_builder(write)