Unverified Commit 22d205ed authored by LibretroAdmin's avatar LibretroAdmin Committed by GitHub
Browse files

Merge pull request #852 from mudlord/master

Fix LED interface crash if not implemented.
parents 96f15751 26f79f8b
Pipeline #120924 passed with stage
in 40 minutes and 13 seconds
......@@ -4887,7 +4887,7 @@ void retro_set_environment(retro_environment_t cb)
if (environ_cb(RETRO_ENVIRONMENT_GET_VFS_INTERFACE, &vfs_iface_info))
filestream_vfs_init(&vfs_iface_info);
environ_cb(RETRO_ENVIRONMENT_GET_LED_INTERFACE, &led_interface);
if(environ_cb(RETRO_ENVIRONMENT_GET_LED_INTERFACE, &led_interface))
if (led_interface.set_led_state && !led_state_cb)
led_state_cb = led_interface.set_led_state;
......
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