mirror of
https://github.com/zeldaret/tp
synced 2026-06-02 18:18:59 -04:00
Clean up code, remove fakematches, add UNUSED, enable warnings (#2992)
* Remove NDEBUG_DEFINED fakematch, clean up getName temps * Fix ifdef * Fix bad JSystem pch ifdef breaking decomp.me * Remove Acch Chk fakematches * Private Acch fields * Fix some clangd errors in headers * Add UNUSED macro for matching debug parameters * Enable clangd unused-parameter warning * Remove extern from initializers Probably added by dol2asm? * Fix process profile definitions * Remove leftover dol2asm address comments * Remove some unnecessary double casts * Enable some more clangd warnings * Fix missing usages of fopAcM_ct * Fix wrong enum usage * Fix more fakematches
This commit is contained in:
@@ -778,9 +778,6 @@ u32 Z2Audience::calcDeltaPriority_(f32 param_0, int distVolBit, bool param_2) co
|
||||
return mSetting.field_0xac[distVolBit] * (param_0 - mSetting.field_0x3c);
|
||||
}
|
||||
|
||||
/* 802BDCB0-802BDD00 2B85F0 0050+00 1/1 0/0 0/0 .text
|
||||
* calcPitchDoppler___10Z2AudienceCFRCQ29JGeometry8TVec3<f>RCQ29JGeometry8TVec3<f>RCQ29JGeometry8TVec3<f>f
|
||||
*/
|
||||
f32 Z2Audience::calcPitchDoppler_(const JGeometry::TVec3<f32>& param_0,
|
||||
const JGeometry::TVec3<f32>& param_1,
|
||||
const JGeometry::TVec3<f32>& param_2, f32 param_3) const {
|
||||
|
||||
@@ -8,8 +8,6 @@ static void Z2_E_ms_modVol(Z2SoundHandlePool*, u32);
|
||||
static void Z2_E_mm_modPitch(Z2SoundHandlePool*, u32);
|
||||
static void Z2_B_zan_modPitch(Z2SoundHandlePool*, u32);
|
||||
|
||||
/* 80451358 0001+00 data_80451358 None */
|
||||
/* 80451359 0007+00 data_80451359 None */
|
||||
s8 data_80451358;
|
||||
s8 data_80451359;
|
||||
|
||||
|
||||
@@ -103,11 +103,8 @@ f32 Z2Param::MIN_DISTANCE_VOLUME;
|
||||
|
||||
f32 Z2Param::ENEMY_LASTHIT_MUTE_VOLUME;
|
||||
|
||||
/* 80451340 0001+00 data_80451340 None */
|
||||
u8 Z2Param::DARK_SE_FILTER_ON;
|
||||
|
||||
/* 80451341 0001+00 data_80451341 None */
|
||||
u8 Z2Param::DARK_SE_LOW_PASS_FILTER_SETTING;
|
||||
|
||||
/* 80451342 0006+00 data_80451342 None */
|
||||
u8 Z2Param::SYSTEM_SE_USE_DARK_SE_SETTING;
|
||||
|
||||
@@ -528,8 +528,8 @@ u32 Z2SoundObjAnime::getSoundID(const JAUSoundAnimationSound* animationSound,
|
||||
|
||||
bool Z2SoundObjAnime::playsSound(const JAUSoundAnimationSound* animationSound,
|
||||
const JGeometry::TVec3<f32>& param_1, f32 param_2) {
|
||||
(void)param_1;
|
||||
(void)param_2;
|
||||
UNUSED(param_1);
|
||||
UNUSED(param_2);
|
||||
|
||||
if (animationSound->playsOnlyOnce()) {
|
||||
if (field_0x3c != animationSound->field_0x16) {
|
||||
|
||||
@@ -206,7 +206,7 @@ f32 Z2WolfHowlMgr::getNowInputValue() {
|
||||
}
|
||||
|
||||
void Z2WolfHowlMgr::calcPitchMod(f32 param_0, f32 param_1) {
|
||||
(void)param_0;
|
||||
UNUSED(param_0);
|
||||
|
||||
f32 pitch = 1.0f;
|
||||
field_0x20 = getNowPitch();
|
||||
|
||||
Reference in New Issue
Block a user