mirror of
https://github.com/FunKey-Project/gpsp_libretro.git
synced 2026-09-11 02:25:01 +02:00
implement retro_serialize/unserialize
This commit is contained in:
19
cpu.c
19
cpu.c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user