Skip to content

Commit

Permalink
Fix silent voice
Browse files Browse the repository at this point in the history
  • Loading branch information
rrealmuto committed Dec 27, 2024
1 parent ffd70f5 commit 1fbfaf8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Cosmetics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1fbfaf8

Please sign in to comment.