Add option to filter games not available on the current platform

The new 'Only show games available on this platform' checkbox in the
plugin settings drops games whose platforms don't include the OS
OpenGamepadUI is running on (e.g. Windows-only games on Linux). Games
with no platform info at all (HTML5) are kept since there's nothing to
filter on. The setting is read on every library load, so toggling it
reloads the itch.io library without a restart.
This commit is contained in:
Jose Falanga 2026-08-07 18:41:39 -03:00
parent f7d8f09f92
commit b0183b7c20
5 changed files with 56 additions and 3 deletions

View file

@ -42,6 +42,11 @@ layout_mode = 2
autowrap_mode = 2
text = "Get an API key from https://itch.io/user/settings/api-keys"
[node name="FilterUnsupported" type="CheckBox" parent="VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "Only show games available on this platform"
[node name="SaveButton" type="Button" parent="VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2