-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathzstate.h
More file actions
37 lines (28 loc) · 872 Bytes
/
Copy pathzstate.h
File metadata and controls
37 lines (28 loc) · 872 Bytes
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
#ifndef ZSTATE_H
#define ZSTATE_H
#include <stdint.h>
#include <time.h>
#include "types.h"
int zst_exists(void);
void BackupSystemVars(void);
void LoadSecondState(void);
void RestoreSystemVars(void);
void SaveSecondState(void);
void SaveSramData(void);
void loadstate(void);
void loadstate2(void);
void savespcdata(void);
void statesaver(void);
void zst_determine_newest(void);
extern time_t newestfiledate;
extern uint32_t current_zst;
extern uint32_t newest_zst;
extern char spcsaved[16];
extern u4 Totalbyteloaded;
uint64_t zst_state_hash(void);
/* Non-zero if any cartridge would produce two state formats of the same
length, which the loader tells apart by length alone. */
int zst_format_check(void);
/* How much longer a state from the 64-bit 2.3.0/2.3.1 releases is. */
enum { ZST_WIDE_EXTRA = 8 * (4 * 8 + 3) - 8 * (4 * 4 + 3) + 8 * (8 - 4) };
#endif