We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cf8c011 + 72d595c commit 8b13cbdCopy full SHA for 8b13cbd
src/libretro/drivers/options/dict.py
@@ -72,12 +72,15 @@ def get_variable(self, item: bytes) -> bytes | None:
72
value = self._variables[key]
73
else:
74
# Otherwise get the default value and save it to the dict
75
- value = string_at(self._options_us[key].default_value)
+ value = self._options_us[key].default_value
76
+ value = string_at(value) if value is not None else None
77
self._variables[key] = value
78
+ return value
79
80
if value not in (string_at(v.value) for v in self._options_us[key].values if v.value):
81
# For invalid values, return None
- return string_at(self._options_us[key].default_value)
82
83
+ return string_at(value) if value is not None else None
84
85
return self._variables[key]
86
0 commit comments