mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 23:28:45 +00:00
paths finally fixed
This commit is contained in:
parent
82932c944a
commit
a40458ef20
3 changed files with 6 additions and 3 deletions
|
@ -44,7 +44,8 @@ void GameGridFrame::PlayBackgroundMusic(QTableWidgetItem* item) {
|
||||||
BackgroundMusicPlayer::getInstance().stopMusic();
|
BackgroundMusicPlayer::getInstance().stopMusic();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto snd0path = QString::fromStdString(m_game_info->m_games[item->row()].snd0_path);
|
QString snd0path;
|
||||||
|
Common::FS::PathToQString(snd0path, m_game_info->m_games[item->row()].snd0_path);
|
||||||
BackgroundMusicPlayer::getInstance().playMusic(snd0path);
|
BackgroundMusicPlayer::getInstance().playMusic(snd0path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,8 @@ void GameListFrame::PlayBackgroundMusic(QTableWidgetItem* item) {
|
||||||
BackgroundMusicPlayer::getInstance().stopMusic();
|
BackgroundMusicPlayer::getInstance().stopMusic();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QString snd0path = Common::FS::PathToQString(m_game_info->m_games[item->row()].snd0_path);
|
QString snd0path;
|
||||||
|
Common::FS::PathToQString(snd0path, m_game_info->m_games[item->row()].snd0_path);
|
||||||
BackgroundMusicPlayer::getInstance().playMusic(snd0path);
|
BackgroundMusicPlayer::getInstance().playMusic(snd0path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -520,7 +520,8 @@ void MainWindow::PlayBackgroundMusic() {
|
||||||
: m_game_grid_frame->crtRow * m_game_grid_frame->columnCnt +
|
: m_game_grid_frame->crtRow * m_game_grid_frame->columnCnt +
|
||||||
m_game_grid_frame->crtColumn;
|
m_game_grid_frame->crtColumn;
|
||||||
|
|
||||||
QString snd0path = Common::FS::PathToQString(m_game_info->m_games[itemID].snd0_path);
|
QString snd0path;
|
||||||
|
Common::FS::PathToQString(snd0path, m_game_info->m_games[itemID].snd0_path);
|
||||||
BackgroundMusicPlayer::getInstance().playMusic(snd0path);
|
BackgroundMusicPlayer::getInstance().playMusic(snd0path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue