mirror of
https://github.com/FunKey-Project/gpsp_libretro.git
synced 2026-09-06 16:24:33 +02:00
implement retro_serialize/unserialize
This commit is contained in:
15
input.c
15
input.c
@@ -88,12 +88,11 @@ u32 update_input(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define input_savestate_builder(type) \
|
||||
void input_##type##_savestate(file_tag_type savestate_file) \
|
||||
{ \
|
||||
file_##type##_variable(savestate_file, key); \
|
||||
} \
|
||||
|
||||
input_savestate_builder(read);
|
||||
input_savestate_builder(write_mem);
|
||||
#define input_savestate_builder(type) \
|
||||
void input_##type##_savestate(void) \
|
||||
{ \
|
||||
state_mem_##type##_variable(key); \
|
||||
}
|
||||
|
||||
input_savestate_builder(read)
|
||||
input_savestate_builder(write)
|
||||
|
||||
Reference in New Issue
Block a user