-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgbxcart.h
49 lines (38 loc) · 942 Bytes
/
gbxcart.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
44
45
46
47
48
49
#define FUSE_USE_VERSION 34
#include <fuse_lowlevel.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <pthread.h>
#include "setup.h"
#include <dirent.h>
#include <time.h>
#define GAME_INO 2
#define SAVE_INO 3
#define notify_inode(inode) assert(fuse_lowlevel_notify_inval_inode(se, inode, 0, 0) == 0)
extern struct options {
int ramOnly;
int reread;
int readonly;
const char *filename;
const char *cache_path;
} options;
extern unsigned int save_reserved_mem;
extern unsigned int game_reserved_mem;
struct FileInfo {
unsigned int size;
char name[20];
char *data;
};
extern struct FileInfo dmp;
extern struct FileInfo dmp_save;
extern struct FileInfo ramOnlyFile;
extern struct FileInfo nogame;
extern struct FileInfo nosave;
extern struct FileInfo *save;
extern struct FileInfo *game;
extern int condition;
extern pthread_mutex_t mutex;
extern pthread_cond_t cond;
int gba();
void *Thandler(void *ptr);