Qt: Don't check for movies if play_hover_movies is disabled

Apparently this was forgotten. The variable was already captured
This commit is contained in:
Megamouse
2026-03-20 00:45:56 +01:00
parent 62b2ffd7ca
commit c80e08a642
+3
View File
@@ -621,6 +621,8 @@ void game_list_frame::OnParsingFinished()
game.icon_in_archive = archive && archive->exists(game.info.icon_path); game.icon_in_archive = archive && archive->exists(game.info.icon_path);
} }
if (play_hover_movies)
{
if (std::string movie_path = game_icon_path + game.info.serial + "/hover.gif"; file_exists(movie_path)) 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.info.movie_path = std::move(movie_path);
@@ -636,6 +638,7 @@ void game_list_frame::OnParsingFinished()
game.info.movie_path = std::move(movie_path); game.info.movie_path = std::move(movie_path);
game.has_hover_pam = true; game.has_hover_pam = true;
} }
}
if (std::string audio_path = sfo_dir + "/SND0.AT3"; file_exists(audio_path)) if (std::string audio_path = sfo_dir + "/SND0.AT3"; file_exists(audio_path))
{ {