mirror of
https://github.com/zeldaret/mm.git
synced 2026-05-26 23:47:02 -04:00
d8064bb070
* effect_ss_table.h * monkaBSS * format * Remove InitVars extern headers * Remove `const` from InitVars * cleanup * cleanup * format * bss * bss * bss
35 lines
986 B
C
35 lines
986 B
C
#include "z64effect.h"
|
|
#include "segment_symbols.h"
|
|
|
|
// Init Vars and linker symbol declarations (used in the table below)
|
|
#define DEFINE_EFFECT_SS(name, _enumValue) \
|
|
extern EffectSsInit name##_InitVars; \
|
|
DECLARE_OVERLAY_SEGMENT(name)
|
|
|
|
#define DEFINE_EFFECT_SS_UNSET(_enumValue)
|
|
|
|
#include "tables/effect_ss_table.h"
|
|
|
|
#undef DEFINE_EFFECT_SS
|
|
#undef DEFINE_EFFECT_SS_UNSET
|
|
|
|
#define DEFINE_EFFECT_SS(name, _enumValue) \
|
|
{ \
|
|
SEGMENT_ROM_START(ovl_##name), \
|
|
SEGMENT_ROM_END(ovl_##name), \
|
|
SEGMENT_START(ovl_##name), \
|
|
SEGMENT_END(ovl_##name), \
|
|
NULL, \
|
|
&name##_InitVars, \
|
|
1, \
|
|
},
|
|
|
|
#define DEFINE_EFFECT_SS_UNSET(_enumValue) { 0 },
|
|
|
|
EffectSsOverlay gParticleOverlayTable[] = {
|
|
#include "tables/effect_ss_table.h"
|
|
};
|
|
|
|
#undef DEFINE_EFFECT_SS
|
|
#undef DEFINE_EFFECT_SS_UNSET
|