mirror of
https://github.com/libretro/RetroArch
synced 2025-02-05 15:40:04 +00:00
(Libretro) Add nonblock_state
This commit is contained in:
parent
447412c6df
commit
211381bb89
4
driver.c
4
driver.c
@ -209,6 +209,10 @@ static void adjust_system_rates(void)
|
||||
g_settings.video.vsync = false;
|
||||
RARCH_LOG("Game FPS > Monitor FPS. Cannot rely on VSync.\n");
|
||||
#ifdef RARCH_CONSOLE
|
||||
struct retro_system_info info;
|
||||
retro_get_system_info(&info);
|
||||
|
||||
if(info.nonblock_state)
|
||||
video_set_nonblock_state_func(true);
|
||||
#endif
|
||||
}
|
||||
|
@ -383,6 +383,8 @@ struct retro_system_info
|
||||
// If false, ::data and ::size are guaranteed to be valid, but ::path might not be valid.
|
||||
// This is typically set to true for libretro implementations that must load from file.
|
||||
// Implementations should strive for setting this to false, as it allows the frontend to perform patching, etc.
|
||||
bool nonblock_state; // If true, this indicates that the game's fps is above 60 and that vsync should
|
||||
// be deactivated before startup
|
||||
|
||||
bool block_extract; // If true, the frontend is not allowed to extract any archives before loading the real ROM.
|
||||
// Necessary for certain libretro implementations that load games from zipped archives.
|
||||
|
Loading…
x
Reference in New Issue
Block a user