DataFile: add API to access spriteflags count/offset
[rofl0r-agsutils.git] / Script.h
blobef5f8c640d5262fc1191c04ae77394dfc046d9e4
1 #ifndef SCRIPT_H
2 #define SCRIPT_H
4 #include <stddef.h>
5 #include "File.h"
7 typedef struct AgsScriptInfo {
8 size_t start;
9 size_t len;
11 size_t globaldatasize;
12 size_t codesize;
13 size_t stringssize;
15 size_t globaldatastart;
16 size_t codestart;
17 size_t stringsstart;
19 size_t fixupcount;
20 size_t fixupstart;
22 size_t importcount;
23 size_t importstart;
25 size_t exportcount;
26 size_t exportstart;
28 size_t sectioncount;
29 size_t sectionstart;
31 int version;
32 } ASI;
34 enum DisasmFlags {
35 DISAS_DEBUG_BYTECODE = 1 << 0,
36 DISAS_DEBUG_OFFSETS = 1 << 1,
37 DISAS_SKIP_LINENO = 1 << 2,
38 DISAS_DEBUG_FIXUPS = 1 << 3,
41 int ASI_read_script(AF *a, ASI* s);
42 int ASI_disassemble(AF* a, ASI* s, char *fn, int flags);
44 #pragma RcB2 DEP "Script.c"
46 #endif