summaryrefslogtreecommitdiff
path: root/saves.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-03-25 12:01:49 -0700
committerMichael Pavone <pavone@retrodev.com>2018-03-25 12:01:49 -0700
commita5d5c017589945008024f111c06894f5724d6c3b (patch)
treea06db423e81d53aee66cfa0b0ca366bd57d71dc8 /saves.h
parent15af9462392967b6adf7ba6ff4f7ff778cf10eb3 (diff)
parentb6feecb6c12566e9ea826cb67701008f9e423eea (diff)
Merged nuklear_ui into default
Diffstat (limited to 'saves.h')
-rw-r--r--saves.h19
1 files changed, 19 insertions, 0 deletions
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 <time.h>
+#include <stdint.h>
+#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_