Skip to content

Commit

Permalink
Fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTG committed Sep 3, 2024
1 parent 9d5cfe9 commit 0986905
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libretro/drivers/environment/composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
retro_savestate_context,
retro_sensor_get_input_t,
retro_sensor_interface,
retro_set_led_state_t,
retro_set_rumble_state_t,
retro_set_sensor_state_t,
retro_subsystem_info,
Expand Down Expand Up @@ -1000,7 +1001,9 @@ def _get_led_interface(self, led_ptr: POINTER(retro_led_interface)) -> bool:
return True

if not self._led_cb:
self._led_cb = retro_led_interface(self.__set_led_state)
self._led_cb = retro_led_interface(
set_led_state=retro_set_led_state_t(self.__set_led_state)
)

led_ptr[0] = self._led_cb
return True
Expand Down

0 comments on commit 0986905

Please sign in to comment.