Merge pull request #10361 from valadaa48/oga_signal_handler

Register signal handler for oga video driver
This commit is contained in:
Autechre 2020-03-28 15:17:36 +01:00 committed by GitHub
commit e4a3946998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,8 @@
#include <xf86drmMode.h>
#include <drm/drm_fourcc.h>
#include "frontend/frontend_driver.h"
#include "../font_driver.h"
#ifdef HAVE_CONFIG_H
@ -108,6 +110,8 @@ static void *oga_gfx_init(const video_info_t *video,
settings_t *settings = config_get_ptr();
struct retro_system_av_info *av_info = video_viewport_get_system_av_info();
frontend_driver_install_signal_handler();
if (input && input_data) {
void* udev = input_udev.init(settings->arrays.input_joypad_driver);
if (udev) {
@ -290,7 +294,7 @@ static void oga_gfx_set_nonblock_state(void *a, bool b, bool c, unsigned d)
static bool oga_gfx_alive(void *data)
{
return true;
return !frontend_driver_get_signal_handler_state();
}
static bool oga_gfx_focus(void *data)