Skip to content

Commit

Permalink
[RetroAchievements] Separate leaderboard complete sound effect.
Browse files Browse the repository at this point in the history
Default file is just a duplicate of unlock.wav, a user can put in their own wav file if they choose to.

Resolves #4166
  • Loading branch information
CasualPokePlayer committed Jan 6, 2025
1 parent d9da3cf commit fafb1ab
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Binary file added Assets/overlay/lbcomplete.wav
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ private static MemoryStream ReadWavFile(string path)
private static readonly MemoryStream _unlockSound = ReadWavFile( "overlay/unlock.wav");
private static readonly MemoryStream _lboardStartSound = ReadWavFile("overlay/lb.wav");
private static readonly MemoryStream _lboardFailedSound = ReadWavFile("overlay/lbcancel.wav");
private static readonly MemoryStream _lboardCompleteSound = ReadWavFile("overlay/lbcomplete.wav");
private static readonly MemoryStream _infoSound = ReadWavFile("overlay/info.wav");

private readonly Action<Stream> _playWavFileCallback;
Expand Down
2 changes: 1 addition & 1 deletion src/BizHawk.Client.EmuHawk/RetroAchievements/RCheevos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ private unsafe void EventHandlerCallback(IntPtr runtime_event)

_dialogParent.AddOnScreenMessage($"Leaderboard Attempt Complete! ({lboard.Score})");
_dialogParent.AddOnScreenMessage(lboard.Description);
PlaySound(_unlockSound);
PlaySound(_lboardCompleteSound);
}
}

Expand Down

0 comments on commit fafb1ab

Please sign in to comment.