From c80e08a6421b8fe493427aaf87302b6294b9e0c8 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Fri, 20 Mar 2026 00:45:56 +0100 Subject: [PATCH] Qt: Don't check for movies if play_hover_movies is disabled Apparently this was forgotten. The variable was already captured --- rpcs3/rpcs3qt/game_list_frame.cpp | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/rpcs3/rpcs3qt/game_list_frame.cpp b/rpcs3/rpcs3qt/game_list_frame.cpp index 5ba31d9d77..592bb88673 100644 --- a/rpcs3/rpcs3qt/game_list_frame.cpp +++ b/rpcs3/rpcs3qt/game_list_frame.cpp @@ -621,20 +621,23 @@ void game_list_frame::OnParsingFinished() game.icon_in_archive = archive && archive->exists(game.info.icon_path); } - if (std::string movie_path = game_icon_path + game.info.serial + "/hover.gif"; file_exists(movie_path)) + if (play_hover_movies) { - game.info.movie_path = std::move(movie_path); - game.has_hover_gif = true; - } - else if (std::string movie_path = sfo_dir + "/" + localized_movie; file_exists(movie_path)) - { - game.info.movie_path = std::move(movie_path); - game.has_hover_pam = true; - } - else if (std::string movie_path = sfo_dir + "/ICON1.PAM"; file_exists(movie_path)) - { - game.info.movie_path = std::move(movie_path); - game.has_hover_pam = true; + if (std::string movie_path = game_icon_path + game.info.serial + "/hover.gif"; file_exists(movie_path)) + { + game.info.movie_path = std::move(movie_path); + game.has_hover_gif = true; + } + else if (std::string movie_path = sfo_dir + "/" + localized_movie; file_exists(movie_path)) + { + game.info.movie_path = std::move(movie_path); + game.has_hover_pam = true; + } + else if (std::string movie_path = sfo_dir + "/ICON1.PAM"; file_exists(movie_path)) + { + game.info.movie_path = std::move(movie_path); + game.has_hover_pam = true; + } } if (std::string audio_path = sfo_dir + "/SND0.AT3"; file_exists(audio_path))