From 4cd4e7131ad5aeaf4f9bf08b2cd89c999faf34d1 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Thu, 26 Sep 2024 09:38:24 +0300 Subject: [PATCH] Update game_list_frame.cpp fixed snd0path --- src/qt_gui/game_list_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt_gui/game_list_frame.cpp b/src/qt_gui/game_list_frame.cpp index 8f192225e..ea02ed3cf 100644 --- a/src/qt_gui/game_list_frame.cpp +++ b/src/qt_gui/game_list_frame.cpp @@ -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); }