X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=frontend%2Flibretro.c;h=cd6924c149cdae8341b43af10b0bc5c1bc1cecfa;hb=f535537faaef474f7d31e50949eea1f15a58ee09;hp=6a719ae4069481911429139a3057d3d8d8d8c5a5;hpb=2f326fa15ff26df057ef10da232ebc07a410803a;p=pcsx_rearmed.git diff --git a/frontend/libretro.c b/frontend/libretro.c index 6a719ae4..cd6924c1 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -2191,6 +2191,8 @@ bool retro_load_game(const struct retro_game_info *info) if (check_unsatisfied_libcrypt()) show_notification("LibCrypt protected game with missing SBI detected", 3000, 3); + if (Config.TurboCD) + show_notification("TurboCD is ON", 700, 2); return true; } @@ -2473,6 +2475,16 @@ static void update_variables(bool in_flight) display_internal_fps = true; } + var.value = NULL; + var.key = "pcsx_rearmed_cd_turbo"; + if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) + { + if (strcmp(var.value, "enabled") == 0) + Config.TurboCD = true; + else + Config.TurboCD = false; + } + #ifdef HAVE_CDROM var.value = NULL; var.key = "pcsx_rearmed_phys_cd_readahead"; @@ -3019,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);