(Libretro) Add nonblock_state

This commit is contained in:
Twinaphex 2012-08-15 09:44:17 +02:00
parent 447412c6df
commit 211381bb89
2 changed files with 7 additions and 1 deletions

View File

@ -209,7 +209,11 @@ 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
video_set_nonblock_state_func(true);
struct retro_system_info info;
retro_get_system_info(&info);
if(info.nonblock_state)
video_set_nonblock_state_func(true);
#endif
}

View File

@ -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.