Crash fix for LED interface

This commit is contained in:
sonninnos 2022-04-17 02:07:27 +03:00
parent 31ef976a6f
commit aa0b3ec9e1

View File

@ -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);