Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/OpenSHC/Audio/mss/SoundSystem/playDarMehqOrGlory.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include "../SoundSystem.func.hpp"

#include "OpenSHC/Globals/DAT_00b95954.hpp"
#include "OpenSHC/Globals/DAT_SFXDefinedData.hpp"

namespace OpenSHC {
namespace Audio {
namespace MSS {

// FUNCTION: STRONGHOLDCRUSADER 0x0047A5E0
void SoundSystem::playDarMehqOrGlory()
{
if (*DAT_00b95954::ptr == 1) {
MACRO_CALL_MEMBER(SoundSystem_Func::openSound, this)(
DAT_SFXDefinedData::ptr->DAT_SFX_Pointers[0x26].musicFile);
return;
}
if (this->sec_Section1055_0x3274 != 0xf) {
MACRO_CALL_MEMBER(SoundSystem_Func::setupVolumeAndSoundID, this)(DE::SHCDE::MUSIC_TUNE_OFF);
return;
}
MACRO_CALL_MEMBER(SoundSystem_Func::openSound, this)(
DAT_SFXDefinedData::ptr->DAT_SFX_Pointers[0x10].musicFile);
this->sec_Section1055_0x3274 = 0;
}

}
}
}
2 changes: 1 addition & 1 deletion status/addresses-SHC-3BB0A8C1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10908,7 +10908,7 @@ SHC_3BB0A8C1_0x0047A560 | 0.0% | Pending
SHC_3BB0A8C1_0x0047A564 | 0.0% | Pending
SHC_3BB0A8C1_0x0047A570 | 0.0% | Pending
SHC_3BB0A8C1_0x0047A580 | 0.0% | Pending
SHC_3BB0A8C1_0x0047A5E0 | 0.0% | Pending
SHC_3BB0A8C1_0x0047A5E0 | 100.0% | Pending
SHC_3BB0A8C1_0x0047A630 | 0.0% | Pending
SHC_3BB0A8C1_0x0047A660 | 0.0% | Pending
SHC_3BB0A8C1_0x0047A690 | 0.0% | Pending
Expand Down