-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathsavestate.h
43 lines (35 loc) · 1.33 KB
/
savestate.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef GAMEJAM2024_SAVESTATE_H
#define GAMEJAM2024_SAVESTATE_H
/*==============================
savestate_initialize
Initialize the savestate system and return whether EEPROM exists
@return Whether EEPROM is present
==============================*/
extern bool savestate_initialize();
/*==============================
savestate_checkcrashed
Check if the game recently crashed
@return Whether the game recently crashed
==============================*/
extern bool savestate_checkcrashed();
/*==============================
savestate_save
Save the current game state to EEPROM
==============================*/
extern void savestate_save(bool configonly);
/*==============================
savestate_load
Load the game state saved in EEPROM
==============================*/
extern void savestate_load();
/*==============================
savestate_clear
Clear the game state saved in EEPROM
==============================*/
extern void savestate_clear();
extern void savestate_setblacklist(bool* list);
extern void savestate_getblacklist(bool* list);
extern void loadsave_init();
extern void loadsave_loop(float deltatime);
extern void loadsave_cleanup();
#endif