-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathC.lua
More file actions
70 lines (64 loc) · 1.08 KB
/
Copy pathC.lua
File metadata and controls
70 lines (64 loc) · 1.08 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---@meta
---A table containing the exported constants
---@enum C
C = {
---@enum
CHECKSUM = {
CRC32 = 0
},
---@enum
GBA_KEY = {
A = 0,
B = 1,
SELECT = 2,
START = 3,
RIGHT = 4,
LEFT = 5,
UP = 6,
DOWN = 7,
R = 8,
L = 9
},
---@enum
GB_KEY = {
A = 0,
B = 1,
SELECT = 2,
START = 3,
RIGHT = 4,
LEFT = 5,
UP = 6,
DOWN = 7
},
---@enum
PLATFORM = {
NONE = -1,
GBA = 0,
GB = 1
},
---@enum
SAVESTATE = {
SCREENSHOT = 1,
SAVEDATA = 2,
CHEATS = 4,
RTC = 8,
METADATA = 16,
ALL = 31
},
---@enum
SOCKERR = {
UNKNOWN_ERROR = -1,
OK = 0,
AGAIN = 1,
ADDRESS_IN_USE = 2,
CONNECTION_REFUSED = 3,
DENIED = 4,
FAILED = 5,
NETWORK_UNREACHABLE = 6,
NOT_FOUND = 7,
NO_DATA = 8,
OUT_OF_MEMORY = 9,
TIMEOUT = 10,
UNSUPPORTED = 11
}
}