From 1fbfaf8a73b0dbb5a39a446e9e0215396ddacac8 Mon Sep 17 00:00:00 2001 From: Rob Realmuto Date: Thu, 26 Dec 2024 20:24:40 -0500 Subject: [PATCH] Fix silent voice --- Cosmetics.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Cosmetics.py b/Cosmetics.py index c2f55c54f..f2b3ab878 100644 --- a/Cosmetics.py +++ b/Cosmetics.py @@ -869,9 +869,7 @@ def patch_silent_voice(rom: Rom, age: VOICE_PACK_AGE, log: CosmeticsLog) -> None for _, sfxid in sfxlist: sfx: SFX = rom.audiobanks[0].SFX[sfxid] injectme = binsfx.ljust(sfx.sample.size) - # Write the binary sfx to the rom - rom.audiotable[sfx.sample.audiotable_addr:sfx.sample.audiotable_addr + len(injectme)] = injectme - + sfx.sample.data = injectme def apply_voice_patch(rom: Rom, voice_path: str, soundbank_entries: dict[str, dict[str, int]]) -> None: if not os.path.exists(voice_path):