mirror of
https://github.com/zeldaret/mm.git
synced 2026-08-07 10:15:22 -04:00
Effect_soft_sprite_old_init and particleOverlayTable OK (#520)
* Migrated data * Migrate particleOverlayTable * Import data for effect_soft_sprite, add g to effect table, minor cleanup of z64effect.h * Name data * Comment out static variable in variables.h * Use better macros * PR review and other cleanup * Update bug comment
This commit is contained in:
@@ -1,6 +1,39 @@
|
||||
#ifndef _INITVARS_H_
|
||||
#define _INITVARS_H_
|
||||
|
||||
extern EffectSsInit Effect_Ss_Dust_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Kirakira_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Bomb2_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Blast_InitVars;
|
||||
extern EffectSsInit Effect_Ss_G_Spk_InitVars;
|
||||
extern EffectSsInit Effect_Ss_D_Fire_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Bubble_InitVars;
|
||||
extern EffectSsInit Effect_Ss_G_Ripple_InitVars;
|
||||
extern EffectSsInit Effect_Ss_G_Splash_InitVars;
|
||||
extern EffectSsInit Effect_Ss_G_Fire_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Lightning_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Dt_Bubble_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Hahen_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Stick_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Sibuki_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Stone1_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Hitmark_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Fhg_Flash_InitVars;
|
||||
extern EffectSsInit Effect_Ss_K_Fire_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Solder_Srch_Ball_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Kakera_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Ice_Piece_InitVars;
|
||||
extern EffectSsInit Effect_Ss_En_Ice_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Fire_Tail_InitVars;
|
||||
extern EffectSsInit Effect_Ss_En_Fire_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Extra_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Dead_Db_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Dead_Dd_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Dead_Ds_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Ice_Smoke_InitVars;
|
||||
extern EffectSsInit Effect_En_Ice_Block_InitVars;
|
||||
extern EffectSsInit Effect_Ss_Sbn_InitVars;
|
||||
|
||||
extern ActorInit Arms_Hook_InitVars;
|
||||
extern ActorInit Arrow_Fire_InitVars;
|
||||
extern ActorInit Arrow_Ice_InitVars;
|
||||
|
||||
+2
-2
@@ -382,7 +382,7 @@ extern UNK_PTR D_801AE260[3];
|
||||
// extern UNK_TYPE4 D_801AE2BC;
|
||||
// extern UNK_TYPE4 D_801AE2CC;
|
||||
// extern UNK_TYPE4 D_801AE2DC;
|
||||
extern EffectSsInfo EffectSS2Info;
|
||||
// extern EffectSsInfo sEffectSsInfo;
|
||||
// extern UNK_TYPE1 D_801AE3B0;
|
||||
// extern UNK_TYPE1 D_801AE3B4;
|
||||
// extern UNK_TYPE4 D_801AE3B8;
|
||||
@@ -410,7 +410,7 @@ extern EffectSsInfo EffectSS2Info;
|
||||
// extern UNK_TYPE1 D_801AE48A;
|
||||
// extern UNK_TYPE1 D_801AE48C;
|
||||
// extern UNK_TYPE1 D_801AE490;
|
||||
extern EffectSsOverlay particleOverlayTable[39];
|
||||
extern EffectSsOverlay gParticleOverlayTable[39];
|
||||
// extern FlagSetEntry sFlagEntries[];
|
||||
// extern s32 sEntryIndex;
|
||||
// extern u32 sCurrentBit;
|
||||
|
||||
+1
-22
@@ -254,7 +254,7 @@ typedef struct {
|
||||
/* 0x0C */ void* vramEnd;
|
||||
/* 0x10 */ void* loadedRamAddr;
|
||||
/* 0x14 */ EffectSsInit* initInfo;
|
||||
/* 0x18 */ u32 unk18; // Always 0x01000000?
|
||||
/* 0x18 */ u8 unk18; // Always 1?
|
||||
} EffectSsOverlay; // size = 0x1C
|
||||
|
||||
typedef struct EffectSs {
|
||||
@@ -279,27 +279,6 @@ typedef struct {
|
||||
/* 0x8 */ s32 size;
|
||||
} EffectSsInfo; // size = 0xC
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ EffectSs* data_table; // Name from debug assert
|
||||
/* 0x4 */ s32 searchIndex;
|
||||
/* 0x8 */ s32 size;
|
||||
} EffectTableInfo; // size = 0xC
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ UNK_TYPE4 unk0;
|
||||
/* 0x4 */ EffectSsInitFunc init;
|
||||
} ParticleOverlayInfo; // size = 0x8
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ u32 vromStart;
|
||||
/* 0x04 */ u32 vromEnd;
|
||||
/* 0x08 */ void* vramStart;
|
||||
/* 0x0C */ void* vramEnd;
|
||||
/* 0x10 */ void* loadedRamAddr;
|
||||
/* 0x14 */ ParticleOverlayInfo* overlayInfo;
|
||||
/* 0x18 */ u32 unk18; // Always 0x01000000?
|
||||
} ParticleOverlay; // size = 0x1C
|
||||
|
||||
typedef enum {
|
||||
/* 0x00 */ EFFECT_SS_DUST,
|
||||
/* 0x01 */ EFFECT_SS_KIRAKIRA,
|
||||
|
||||
Reference in New Issue
Block a user