From 672e715c3f3d799e75f3f4a2f9f0db975cdc5e4b Mon Sep 17 00:00:00 2001
From: notaz <notasas@gmail.com>
Date: Sat, 11 May 2024 23:51:25 +0300
Subject: [PATCH] libretro: don't call _system_av_info cb from _load_game

not needed and frontends hate it
libretro/pcsx_rearmed#828
---
 frontend/libretro.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/frontend/libretro.c b/frontend/libretro.c
index 7ad4caa8..cd6924c1 100644
--- a/frontend/libretro.c
+++ b/frontend/libretro.c
@@ -3031,7 +3031,7 @@ static void update_variables(bool in_flight)
 
    update_option_visibility();
 
-   if (old_fps != psxGetFps())
+   if (in_flight && old_fps != psxGetFps())
    {
       struct retro_system_av_info info;
       retro_get_system_av_info(&info);
-- 
2.39.5