mirror of
https://github.com/zeldaret/mm.git
synced 2026-08-07 18:21:59 -04:00
Move segment symbols declarations back to segment_symbols.h
This commit is contained in:
@@ -76,6 +76,16 @@ DECLARE_OVERLAY_SEGMENT(daytelop)
|
||||
DECLARE_OVERLAY_SEGMENT(kaleido_scope)
|
||||
DECLARE_OVERLAY_SEGMENT(player_actor)
|
||||
|
||||
#define DEFINE_ACTOR(name, _1, _2, _3) DECLARE_OVERLAY_SEGMENT(name)
|
||||
#define DEFINE_ACTOR_INTERNAL(_0, _1, _2, _3)
|
||||
#define DEFINE_ACTOR_UNSET(_0)
|
||||
|
||||
#include "tables/actor_table.h"
|
||||
|
||||
#undef DEFINE_ACTOR
|
||||
#undef DEFINE_ACTOR_INTERNAL
|
||||
#undef DEFINE_ACTOR_UNSET
|
||||
|
||||
DECLARE_ROM_SEGMENT(gameplay_keep)
|
||||
DECLARE_ROM_SEGMENT(gameplay_field_keep)
|
||||
DECLARE_ROM_SEGMENT(gameplay_dangeon_keep)
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
#include "global.h"
|
||||
|
||||
// Linker symbol declarations (used in the table below)
|
||||
#define DEFINE_ACTOR(name, _1, _2, _3) DECLARE_OVERLAY_SEGMENT(name)
|
||||
#define DEFINE_ACTOR_INTERNAL(_0, _1, _2, _3)
|
||||
#define DEFINE_ACTOR_UNSET(_0)
|
||||
|
||||
#include "tables/actor_table.h"
|
||||
|
||||
#undef DEFINE_ACTOR
|
||||
#undef DEFINE_ACTOR_INTERNAL
|
||||
#undef DEFINE_ACTOR_UNSET
|
||||
|
||||
// Init Vars declarations (also used in the table below)
|
||||
#define DEFINE_ACTOR(name, _1, _2, _3) extern ActorInit name##_InitVars;
|
||||
#define DEFINE_ACTOR_INTERNAL(name, _1, _2, _3) extern ActorInit name##_InitVars;
|
||||
|
||||
Reference in New Issue
Block a user