From 072ad41274ea2608261c43632dc34e8e0326977f Mon Sep 17 00:00:00 2001 From: Nicholas Yoannou Date: Mon, 25 May 2026 16:56:31 +0100 Subject: [PATCH] Audio: Implement `ProjectSeNamedList` --- data/file_list.yml | 6 +++--- src/Audio/ProjectSeNamedList.cpp | 36 ++++++++++++++++++++++++++++++++ src/Audio/ProjectSeNamedList.h | 11 ++++++++++ 3 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 src/Audio/ProjectSeNamedList.cpp create mode 100644 src/Audio/ProjectSeNamedList.h diff --git a/data/file_list.yml b/data/file_list.yml index fa6390cb29..243b054b25 100644 --- a/data/file_list.yml +++ b/data/file_list.yml @@ -1673,15 +1673,15 @@ Audio/ProjectSeNamedList.o: label: - _ZN18ProjectSeNamedListC1Ev - _ZN18ProjectSeNamedListC2Ev - status: NotDecompiled + status: Matching - offset: 0x009730 size: 8 label: _ZN18ProjectSeNamedList21getMuteSeInPVListSizeEv - status: NotDecompiled + status: Matching - offset: 0x009738 size: 12 label: _ZN18ProjectSeNamedList17getMuteSeInPVListEv - status: NotDecompiled + status: Matching Audio/SePlayObjWithSave.o: '.text': - offset: 0x009744 diff --git a/src/Audio/ProjectSeNamedList.cpp b/src/Audio/ProjectSeNamedList.cpp new file mode 100644 index 0000000000..a1e4076c56 --- /dev/null +++ b/src/Audio/ProjectSeNamedList.cpp @@ -0,0 +1,36 @@ +#include "Audio/ProjectSeNamedList.h" + +static const char* const sMuteSeInPVList[] = { + "WsEmMeganeOnStart", + "WsEvMeganeOnStart", + "SeMoMeElecWireMoveLv", + "SeBmMeBossKnuckleHackMoveLv", + "SeBmMeBossKnuckleHackMoveFastLv", + "SeMoMeCapFlowerOpen", + "SeMoMeCapFlowerOpenAll", + "WsUiTalkUiAppearSquare", + "WsdSyMapWindowSubClose", + "RcWsdSyTestWindowClose", + "WsSyJumpingRopeCount", + "RcWsdSyTestWindowAppear", + "WsdSyTestWindowAppear", + "RcSeGmCsAppear", + "WsSyPlayerLifeAlertTrg", + "WsUiInvalid03", + "WsdSySelectButtonMove", + "WsUiSkip", + "WsNvCapManHeroTalkInfo_", + "SeBmMe", + "SeMoMe", + "SeEmMe", +}; + +ProjectSeNamedList::ProjectSeNamedList() = default; + +s32 ProjectSeNamedList::getMuteSeInPVListSize() { + return 0x16; +} + +const char* const* ProjectSeNamedList::getMuteSeInPVList() { + return sMuteSeInPVList; +} diff --git a/src/Audio/ProjectSeNamedList.h b/src/Audio/ProjectSeNamedList.h new file mode 100644 index 0000000000..3b5114b056 --- /dev/null +++ b/src/Audio/ProjectSeNamedList.h @@ -0,0 +1,11 @@ +#pragma once + +#include + +class ProjectSeNamedList { +public: + ProjectSeNamedList(); + + s32 getMuteSeInPVListSize(); + const char* const* getMuteSeInPVList(); +};