Update main_window.cpp

fix snd0path
This commit is contained in:
georgemoralis 2024-09-26 09:52:42 +03:00 committed by GitHub
parent 4cd4e7131a
commit 326d7c25c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -519,7 +519,7 @@ void MainWindow::PlayBackgroundMusic() {
: m_game_grid_frame->crtRow * m_game_grid_frame->columnCnt +
m_game_grid_frame->crtColumn;
const auto snd0path = QString::fromStdString(m_game_info->m_games[itemID].snd0_path);
QString snd0path = Common::FS::PathToQString(m_game_info->m_games[itemID].snd0_path);
BackgroundMusicPlayer::getInstance().playMusic(snd0path);
}
@ -1031,4 +1031,4 @@ void MainWindow::OnLanguageChanged(const std::string& locale) {
Config::setEmulatorLanguage(locale);
LoadTranslation();
}
}