-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathScript.h
More file actions
47 lines (34 loc) · 759 Bytes
/
Copy pathScript.h
File metadata and controls
47 lines (34 loc) · 759 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
38
39
40
41
42
43
44
45
46
47
#ifndef SCRIPT_H
#define SCRIPT_H
#include <stddef.h>
#include "File.h"
typedef struct AgsScriptInfo {
size_t start;
size_t len;
size_t globaldatasize;
size_t codesize;
size_t stringssize;
size_t globaldatastart;
size_t codestart;
size_t stringsstart;
size_t fixupcount;
size_t fixupstart;
size_t importcount;
size_t importstart;
size_t exportcount;
size_t exportstart;
size_t sectioncount;
size_t sectionstart;
int version;
} ASI;
enum DisasmFlags {
DISAS_DEBUG_BYTECODE = 1 << 0,
DISAS_DEBUG_OFFSETS = 1 << 1,
DISAS_SKIP_LINENO = 1 << 2,
DISAS_DEBUG_FIXUPS = 1 << 3,
DISAS_VERBOSE = 1 << 4,
};
int ASI_read_script(AF *a, ASI* s);
int ASI_disassemble(AF* a, ASI* s, char *fn, int flags);
#pragma RcB2 DEP "Script.c"
#endif