mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Merge pull request #10361 from valadaa48/oga_signal_handler
Register signal handler for oga video driver
This commit is contained in:
commit
e4a3946998
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user