mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Some robustness checks
This commit is contained in:
parent
a54a4d6cbe
commit
7ad1beeb81
1 changed files with 2 additions and 2 deletions
|
@ -612,8 +612,8 @@ static INLINE int time_to_exit(driver_t *driver, global_t *global,
|
|||
{
|
||||
const video_driver_t *video = driver ? (const video_driver_t*)driver->video : NULL;
|
||||
rarch_system_info_t *system = rarch_system_info_get_ptr();
|
||||
bool shutdown_pressed = system->shutdown;
|
||||
bool video_alive = video->alive(driver->video_data);
|
||||
bool shutdown_pressed = system && system->shutdown;
|
||||
bool video_alive = video && video->alive(driver->video_data);
|
||||
bool movie_end = (global->bsv.movie_end && global->bsv.eof_exit);
|
||||
uint64_t frame_count = video_driver_get_frame_count();
|
||||
bool frame_count_end = (runloop->frames.video.max &&
|
||||
|
|
Loading…
Add table
Reference in a new issue