From 9c2b8a0621c0d8e58e951c8deb0c51e034bf57f9 Mon Sep 17 00:00:00 2001 From: goeiecool9999 <7033575+goeiecool9999@users.noreply.github.com> Date: Sun, 17 Dec 2023 13:44:21 +0100 Subject: [PATCH] fix sm3dw loop point --- src/util/bootSound/BootSoundReader.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/util/bootSound/BootSoundReader.cpp b/src/util/bootSound/BootSoundReader.cpp index 6709269a..52b26e2c 100644 --- a/src/util/bootSound/BootSoundReader.cpp +++ b/src/util/bootSound/BootSoundReader.cpp @@ -10,6 +10,11 @@ BootSoundReader::BootSoundReader(FSCVirtualFile* bootsndFile, sint32 blockSize) bufferBE.resize(blockSize / sizeof(sint16be)); if(blockSize % (sizeof(sint16be) * 2) != 0) cemu_assert_suspicious(); + + // workaround: SM3DW has incorrect loop point + const auto titleId = CafeSystem::GetForegroundTitleId(); + if(titleId == 0x0005000010145D00 || titleId == 0x0005000010145C00 || titleId == 0x0005000010106100) + loopPoint = 113074; } sint16* BootSoundReader::getSamples()