mupen64plus / mupen64plus-core

Core module of the Mupen64Plus project
1.25k stars 254 forks source link

[RFC] Introduce an API to add frontend-specific data to savestates #1066

Open jgcodes2020 opened 3 months ago

jgcodes2020 commented 3 months ago

This might be useful for several things:

Proposed API:

typedef struct {
  void* cb_data;

  void (*save_extra_data)(void* context, const void** data_out, unsigned int* len_out);
  void (*load_extra_data)(void* context, void* data, unsigned int len);
} m64p_save_data_handler;