Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jgcodes2020 opened this issue Apr 1, 2024 · 0 comments
Open

Comments

@jgcodes2020
Copy link

jgcodes2020 commented Apr 1, 2024

This might be useful for several things:

  • For frontends implementing input recording, savestates can store input data and an associated input file, allowing the recovery of an input sequence that was previously overwritten
  • Frontends can store an image of the framebuffer, and present that image when they load a savestate.

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant