|
- #ifndef NESE_SAVE_H_
- #define NESE_SAVE_H_
-
- #include "nes.h"
-
-
- int load_sram(nes_cart* cart, const char* filename);
- int save_sram(const nes_cart* cart, const char* filename);
-
- int state_size(const nes*);
- int state_read(nes*, const void* mem, int size);
- int state_write(const nes*, void* mem, int size);
-
- int load_state(nes*, const char* filename);
- int save_state(const nes*, const char* filename);
-
- /*
- // Chunking
-
- typedef struct {
- int offset;
- int size;
- } nese_io_chunk;
-
- int write_chunks(void* dst, int dst_len, const void* src,
- const nese_io_chunk* chunks, int n_chunks);
-
- int read_chunks(const void* src, int src_len, void* dst,
- const nese_io_chunk* chunks, int n_chunks);
- */
-
- #endif // NESE_SAVE_H_
|