performance measurements
[carveJwlIkooP6JGAAIwe30JlM.git] / save.h
1 #ifndef SAVE_H
2 #define SAVE_H
3
4 #include "vg/vg_stdint.h"
5
6 static const char *str_skaterift_main_save = "save.bkv";
7 static f64 skaterift_last_autosave = 0.0;
8
9 typedef struct savedata_file savedata_file;
10 typedef struct savedata_group savedata_group;
11
12 struct savedata_group {
13 u32 file_count;
14 struct savedata_file {
15 char path[128];
16 u8 buf[2048];
17 u32 len;
18 }
19 files[];
20 };
21
22 static void savedata_file_read( savedata_file *file );
23 static void savedata_file_write( savedata_file *file );
24 static void savedata_group_write( savedata_group *group );
25
26 //static void skaterift_read_main_save( savedata_file *sav );
27 static int skaterift_autosave(int async);
28
29 #endif /* SAVE_H */