Update game_list_frame.cpp

fixed snd0path
This commit is contained in:
georgemoralis 2024-09-26 09:38:24 +03:00 committed by GitHub
parent 703525083a
commit 4cd4e7131a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,7 +74,7 @@ void GameListFrame::PlayBackgroundMusic(QTableWidgetItem* item) {
BackgroundMusicPlayer::getInstance().stopMusic();
return;
}
const auto snd0path = QString::fromStdString(m_game_info->m_games[item->row()].snd0_path);
QString snd0path = Common::FS::PathToQString(m_game_info->m_games[item->row()].snd0_path);
BackgroundMusicPlayer::getInstance().playMusic(snd0path);
}