diff --git a/data/share/tweaks/dxvk.json b/data/share/tweaks/dxvk.json index 441ceb13..c3feb23d 100644 --- a/data/share/tweaks/dxvk.json +++ b/data/share/tweaks/dxvk.json @@ -1,6 +1,6 @@ { "id": "dxvk_hud", - "name": "DXVK: Show HUD", + "name": "Show HUD", "description": "Enable DXVK HUD", "url": "https://github.com/doitsujin/dxvk#hud", "group": "DXVK", @@ -13,6 +13,8 @@ }, "options": { "hud": { + "name": "HUD elements", + "description": "Select HUD elements to show", "type": "list", "separator": ",", "values": { diff --git a/data/share/tweaks/gamemode.json b/data/share/tweaks/gamemode.json index 0741130f..a1a1d242 100644 --- a/data/share/tweaks/gamemode.json +++ b/data/share/tweaks/gamemode.json @@ -5,7 +5,7 @@ "url": "https://github.com/FeralInteractive/gamemode", "group": "Performance", "requires": { - "executable": ["gamemoderun"] + "executables": ["gamemoderun"] }, "command": "gamemoderun ${command}" } diff --git a/data/share/tweaks/gpu_amd.json b/data/share/tweaks/gpu_amd.json index a8b882f4..e47a20fb 100644 --- a/data/share/tweaks/gpu_amd.json +++ b/data/share/tweaks/gpu_amd.json @@ -5,7 +5,7 @@ "url": "https://github.com/mesa3d/mesa", "group": "GPU", "requires": { - "kmod": ["amdgpu"] + "kernel_modules": ["amdgpu"] }, "env": { "RADV_PERFTEST": "aco" diff --git a/data/share/tweaks/mangohud.json b/data/share/tweaks/mangohud.json index bd5acc3a..4c41d2de 100644 --- a/data/share/tweaks/mangohud.json +++ b/data/share/tweaks/mangohud.json @@ -5,7 +5,7 @@ "url": "https://github.com/flightlessmango/MangoHud", "group": "Overlays", "requires": { - "executable": ["mangohud"] + "executables": ["mangohud"] }, "command": "mangohud ${command}" } diff --git a/data/share/tweaks/proton.json b/data/share/tweaks/proton.json index 7474c419..444a696a 100644 --- a/data/share/tweaks/proton.json +++ b/data/share/tweaks/proton.json @@ -1,7 +1,7 @@ [ { "id": "proton_dx_wined3d", - "name": "Proton: Use WineD3D", + "name": "Use WineD3D", "description": "Use OpenGL-based WineD3D for D3D11, D3D10 and D3D9 instead of Vulkan-based DXVK", "url": "https://github.com/ValveSoftware/Proton#runtime-config-options", "group": "Proton", @@ -15,7 +15,7 @@ }, { "id": "proton_dx_disable_d3d11", - "name": "Proton: Disable D3D11", + "name": "Disable D3D11", "description": "Disable d3d11.dll, for D3D11 games which can fall back to and run better with D3D9", "url": "https://github.com/ValveSoftware/Proton#runtime-config-options", "group": "Proton", @@ -29,7 +29,7 @@ }, { "id": "proton_dx_disable_d3d10", - "name": "Proton: Disable D3D10", + "name": "Disable D3D10", "description": "Disable d3d10.dll and dxgi.dll, for D3D10 games which can fall back to and run better with D3D9", "url": "https://github.com/ValveSoftware/Proton#runtime-config-options", "group": "Proton", @@ -43,7 +43,7 @@ }, { "id": "proton_no_esync", - "name": "Proton: Disable esync", + "name": "Disable esync", "description": "Disable eventfd-based in-process synchronization primitives", "url": "https://github.com/ValveSoftware/Proton#runtime-config-options", "group": "Proton", @@ -57,7 +57,7 @@ }, { "id": "proton_no_fsync", - "name": "Proton: Disable fsync", + "name": "Disable fsync", "description": "Disable futex-based in-process synchronization primitives", "url": "https://github.com/ValveSoftware/Proton#runtime-config-options", "group": "Proton", diff --git a/src/data/tweaks/Tweak.vala b/src/data/tweaks/Tweak.vala index 40fc7343..b7ae1580 100644 --- a/src/data/tweaks/Tweak.vala +++ b/src/data/tweaks/Tweak.vala @@ -32,14 +32,17 @@ namespace GameHub.Data.Tweaks public string? url { get; protected set; default = null; } public ApplicabilityOptions? applicability_options { get; protected set; default = null; } + public Requirements? requirements { get; protected set; default = null; } + + public ArrayList