Skip to content

Commit

Permalink
Simplify and split save and savestate logic
Browse files Browse the repository at this point in the history
save.c contains "SRAM" saves and their logic, which uses no task/queue.
  • Loading branch information
davidgfnet committed Dec 28, 2023
1 parent b3314ee commit ffd8a00
Show file tree
Hide file tree
Showing 5 changed files with 601 additions and 574 deletions.
1 change: 1 addition & 0 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ ifeq ($(HAVE_PATCH), 1)
endif

OBJ += \
save.o \
tasks/task_save.o \
tasks/task_movie.o \
tasks/task_file_transfer.o \
Expand Down
6 changes: 0 additions & 6 deletions content.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ typedef struct content_ctx_info
int argc; /* Argument count. */
} content_ctx_info_t;

/* Load a RAM state from disk to memory. */
bool content_load_ram_file(unsigned slot);

/* Save a RAM state from memory to disk. */
bool content_save_ram_file(unsigned slot, bool compress);

/* Load a state from memory. */
bool content_load_state_from_ram(void);

Expand Down
1 change: 1 addition & 0 deletions griffin/griffin.c
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,7 @@ DATA RUNLOOP
#endif
#endif
#endif
#include "../save.c"
#include "../tasks/task_save.c"
#include "../tasks/task_movie.c"
#include "../tasks/task_image.c"
Expand Down
Loading

0 comments on commit ffd8a00

Please sign in to comment.