Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTG committed Nov 30, 2024
2 parents cf8c011 + 72d595c commit 8b13cbd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/libretro/drivers/options/dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,15 @@ def get_variable(self, item: bytes) -> bytes | None:
value = self._variables[key]
else:
# Otherwise get the default value and save it to the dict
value = string_at(self._options_us[key].default_value)
value = self._options_us[key].default_value
value = string_at(value) if value is not None else None
self._variables[key] = value
return value

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)
value = self._options_us[key].default_value
return string_at(value) if value is not None else None

return self._variables[key]

Expand Down

0 comments on commit 8b13cbd

Please sign in to comment.