comparison saves.h @ 1478:da1dce39e846 nuklear_ui

Refactored save slot related logic to reduce duplication and allow reuse in new UI. Get state loading/saving mostly working in new UI
author Michael Pavone <pavone@retrodev.com>
date Fri, 24 Nov 2017 12:04:02 -0800
parents
children 319d90025d50
comparison
equal deleted inserted replaced
1477:1cdd7f492af8 1478:da1dce39e846
1 #ifndef SAVES_H_
2 #define SAVES_H_
3
4 #include <time.h>
5 #include <stdint.h>
6 #include "system.h"
7
8 #define QUICK_SAVE_SLOT 10
9
10 typedef struct {
11 char *desc;
12 time_t modification_time;
13 } save_slot_info;
14
15 char *get_slot_name(system_header *system, uint32_t slot_index, char *ext);
16 save_slot_info *get_slot_info(system_header *system, uint32_t *num_out);
17 void free_slot_info(save_slot_info *slots);
18
19 #endif //SAVES_H_