diff --git a/config/SOUE01/symbols.txt b/config/SOUE01/symbols.txt index f867165a..e5b13dd7 100644 --- a/config/SOUE01/symbols.txt +++ b/config/SOUE01/symbols.txt @@ -19837,7 +19837,7 @@ __dt__9dSndMgr_cFv = .text:0x8035A460; // type:function size:0x58 @248@__dt__9dSndMgr_cFv = .text:0x8035A550; // type:function size:0x8 __ct__11dSndActor_cFRQ34nw4r3snd18SoundArchivePlayer = .text:0x8035A560; // type:function size:0x3C __dt__Q34nw4r3snd11SoundHandleFv = .text:0x8035A5A0; // type:function size:0x54 scope:weak -__cl__22SoundPropertiesCheckerFRQ34nw4r3snd11SoundHandle = .text:0x8035A600; // type:function size:0x240 +__cl__22SoundPropertiesCheckerFRQ34nw4r3snd11SoundHandle = .text:0x8035A600; // type:function size:0x240 scope:weak __dt__11dSndActor_cFv = .text:0x8035A840; // type:function size:0x58 scope:weak __ct__13dSnd3DActor_cFP15dSndSourceParamUc = .text:0x8035A8A0; // type:function size:0xE8 d_vt_0x34__13dSnd3DActor_cFRCQ34nw4r4math4VEC3 = .text:0x8035A990; // type:function size:0x40 @@ -26503,8 +26503,8 @@ __dt__Q23EGG17PostEffectMaskDOFFv = .text:0x804A2C40; // type:function size:0x40 execute__Q23EGG11DrawPathDOFFv = .text:0x804A2C80; // type:function size:0x9C internalResetForDraw__Q23EGG11DrawPathDOFFv = .text:0x804A2D20; // type:function size:0x324 internalDraw__Q23EGG11DrawPathDOFFUs = .text:0x804A3050; // type:function size:0xCC -internalDrawVariant01__Q23EGG11DrawPathDOFFUs = .text:0x804A3120; // type:function size:0x9A4 -internalDrawVariant2__Q23EGG11DrawPathDOFFUs = .text:0x804A3AD0; // type:function size:0x648 +internalDrawStandard__Q23EGG11DrawPathDOFFUs = .text:0x804A3120; // type:function size:0x9A4 +internalDrawLite__Q23EGG11DrawPathDOFFUs = .text:0x804A3AD0; // type:function size:0x648 FUN_804a4120 = .text:0x804A4120; // type:function size:0x224 FUN_804a4350 = .text:0x804A4350; // type:function size:0xDC SetBinaryInner__Q23EGG11DrawPathDOFFRCQ33EGG28IBinary3Bin = .text:0x804A4430; // type:function size:0x238 @@ -37632,7 +37632,7 @@ __vt__4dCcS = .data:0x805485A8; // type:object size:0xC lbl_805485B8 = .data:0x805485B8; // type:object size:0xC lbl_805485C4 = .data:0x805485C4; // type:object size:0xC __vt__9dSndMgr_c = .data:0x805485D0; // type:object size:0xA8 -__vt__22SoundPropertiesChecker = .data:0x80548678; // type:object size:0xC +__vt__22SoundPropertiesChecker = .data:0x80548678; // type:object size:0xC scope:weak __vt__11dSndActor_c = .data:0x80548684; // type:object size:0x1C scope:weak __vt__23IsCurrentSoundIdChecker = .data:0x805486A0; // type:object size:0x10 __vt__13dSnd3DActor_c = .data:0x805486B0; // type:object size:0x60 @@ -50334,6 +50334,7 @@ lbl_8058F1B8 = .bss:0x8058F1B8; // type:object size:0x10 align:4 data:float lbl_8058F1C8 = .bss:0x8058F1C8; // type:object size:0x28 align:4 data:float lbl_8058F1F0 = .bss:0x8058F1F0; // type:object size:0x20 data:byte @23379 = .bss:0x8058F210; // type:object size:0xC scope:local +...bss.0 = .bss:0x8058F210; // type:label scope:local sInstance__11dLightEnv_c = .bss:0x8058F220; // type:object size:0x5D70 sList__13ActorLighting = .bss:0x80594F90; // type:object size:0xC data:4byte sPlayingEffectsList__14dJEffManager_c = .bss:0x80594FA0; // type:object size:0x18 data:4byte @@ -51989,7 +51990,7 @@ s_tmem_layout__Q23EGG7StateGX = .bss:0x806750C0; // type:object size:0xA8 data:4 s_cacheGX__Q23EGG7StateGX = .bss:0x80675168; // type:object size:0x18 @LOCAL@initialize__Q23EGG7StateGXFUsUs8_GXColor11_GXPixelFmt@sDefaultTexObjData = .bss:0x80675180; // type:object size:0x10 scope:local spBufferTable__Q23EGG13TextureBuffer = .bss:0x80675190; // type:object size:0x200 data:4byte -sTasks__Q23EGG18AudioRmtSpeakerMgr = .bss:0x80675390; // type:object size:0xF0 +sConnectTask__Q23EGG18AudioRmtSpeakerMgr = .bss:0x80675390; // type:object size:0xF0 sMoveParamMgr__Q23EGG12AudioUtility = .bss:0x80675480; // type:object size:0xC lbl_80675490 = .bss:0x80675490; // type:object size:0x10 lbl_806754A0 = .bss:0x806754A0; // type:object size:0x20 data:4byte diff --git a/include/egg/audio/eggAudioRmtSpeakerMgr.h b/include/egg/audio/eggAudioRmtSpeakerMgr.h index 9ed9eec3..072fdc39 100644 --- a/include/egg/audio/eggAudioRmtSpeakerMgr.h +++ b/include/egg/audio/eggAudioRmtSpeakerMgr.h @@ -42,7 +42,7 @@ private: static u8 sAudioRmtSpeakerWpadVolume; - static AudioRmtSpeakerTask sTasks[0x14]; + static AudioRmtSpeakerTask sConnectTask[0x14]; }; } // namespace EGG diff --git a/include/egg/gfx/eggDrawPathDOF.h b/include/egg/gfx/eggDrawPathDOF.h index 055e603a..8ae49e79 100644 --- a/include/egg/gfx/eggDrawPathDOF.h +++ b/include/egg/gfx/eggDrawPathDOF.h @@ -30,8 +30,8 @@ public: void execute(); private: - void internalDrawVariant01(u16); - void internalDrawVariant2(u16); + void internalDrawStandard(u16); + void internalDrawLite(u16); void afterDraw(u16 x, u16 y, u16 width, u16 height); diff --git a/src/egg/audio/eggAudioRmtSpeakerMgr.cpp b/src/egg/audio/eggAudioRmtSpeakerMgr.cpp index a60645e7..d69945ca 100644 --- a/src/egg/audio/eggAudioRmtSpeakerMgr.cpp +++ b/src/egg/audio/eggAudioRmtSpeakerMgr.cpp @@ -13,39 +13,39 @@ bool AudioRmtSpeakerMgr::sTask; u8 AudioRmtSpeakerMgr::sAudioRmtSpeakerWpadVolume = 0x58; -AudioRmtSpeakerTask AudioRmtSpeakerMgr::sTasks[0x14]; +AudioRmtSpeakerTask AudioRmtSpeakerMgr::sConnectTask[0x14]; void AudioRmtSpeakerMgr::setupCallback(s32 arg1, s32 arg2) { if (arg2 == 0) { - if (sTasks[mTaskFinishCount].mpCallback != nullptr) { - (sTasks[mTaskFinishCount].mpCallback)(arg1, arg2); + if (sConnectTask[mTaskFinishCount].mpCallback != nullptr) { + (sConnectTask[mTaskFinishCount].mpCallback)(arg1, arg2); } sAudioRmtSpeakerWpadVolume = WPADGetSpeakerVolume(); } else { - setup(arg1, sTasks[mTaskFinishCount].mpCallback); + setup(arg1, sConnectTask[mTaskFinishCount].mpCallback); } - sTasks[mTaskFinishCount].field_0x01 = true; + sConnectTask[mTaskFinishCount].field_0x01 = true; } void AudioRmtSpeakerMgr::shutdownCallback(s32 arg1, s32 arg2) { if ((u32)arg2 + 1 <= 1) { - if (sTasks[mTaskFinishCount].mpCallback != nullptr) { - (sTasks[mTaskFinishCount].mpCallback)(arg1, arg2); + if (sConnectTask[mTaskFinishCount].mpCallback != nullptr) { + (sConnectTask[mTaskFinishCount].mpCallback)(arg1, arg2); } } else { - shutdown(arg1, sTasks[mTaskFinishCount].mpCallback); + shutdown(arg1, sConnectTask[mTaskFinishCount].mpCallback); } - sTasks[mTaskFinishCount].field_0x01 = true; + sConnectTask[mTaskFinishCount].field_0x01 = true; } void AudioRmtSpeakerMgr::add_task(s32 i, WPADCallback *pCallback, bool enable) { BOOL intr = OSDisableInterrupts(); u32 index = mTaskRequestCount; - sTasks[index].mChannel = i; - sTasks[index].field_0x00 = enable; - sTasks[index].mpCallback = pCallback; - sTasks[index].field_0x01 = false; + sConnectTask[index].mChannel = i; + sConnectTask[index].field_0x00 = enable; + sConnectTask[index].mpCallback = pCallback; + sConnectTask[index].field_0x01 = false; if (++mTaskRequestCount >= 0x14) { mTaskRequestCount = 0; } @@ -56,7 +56,7 @@ void AudioRmtSpeakerMgr::add_task(s32 i, WPADCallback *pCallback, bool enable) { void AudioRmtSpeakerMgr::doSetup(s32 i, WPADCallback *pCallback) { if (!nw4r::snd::SoundSystem::GetRemoteSpeaker(i).Setup(pCallback)) { add_task(i, pCallback, true); - sTasks[mTaskRequestCount].field_0x01 = true; + sConnectTask[mTaskRequestCount].field_0x01 = true; } } @@ -67,14 +67,14 @@ void AudioRmtSpeakerMgr::doShutdown(s32 i, WPADCallback *pCallback) { void AudioRmtSpeakerMgr::calc() { if (!sTask) { if (mTaskRequestCount != mTaskFinishCount) { - if (sTasks[mTaskFinishCount].field_0x00) { - doSetup(sTasks[mTaskFinishCount].mChannel, setupCallback); + if (sConnectTask[mTaskFinishCount].field_0x00) { + doSetup(sConnectTask[mTaskFinishCount].mChannel, setupCallback); } else { - doShutdown(sTasks[mTaskFinishCount].mChannel, shutdownCallback); + doShutdown(sConnectTask[mTaskFinishCount].mChannel, shutdownCallback); } sTask = true; } - } else if (sTasks[mTaskFinishCount].field_0x01) { + } else if (sConnectTask[mTaskFinishCount].field_0x01) { sTask = false; mTaskFinishCount++; if (mTaskFinishCount >= 0x14) { diff --git a/src/egg/gfx/eggDrawPathDOF.cpp b/src/egg/gfx/eggDrawPathDOF.cpp index b51b64cd..e649fab5 100644 --- a/src/egg/gfx/eggDrawPathDOF.cpp +++ b/src/egg/gfx/eggDrawPathDOF.cpp @@ -123,9 +123,9 @@ void DrawPathDOF::internalDraw(u16 idx) { } if (field_0x20 == 2) { - internalDrawVariant2(idx); + internalDrawLite(idx); } else { - internalDrawVariant01(idx); + internalDrawStandard(idx); } switch (idx) { @@ -141,9 +141,9 @@ void DrawPathDOF::internalDraw(u16 idx) { } } -void DrawPathDOF::internalDrawVariant01(u16 idx) {} +void DrawPathDOF::internalDrawStandard(u16 idx) {} -void DrawPathDOF::internalDrawVariant2(u16 idx) { +void DrawPathDOF::internalDrawLite(u16 idx) { const Screen &screen = GlobalDrawState::getScreen(); const Screen::DataEfb &efb = screen.GetDataEfb(); switch (idx) {