Achievement Unlocked and Leaderboard Submitted sound effects

This commit is contained in:
Henrik Rydgård 2023-07-12 19:18:56 +02:00
parent 277790f18e
commit af92430b18
9 changed files with 40 additions and 14 deletions

View file

@ -544,6 +544,16 @@ void EmuScreen::sendMessage(const char *message, const char *value) {
screenManager()->push(new GamePauseScreen(gamePath_));
}
}
} else if (!strcmp(message, "play_sound")) {
if (g_Config.bAchievementsSoundEffects) {
// TODO: Handle this some nicer way.
if (!strcmp(value, "achievement_unlocked")) {
UI::PlayUISound(UI::UISound::ACHIEVEMENT_UNLOCKED, 0.6f);
}
if (!strcmp(value, "leaderboard_submitted")) {
UI::PlayUISound(UI::UISound::LEADERBOARD_SUBMITTED, 0.6f);
}
}
}
}