Skip to content

Commit

Permalink
Fix an error when an option doesn't use all 128 values
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTG committed Mar 21, 2024
1 parent e270ae5 commit d0ba880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libretro/api/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def get_variable(self, item: bytes) -> bytes | None:

value = self._variables[key]

if value not in (string_at(v.value) for v in self._options_us[key].values if v):
if value not in (string_at(v.value) for v in self._options_us[key].values if v.value):
# For invalid values, return None
return string_at(self._options_us[key].default_value)

Expand Down

0 comments on commit d0ba880

Please sign in to comment.