mirror of
https://github.com/libretro/RetroArch
synced 2025-03-22 16:20:58 +00:00
Cleanups
This commit is contained in:
parent
e418067610
commit
9b43c973bb
@ -614,14 +614,13 @@ static INLINE int time_to_exit(driver_t *driver, global_t *global,
|
|||||||
event_cmd_state_t *cmd)
|
event_cmd_state_t *cmd)
|
||||||
{
|
{
|
||||||
const video_driver_t *video = driver ? (const video_driver_t*)driver->video : NULL;
|
const video_driver_t *video = driver ? (const video_driver_t*)driver->video : NULL;
|
||||||
bool shutdown_pressed = system && system->shutdown;
|
bool shutdown_pressed = (system && system->shutdown) || cmd->quit_key_pressed;
|
||||||
bool video_alive = video && video->alive(driver->video_data);
|
bool video_alive = video && video->alive(driver->video_data);
|
||||||
bool movie_end = (global->bsv.movie_end && global->bsv.eof_exit);
|
bool movie_end = (global->bsv.movie_end && global->bsv.eof_exit);
|
||||||
uint64_t *frame_count = video_driver_get_frame_count();
|
uint64_t *frame_count = video_driver_get_frame_count();
|
||||||
bool frame_count_end = main_max_frames && (*frame_count >= main_max_frames);
|
bool frame_count_end = main_max_frames && (*frame_count >= main_max_frames);
|
||||||
|
|
||||||
if (shutdown_pressed || cmd->quit_key_pressed || frame_count_end || movie_end
|
if (shutdown_pressed || frame_count_end || movie_end || !video_alive)
|
||||||
|| !video_alive)
|
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user