-
Notifications
You must be signed in to change notification settings - Fork 3
/
Base Buildfile.event
48 lines (29 loc) · 1.45 KB
/
Base Buildfile.event
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
#ifndef BASE
#define BASE
#ifdef _FE8_
/*
This is the buildfile for the "base" ROM. This will be built on top of a vanilla ROM, and will contain all the big assets (graphics, music, text), that way we won't need to insert those every time.
I would include Tables & Maps here too, but Tables are pretty dependant on stuff from the main buildfile, and Maps need to overwrite stuff from tables. So those aren't quite an option yet.
This works because of a feature introduced in EA 11.1: since we can use the "-symOutput=..." option to output labels to a file, we can "share" those labels with other buildfiles (ROM Buildfile.event in our case).
*/
#include "eastdlib.event"
#include "Custom Definitions.event"
ORG FreeSpace_Base
// Text
MESSAGE Start of free space at currentOffset
#include "Text/Install Text Data.event"
MESSAGE Used text space ends at currentOffset
// Graphics
#include "Mugs/Mug Installer.event"
MESSAGE Used mug space ends at currentOffset
#include "Graphics/Master Graphics Installer.event"
MESSAGE Used graphics space ends at currentOffset
// Music
ORG FreeSpace // For music, we're going in general free space (after the end of the ROM that is), since that's a lot more data than everything else (I think?)
MESSAGE Music and sounds start at currentOffset
#include "Music/Music Installer.event"
MESSAGE Used music and sound space ends at currentOffset
#else
ERROR fe8 pls
#endif // _FE8_
#endif // BASE