mirror of
https://github.com/libretro/beetle-psx-libretro.git
synced 2024-11-23 08:49:47 +00:00
Crash fix for LED interface
This commit is contained in:
parent
31ef976a6f
commit
aa0b3ec9e1
@ -4913,7 +4913,7 @@ void retro_set_environment(retro_environment_t cb)
|
||||
filestream_vfs_init(&vfs_iface_info);
|
||||
|
||||
environ_cb(RETRO_ENVIRONMENT_GET_LED_INTERFACE, &led_interface);
|
||||
if (led_interface.set_led_state)
|
||||
if (led_interface.set_led_state && !led_state_cb)
|
||||
led_state_cb = led_interface.set_led_state;
|
||||
|
||||
input_set_env(cb);
|
||||
|
Loading…
Reference in New Issue
Block a user