fix regression with gate flipping
[carveJwlIkooP6JGAAIwe30JlM.git] / save.h
1 #pragma once
2 #include "vg/vg_platform.h"
3 #include "vg/vg_msg.h"
4 #include "addon.h"
5
6 typedef struct savedata_file savedata_file;
7 typedef struct savedata_group savedata_group;
8
9 struct savedata_group {
10 u32 file_count;
11 struct savedata_file {
12 char path[128];
13 u8 buf[2048];
14 u32 len;
15 }
16 files[];
17 };
18
19 void savedata_file_read( savedata_file *file );
20 void savedata_file_write( savedata_file *file );
21 void savedata_group_write( savedata_group *group );
22 int skaterift_autosave(int async);
23 void skaterift_autosave_synchronous(void);
24 void skaterift_autosave_update(void);
25 void skaterift_read_addon_alias( vg_msg *msg, const char *key,
26 enum addon_type type,
27 addon_alias *alias );
28
29 void skaterift_read_main_savedata( savedata_file *file );