Unverified Commit 2e206fa4 authored by Libretro-Admin's avatar Libretro-Admin Committed by GitHub
Browse files

Merge pull request #848 from sonninnos/led-interface

Crash fix for LED interface
parents 31ef976a aa0b3ec9
Pipeline #102603 passed with stage
in 2 minutes and 42 seconds
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment