From 27b829ffc447758832cbd7ab2f9b7e427928d687 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 24 Nov 2017 12:04:02 -0800 Subject: Refactored save slot related logic to reduce duplication and allow reuse in new UI. Get state loading/saving mostly working in new UI --HG-- branch : nuklear_ui --- saves.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 saves.h (limited to 'saves.h') diff --git a/saves.h b/saves.h new file mode 100644 index 0000000..6964e82 --- /dev/null +++ b/saves.h @@ -0,0 +1,19 @@ +#ifndef SAVES_H_ +#define SAVES_H_ + +#include +#include +#include "system.h" + +#define QUICK_SAVE_SLOT 10 + +typedef struct { + char *desc; + time_t modification_time; +} save_slot_info; + +char *get_slot_name(system_header *system, uint32_t slot_index, char *ext); +save_slot_info *get_slot_info(system_header *system, uint32_t *num_out); +void free_slot_info(save_slot_info *slots); + +#endif //SAVES_H_ -- cgit v1.2.3