mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 18:15:14 +00:00
remove redundant conditions
This commit is contained in:
parent
4def7b3b6e
commit
c8406480d3
@ -94,7 +94,6 @@ TrophyUI::TrophyUI(const std::filesystem::path& trophyIconPath, const std::strin
|
|||||||
|
|
||||||
bool customsoundplayed = false;
|
bool customsoundplayed = false;
|
||||||
#ifdef ENABLE_QT_GUI
|
#ifdef ENABLE_QT_GUI
|
||||||
if (!Config::getisTrophyPopupDisabled()) {
|
|
||||||
QString musicPathWav = QString::fromStdString(CustomTrophy_Dir.string() + "/trophy.wav");
|
QString musicPathWav = QString::fromStdString(CustomTrophy_Dir.string() + "/trophy.wav");
|
||||||
QString musicPathMp3 = QString::fromStdString(CustomTrophy_Dir.string() + "/trophy.mp3");
|
QString musicPathMp3 = QString::fromStdString(CustomTrophy_Dir.string() + "/trophy.mp3");
|
||||||
if (fs::exists(musicPathWav.toStdString())) {
|
if (fs::exists(musicPathWav.toStdString())) {
|
||||||
@ -106,10 +105,9 @@ TrophyUI::TrophyUI(const std::filesystem::path& trophyIconPath, const std::strin
|
|||||||
BackgroundMusicPlayer::getInstance().playMusic(musicPathMp3, false);
|
BackgroundMusicPlayer::getInstance().playMusic(musicPathMp3, false);
|
||||||
customsoundplayed = true;
|
customsoundplayed = true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!customsoundplayed && !Config::getisTrophyPopupDisabled()) {
|
if (!customsoundplayed) {
|
||||||
auto soundFile = resource.open("src/images/trophy.wav");
|
auto soundFile = resource.open("src/images/trophy.wav");
|
||||||
std::vector<u8> soundData = std::vector<u8>(soundFile.begin(), soundFile.end());
|
std::vector<u8> soundData = std::vector<u8>(soundFile.begin(), soundFile.end());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user