Skip to content

Commit

Permalink
Initial Tweaks implementation (#326)
Browse files Browse the repository at this point in the history
`Utils.run*` refactoring


Former-commit-id: c0f42a5
  • Loading branch information
tkashkin committed Jan 12, 2020
1 parent dd584bb commit 25b1e00
Show file tree
Hide file tree
Showing 60 changed files with 3,934 additions and 2,303 deletions.
8 changes: 8 additions & 0 deletions data/com.github.tkashkin.gamehub.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -341,4 +341,12 @@
<summary>Preferred description source</summary>
</key>
</schema>

<!-- Tweaks -->
<schema path="/com/github/tkashkin/gamehub/tweaks/" id="com.github.tkashkin.gamehub.tweaks">
<key name="global" type="as">
<default>[]</default>
<summary>Global tweaks list</summary>
</key>
</schema>
</schemalist>
1 change: 1 addition & 0 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ install_data(
)

install_subdir('share/compat', install_dir: join_paths(get_option('prefix'), get_option('datadir'), meson.project_name()))
install_subdir('share/tweaks', install_dir: join_paths(get_option('prefix'), get_option('datadir'), meson.project_name()))

i18n.merge_file(
input: meson.project_name() + '.desktop.in',
Expand Down
7 changes: 7 additions & 0 deletions data/share/tweaks/gamemode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"id": "gamemode",
"name": "Feral GameMode",
"description": "Temporarily apply a set of optimizations to a game process and OS. Requires Feral GameMode to be installed",
"url": "https://github.com/FeralInteractive/gamemode",
"command": "gamemoderun ${command}"
}
67 changes: 67 additions & 0 deletions data/share/tweaks/proton.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
[
{
"id": "dx_dxvk_hud",
"name": "DXVK: Show HUD",
"description": "Enable DXVK HUD",
"url": "https://github.com/doitsujin/dxvk#hud",
"applicable_to": {
"platforms": ["windows"],
"compat": ["wine", "proton"]
},
"env": {
"DXVK_HUD": "devinfo,fps"
}
},
{
"id": "proton_dx_d9vk",
"name": "Proton: Use D9VK",
"description": "Use Vulkan-based D9VK instead of OpenGL-based WineD3D for D3D9",
"url": "https://github.com/ValveSoftware/Proton#runtime-config-options",
"applicable_to": {
"platforms": ["windows"],
"compat": ["proton"]
},
"env": {
"PROTON_USE_D9VK": "1"
}
},
{
"id": "proton_dx_wined3d",
"name": "Proton: Use WineD3D",
"description": "Use OpenGL-based WineD3D for D3D11 and D3D10 instead of Vulkan-based DXVK",
"url": "https://github.com/ValveSoftware/Proton#runtime-config-options",
"applicable_to": {
"platforms": ["windows"],
"compat": ["proton"]
},
"env": {
"PROTON_USE_WINED3D": "1"
}
},
{
"id": "proton_no_esync",
"name": "Proton: Disable esync",
"description": "Disable eventfd-based in-process synchronization primitives",
"url": "https://github.com/ValveSoftware/Proton#runtime-config-options",
"applicable_to": {
"platforms": ["windows"],
"compat": ["proton"]
},
"env": {
"PROTON_NO_ESYNC": "1"
}
},
{
"id": "proton_no_fsync",
"name": "Proton: Disable fsync",
"description": "Disable futex-based in-process synchronization primitives",
"url": "https://github.com/ValveSoftware/Proton#runtime-config-options",
"applicable_to": {
"platforms": ["windows"],
"compat": ["proton"]
},
"env": {
"PROTON_NO_FSYNC": "1"
}
}
]
6 changes: 6 additions & 0 deletions po/POTFILES
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ src/data/providers/images/SteamGridDB.vala
src/data/providers/images/JinxSGVI.vala
src/data/providers/data/IGDB.vala

src/data/tweaks/Tweak.vala

src/ui/windows/MainWindow.vala
src/ui/windows/WebAuthWindow.vala

Expand All @@ -63,6 +65,7 @@ src/ui/dialogs/SettingsDialog/pages/ui/Appearance.vala
src/ui/dialogs/SettingsDialog/pages/ui/Behavior.vala
src/ui/dialogs/SettingsDialog/pages/general/Collection.vala
src/ui/dialogs/SettingsDialog/pages/general/Controller.vala
src/ui/dialogs/SettingsDialog/pages/general/Tweaks.vala
src/ui/dialogs/SettingsDialog/pages/sources/Steam.vala
src/ui/dialogs/SettingsDialog/pages/sources/GOG.vala
src/ui/dialogs/SettingsDialog/pages/sources/Humble.vala
Expand All @@ -79,6 +82,7 @@ src/ui/dialogs/GameFSOverlaysDialog.vala
src/ui/dialogs/CompatRunDialog.vala
src/ui/dialogs/CorruptedInstallerDialog.vala
src/ui/dialogs/ImportEmulatedGamesDialog.vala
src/ui/dialogs/GameTweaksDialog.vala

src/ui/views/BaseView.vala
src/ui/views/WelcomeView.vala
Expand Down Expand Up @@ -119,6 +123,7 @@ src/ui/widgets/ModeButton.vala
src/ui/widgets/OverlayBar.vala
src/ui/widgets/Welcome.vala
src/ui/widgets/SettingsSidebar.vala
src/ui/widgets/TweaksList.vala

src/utils/Utils.vala
src/utils/ImageCache.vala
Expand All @@ -134,6 +139,7 @@ src/settings/Auth.vala
src/settings/Compat.vala
src/settings/Providers.vala
src/settings/Controller.vala
src/settings/Tweaks.vala

src/utils/downloader/Downloader.vala
src/utils/downloader/SoupDownloader.vala
Loading

0 comments on commit 25b1e00

Please sign in to comment.