Achievement Unlocked and Leaderboard Submitted sound effects
This commit is contained in:
parent
277790f18e
commit
af92430b18
9 changed files with 40 additions and 14 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue