mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-06 07:56:32 +00:00
Decompile most effect files in "code" (#144)
- `z_effect`: Matched and essentially all documented. - `z_eff_spark.c`: Decompiled (1 non matching left) and mostly documented. - `z_eff_shield_particle.c`: Matched and mostly documented. - `z_eff_blure.c`: Decompiled (5 non matchings left) and partially documented. - `z_effect_soft_sprite.c`: Matched and mostly documented. - `z_eff_ss_dead.c`: Matched but not documented. - `z_effect_soft_sprite_dlftbls.c`: "Matched" (only data, contains the effect ss overlay table). - `z_effect_soft_sprite_old_init.c`: Not decompiled, but functions are categorized by effect ss overlay. And they should be decompiled at the same time as their corresponding effect ss in the future. Other changes: - Added a lot of types/enums to `z64effect.h`and moved+renamed some structs from `z64.h` to this header - Added effect ss overlay segments to `segment_symbols.h` and effect ss init vars to `initvars.h` - Added a macro called `VTX_T` to generate a `Vtx_t` in the same style as `VTX` - Fixed `flg_set.c` .bss to be in the right file - Removed `tools/overlayhelpers/batchdisasm` since it's no longer relevant - Removed unused leftover asm from recent PRs
This commit is contained in:
parent
785011c33c
commit
e29b77919b
227 changed files with 3739 additions and 8132 deletions
|
@ -161,80 +161,130 @@ void __osSetWatchLo(u32);
|
|||
Actor* Item_DropCollectible(GlobalContext* globalCtx, Vec3f* spawnPos, s16 params);
|
||||
Actor* Item_DropCollectible2(GlobalContext* globalCtx, Vec3f* spawnPos, s16 params);
|
||||
void Item_DropCollectibleRandom(GlobalContext* globalCtx, Actor* fromActor, Vec3f* spawnPos, s16 params);
|
||||
// ? func_8001FDF0(?);
|
||||
// ? func_80020184(?);
|
||||
// ? func_800208E0(?);
|
||||
// ? func_80020A50(?);
|
||||
// ? func_80020F60(?);
|
||||
// ? func_80020FC0(?);
|
||||
// ? func_800214D0(?);
|
||||
// ? func_80021F00(?);
|
||||
// ? func_800224F4(?);
|
||||
// ? func_80022A10(?);
|
||||
// ? func_8002389C(?);
|
||||
void func_80024F0C(UNK_TYPE);
|
||||
void EffectBlure_AddVertex(EffectBlure* this, Vec3f* p1, Vec3f* p2);
|
||||
void EffectBlure_AddSpace(EffectBlure* this);
|
||||
void EffectBlure_Init1(void* thisx, void* initParamsx);
|
||||
void EffectBlure_Init2(void* thisx, void* initParamsx);
|
||||
void EffectBlure_Destroy(void* thisx);
|
||||
s32 EffectBlure_Update(void* thisx);
|
||||
void EffectBlure_Draw(void* thisx, GraphicsContext* gfxCtx);
|
||||
void EffectShieldParticle_Init(void* thisx, void* initParamsx);
|
||||
void EffectShieldParticle_Destroy(void* thisx);
|
||||
s32 EffectShieldParticle_Update(void* thisx);
|
||||
void EffectShieldParticle_Draw(void* thisx, GraphicsContext* gfxCtx);
|
||||
void EffectSpark_Init(void* thisx, void* initParamsx);
|
||||
void EffectSpark_Destroy(void* thisx);
|
||||
s32 EffectSpark_Update(void* thisx);
|
||||
void EffectSpark_Draw(void* thisx, GraphicsContext* gfxCtx);
|
||||
void func_80026230(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 arg3);
|
||||
void func_80026400(GlobalContext*, Color_RGBA8*, u8, s16);
|
||||
void func_80026608(GlobalContext*);
|
||||
void func_80026400(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 arg3);
|
||||
void func_80026608(GlobalContext* globalCtx);
|
||||
void func_80026690(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 arg3);
|
||||
void func_80026860(GlobalContext*, Color_RGBA8*, u8, s16);
|
||||
void func_80026860(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 arg3);
|
||||
void func_80026A6C(GlobalContext* globalCtx);
|
||||
GlobalContext* func_80026B00(void);
|
||||
// ? func_80026B0C(?);
|
||||
// ? func_80026C1C(?);
|
||||
// ? func_80026C2C(?);
|
||||
void Effect_Add(GlobalContext* globalCtx, s32* idp, s32 type, u8 arg3, u8 arg4, void* initParams);
|
||||
// ? func_80026E74(?);
|
||||
// ? func_80026F70(?);
|
||||
// ? func_8002709C(?);
|
||||
// ? func_800271A8(?);
|
||||
// ? func_800272B0(?);
|
||||
// ? func_80027410(?); Effect_SS_Clear
|
||||
// ? func_800274E0(?); Effect_SS_Delete
|
||||
void Effect_SS_ResetEntry(LoadedParticleEntry* particle);
|
||||
// ? func_800275D0(?);
|
||||
// ? func_80027798(?);
|
||||
// ? func_80027A40(?);
|
||||
// ? func_80027AE0(?);
|
||||
// ? func_80027B98(?);
|
||||
// ? func_80027BDC(?);
|
||||
// ? func_80027E34(?);
|
||||
// ? func_80027E84(?);
|
||||
GlobalContext* Effect_GetGlobalCtx(void);
|
||||
void* Effect_GetByIndex(s32 index);
|
||||
void Effect_InitContext(GlobalContext* globalCtx);
|
||||
void Effect_Add(GlobalContext* globalCtx, s32* pIndex, s32 type, u8 arg3, u8 arg4, void* initParams);
|
||||
void Effect_DrawAll(GraphicsContext* gfxCtx);
|
||||
void Effect_UpdateAll(GlobalContext* globalCtx);
|
||||
void Effect_Delete(GlobalContext* globalCtx, s32 index);
|
||||
void Effect_DeleteAll(GlobalContext* globalCtx);
|
||||
void EffectSs_InitInfo(GlobalContext* globalCtx, s32 tableSize);
|
||||
void EffectSs_ClearAll(GlobalContext* globalCtx);
|
||||
void EffectSs_Delete(EffectSs* effectSs);
|
||||
void EffectSs_Reset(EffectSs* effectSs);
|
||||
void EffectSs_Insert(GlobalContext* globalCtx, EffectSs* effectSs);
|
||||
void EffectSs_Spawn(GlobalContext* globalCtx, s32 type, s32 priority, void* initParams);
|
||||
void EffectSs_UpdateAll(GlobalContext* globalCtx);
|
||||
void EffectSs_DrawAll(GlobalContext* globalCtx);
|
||||
s16 func_80027DD4(s16 arg0, s16 arg1, s32 arg2);
|
||||
s16 func_80027E34(s16 arg0, s16 arg1, f32 arg2);
|
||||
u8 func_80027E84(u8 arg0, u8 arg1, f32 arg2);
|
||||
// ? func_80027F80(?);
|
||||
// ? func_800281E8(?);
|
||||
// ? func_8002829C(?);
|
||||
// ? func_80028304(?);
|
||||
// ? func_8002836C(?);
|
||||
// ? func_800283D4(?);
|
||||
// ? func_8002843C(?);
|
||||
// ? func_800284A4(?);
|
||||
// ? func_80028510(?);
|
||||
// ? func_8002857C(?);
|
||||
// ? func_800285EC(?);
|
||||
// ? func_8002865C(?);
|
||||
void func_800286CC(GlobalContext*, Vec3f*, Vec3f*, Vec3f*, s16, s16);
|
||||
// ? func_8002873C(?);
|
||||
// ? func_800287AC(?);
|
||||
// ? func_8002881C(?);
|
||||
// ? func_80028858(?);
|
||||
// ? func_80028894(?);
|
||||
// ? func_80028990(?);
|
||||
// ? func_80028A54(?);
|
||||
// ? func_80028B18(?);
|
||||
void func_80028B74(GlobalContext*, Vec3f*, UNK_PTR, UNK_PTR, Color_RGB8*, Color_RGB8*);
|
||||
// ? func_80028BB0(?);
|
||||
// ? func_80028CEC(?);
|
||||
// ? func_80028DC4(?);
|
||||
// ? func_80028E1C(?);
|
||||
// ? func_80028E84(?);
|
||||
// ? func_80028EF4(?);
|
||||
// ? func_80028F84(?);
|
||||
// ? func_80028FD8(?);
|
||||
// ? func_80029024(?);
|
||||
// ? func_80029060(?);
|
||||
void Effect_SpawnFragment(GlobalContext* globalCtx, Vec3f* burstDepthY, Vec3f* burstDepthX, Vec3f* burstOrigin,
|
||||
s16 gravityInfluence, s16 u0, s16 rotSpeed, s16 burstVel, u8 u1, s16 scale, u8 u2, s16 jitter,
|
||||
s32 duration, s16 u3, s16 objNumber, u32 dList);
|
||||
// ? func_800290F0(?);
|
||||
// ? func_80029184(?);
|
||||
// ? func_800291D8(?);
|
||||
// ? func_800292DC(?);
|
||||
// ? func_80029320(?);
|
||||
// ? func_800293A0(?);
|
||||
// ? func_800293E4(?);
|
||||
// ? func_80029444(?);
|
||||
// ? func_8002949C(?);
|
||||
// ? func_80029530(?);
|
||||
// ? func_80029568(?);
|
||||
// ? func_800295A0(?);
|
||||
// ? func_80029618(?);
|
||||
// ? func_80029694(?);
|
||||
// ? func_80029724(?);
|
||||
// ? func_800297A4(?);
|
||||
// ? func_800298EC(?);
|
||||
// ? func_8002993C(?);
|
||||
void func_800299AC(GlobalContext* globalCtx, Vec3f* v);
|
||||
// ? func_80029B30(?);
|
||||
// ? func_80029B90(?);
|
||||
// ? func_80029C00(?);
|
||||
// ? func_80029C50(?);
|
||||
void func_80029CA4(GlobalContext* globalCtx, s32 a, Vec3f* pos);
|
||||
// ? func_80029CC8(?);
|
||||
// ? func_80029CF0(?);
|
||||
// ? func_80029D5C(?);
|
||||
// ? func_80029DBC(?);
|
||||
// ? func_80029E24(?);
|
||||
void func_80029E8C(GlobalContext* globalCtx, Vec3f* burstDepthY, Vec3f* burstDepthX, Vec3f* burstOrigin,
|
||||
s16 gravityInfluence, s16 u0, s16 rotSpeed, s16 burstVel, u8 u1, s16 scale, u8 u2, s16 jitter,
|
||||
s32 duration, s16 u3, s16 objectId, u32 dList);
|
||||
// ? func_80029F44(?);
|
||||
// ? func_80029FAC(?);
|
||||
// ? func_8002A140(?);
|
||||
// ? func_8002A1DC(?);
|
||||
// ? func_8002A2A4(?);
|
||||
// ? func_8002A32C(?);
|
||||
// ? func_8002A3C4(?);
|
||||
// ? func_8002A484(?);
|
||||
// ? func_8002A4D4(?);
|
||||
// ? func_8002A5F4(?);
|
||||
void func_8002A65C(GlobalContext* globalCtx, Actor* actor, Vec3f* pos, s16 arg3, s16 arg4);
|
||||
void func_8002A6B8(GlobalContext* globalCtx, Vec3f* pos, Vec3f* arg2, Vec3f* arg3, u32 arg4, s32 arg5, u32 arg6,
|
||||
u32 arg7, u32 arg8, u32 arg9, u32 arg10, u32 arg11, u32 arg12, u32 arg13, u32 arg14, u32 arg15);
|
||||
// ? func_8002A770(?);
|
||||
// ? func_8002A824(?);
|
||||
// ? func_8002A894(?);
|
||||
// ? func_8002A90C(?);
|
||||
// ? func_8002A95C(?);
|
||||
// ? func_8002A9F4(?);
|
||||
// ? func_8002AA44(?);
|
||||
// ? func_8002AAB0(?);
|
||||
void Overlay_LoadGameState(GameStateOverlay* overlayEntry);
|
||||
void Overlay_FreeGameState(GameStateOverlay* overlayEntry);
|
||||
|
@ -930,7 +980,7 @@ void Lights_SetAmbientColor(LightingContext* lightCtx, u8 red, u8 green, u8 blue
|
|||
LightMapper* Lights_CreateMapper(LightingContext* lightCtx, GraphicsContext* gfxCtx);
|
||||
void Lights_ClearHead(GlobalContext* globalCtx, LightingContext* lightCtx);
|
||||
void Lights_RemoveAll(GlobalContext* globalCtx, LightingContext* lightCtx);
|
||||
z_Light* Lights_Insert(GlobalContext* globalCtx, LightingContext* lightCtx, LightInfo* info);
|
||||
z_Light* Lights_Insert(GlobalContext* globalCtx, LightingContext* lightCtx, void* info);
|
||||
void Lights_Remove(GlobalContext* globalCtx, LightingContext* lightCtx, z_Light* light);
|
||||
LightMapper* func_8007A960(GraphicsContext* gfxCtx, u8 red, u8 green, u8 blue);
|
||||
// ? func_8007A9B4(?);
|
||||
|
@ -1238,20 +1288,20 @@ void func_800A6888(GlobalContext*, PSkinAwb*);
|
|||
// ? func_800A6AC4(?);
|
||||
// ? func_800A6E10(?);
|
||||
void func_800A6EF4(MtxF* mf, Vec3f* src, Vec3f* dest);
|
||||
// ? func_800A6FA0(?);
|
||||
void func_800A6FA0(MtxF* mf1, MtxF* mf2, MtxF* dest);
|
||||
// ? func_800A72FC(?);
|
||||
// ? func_800A730C(?);
|
||||
// ? func_800A735C(?);
|
||||
// ? func_800A73E0(?);
|
||||
void func_800A76A4(MtxF* dest, f32 x, f32 y, f32 z);
|
||||
// ? func_800A7704(?);
|
||||
void func_800A7704(MtxF* dest, s16 x, s16 y, s16 z);
|
||||
// ? func_800A7894(?);
|
||||
void func_800A7A24(MtxF* dest, f32 x, f32 y, f32 z);
|
||||
// ? func_800A7B04(?);
|
||||
// ? func_800A7B84(?);
|
||||
// ? func_800A7C60(?);
|
||||
// ? func_800A7E70(?);
|
||||
// ? func_800A7EC0(?);
|
||||
Mtx* func_800A7E70(GraphicsContext* gfxCtx, MtxF* src);
|
||||
void func_800A7EC0(MtxF* dest, s16 arg1, f32 x, f32 y, f32 z);
|
||||
// ? func_800A81A0(?);
|
||||
// ? func_800A82C8(?);
|
||||
// ? func_800A9A9C(?);
|
||||
|
@ -1597,7 +1647,8 @@ void SpeedMeter_InitImpl(SpeedMeter* this, u32 arg1, u32 y);
|
|||
void SpeedMeter_Init(SpeedMeter* this);
|
||||
void SpeedMeter_Destroy(SpeedMeter* this);
|
||||
void SpeedMeter_DrawTimeEntries(SpeedMeter* this, GraphicsContext* gfxCtx);
|
||||
void SpeedMeter_InitAllocEntry(SpeedMeterAllocEntry* entry, u32 maxval, u32 val, u16 backColor, u16 foreColor, u32 ulx, u32 lrx, u32 uly, u32 lry);
|
||||
void SpeedMeter_InitAllocEntry(SpeedMeterAllocEntry* entry, u32 maxval, u32 val, u16 backColor, u16 foreColor, u32 ulx,
|
||||
u32 lrx, u32 uly, u32 lry);
|
||||
void SpeedMeter_DrawAllocEntry(SpeedMeterAllocEntry* this, GraphicsContext* gfxCtx);
|
||||
void SpeedMeter_DrawAllocEntries(SpeedMeter* meter, GraphicsContext* gfxCtx, GameState* state);
|
||||
void SysCfb_Init(s32 n64dd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue