Merge pull request #438 from s4Ys369/revert-434-patch-1
[sm64pc.git] / include / segment_symbols.h
blob26d65cde904e567aed0831b7004c7c3b00f4c5da
1 #ifndef SEGMENT_SYMBOLS_H
2 #define SEGMENT_SYMBOLS_H
4 #define DECLARE_SEGMENT(name) \
5 static u8 _##name##SegmentRomStart[1]; \
6 static u8 _##name##SegmentRomEnd[1];
8 #define DECLARE_ACTOR_SEGMENT(name) \
9 DECLARE_SEGMENT(name##_mio0) \
10 DECLARE_SEGMENT(name##_geo)
12 #define DECLARE_LEVEL_SEGMENT(name) \
13 DECLARE_SEGMENT(name) \
14 DECLARE_SEGMENT(name##_segment_7)
16 DECLARE_ACTOR_SEGMENT(common0)
17 DECLARE_ACTOR_SEGMENT(common1)
18 DECLARE_ACTOR_SEGMENT(group0)
19 DECLARE_ACTOR_SEGMENT(group1)
20 DECLARE_ACTOR_SEGMENT(group2)
21 DECLARE_ACTOR_SEGMENT(group3)
22 DECLARE_ACTOR_SEGMENT(group4)
23 DECLARE_ACTOR_SEGMENT(group5)
24 DECLARE_ACTOR_SEGMENT(group6)
25 DECLARE_ACTOR_SEGMENT(group7)
26 DECLARE_ACTOR_SEGMENT(group8)
27 DECLARE_ACTOR_SEGMENT(group9)
28 DECLARE_ACTOR_SEGMENT(group10)
29 DECLARE_ACTOR_SEGMENT(group11)
30 DECLARE_ACTOR_SEGMENT(group12)
31 DECLARE_ACTOR_SEGMENT(group13)
32 DECLARE_ACTOR_SEGMENT(group14)
33 DECLARE_ACTOR_SEGMENT(group15)
34 DECLARE_ACTOR_SEGMENT(group16)
35 DECLARE_ACTOR_SEGMENT(group17)
37 DECLARE_SEGMENT(behavior)
38 DECLARE_SEGMENT(scripts)
39 DECLARE_SEGMENT(goddard)
40 static u8 _goddardSegmentStart[1];
42 DECLARE_LEVEL_SEGMENT(menu)
43 DECLARE_LEVEL_SEGMENT(intro)
44 DECLARE_LEVEL_SEGMENT(ending)
46 #define STUB_LEVEL(_0, _1, _2, _3, _4, _5, _6, _7, _8)
47 #define DEFINE_LEVEL(_0, _1, _2, folder, _4, _5, _6, _7, _8, _9, _10) DECLARE_LEVEL_SEGMENT(folder)
49 #include "levels/level_defines.h"
51 #undef STUB_LEVEL
52 #undef DEFINE_LEVEL
54 DECLARE_SEGMENT(water_skybox_mio0)
55 DECLARE_SEGMENT(ccm_skybox_mio0)
56 DECLARE_SEGMENT(clouds_skybox_mio0)
57 DECLARE_SEGMENT(bitfs_skybox_mio0)
58 DECLARE_SEGMENT(wdw_skybox_mio0)
59 DECLARE_SEGMENT(cloud_floor_skybox_mio0)
60 DECLARE_SEGMENT(ssl_skybox_mio0)
61 DECLARE_SEGMENT(bbh_skybox_mio0)
62 DECLARE_SEGMENT(bidw_skybox_mio0)
63 DECLARE_SEGMENT(bits_skybox_mio0)
65 DECLARE_SEGMENT(fire_mio0)
66 DECLARE_SEGMENT(spooky_mio0)
67 DECLARE_SEGMENT(generic_mio0)
68 DECLARE_SEGMENT(water_mio0)
69 DECLARE_SEGMENT(sky_mio0)
70 DECLARE_SEGMENT(snow_mio0)
71 DECLARE_SEGMENT(cave_mio0)
72 DECLARE_SEGMENT(machine_mio0)
73 DECLARE_SEGMENT(mountain_mio0)
74 DECLARE_SEGMENT(grass_mio0)
75 DECLARE_SEGMENT(outside_mio0)
76 DECLARE_SEGMENT(inside_mio0)
77 DECLARE_SEGMENT(effect_mio0)
78 DECLARE_SEGMENT(title_screen_bg_mio0)
80 DECLARE_SEGMENT(debug_level_select_mio0)
82 #endif