Skip to content

Commit

Permalink
WIP Part 20: Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Vysp3r committed Feb 1, 2025
1 parent c076efc commit 50590b9
Show file tree
Hide file tree
Showing 20 changed files with 68 additions and 31 deletions.
4 changes: 2 additions & 2 deletions po/be.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: com.vysp3r.ProtonPlus\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-19 11:19-0500\n"
"POT-Creation-Date: 2025-02-01 14:38-0500\n"
"PO-Revision-Date: 2024-05-31 16:22+0000\n"
"Last-Translator: Yahor <[email protected]>\n"
"Language-Team: Belarusian <https://hosted.weblate.org/projects/protonplus/"
Expand Down Expand Up @@ -246,7 +246,7 @@ msgstr "Інструмент сумяшчальнасці для запуску
#: src/models/launchers/bottles.vala:32 src/models/launchers/hgl.vala:35
#: src/models/launchers/lutris.vala:39
#, fuzzy
msgid "Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."
msgid "Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."
msgstr "Рэалізацыя Direct3D 9, 10 і 11 на аснове Vulkan для Linux/Wine"

#: src/models/launchers/hgl.vala:29 src/models/launchers/lutris.vala:33
Expand Down
4 changes: 2 additions & 2 deletions po/com.vysp3r.ProtonPlus.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: com.vysp3r.ProtonPlus\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-19 11:19-0500\n"
"POT-Creation-Date: 2025-02-01 14:38-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -234,7 +234,7 @@ msgstr ""

#: src/models/launchers/bottles.vala:32 src/models/launchers/hgl.vala:35
#: src/models/launchers/lutris.vala:39
msgid "Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."
msgid "Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."
msgstr ""

#: src/models/launchers/hgl.vala:29 src/models/launchers/lutris.vala:33
Expand Down
4 changes: 2 additions & 2 deletions po/cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: com.vysp3r.ProtonPlus\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-19 11:19-0500\n"
"POT-Creation-Date: 2025-02-01 14:38-0500\n"
"PO-Revision-Date: 2023-04-10 11:40+0200\n"
"Last-Translator: Daniel Rusek <[email protected]>\n"
"Language-Team: \n"
Expand Down Expand Up @@ -239,7 +239,7 @@ msgstr ""

#: src/models/launchers/bottles.vala:32 src/models/launchers/hgl.vala:35
#: src/models/launchers/lutris.vala:39
msgid "Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."
msgid "Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."
msgstr ""

#: src/models/launchers/hgl.vala:29 src/models/launchers/lutris.vala:33
Expand Down
5 changes: 3 additions & 2 deletions po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: com.vysp3r.ProtonPlus\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-19 11:19-0500\n"
"POT-Creation-Date: 2025-02-01 14:38-0500\n"
"PO-Revision-Date: 2024-10-15 17:37+0200\n"
"Last-Translator: Christian Lauinger <[email protected]>\n"
"Language-Team: German <https://hosted.weblate.org/projects/protonplus/"
Expand Down Expand Up @@ -246,7 +246,8 @@ msgstr "Kompatibilitätstool zum Ausführen von Windows-Spielen unter Linux."

#: src/models/launchers/bottles.vala:32 src/models/launchers/hgl.vala:35
#: src/models/launchers/lutris.vala:39
msgid "Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."
#, fuzzy
msgid "Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."
msgstr ""
"Vulkan basierte Implementierung von Direct3D 9, 10 und 11 für Linux/Wine."

Expand Down
4 changes: 2 additions & 2 deletions po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-19 11:19-0500\n"
"POT-Creation-Date: 2025-02-01 14:38-0500\n"
"PO-Revision-Date: 2024-05-01 14:33+0000\n"
"Last-Translator: gallegonovato <[email protected]>\n"
"Language-Team: Spanish <https://hosted.weblate.org/projects/protonplus/"
Expand Down Expand Up @@ -242,7 +242,7 @@ msgstr ""
#: src/models/launchers/bottles.vala:32 src/models/launchers/hgl.vala:35
#: src/models/launchers/lutris.vala:39
#, fuzzy
msgid "Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."
msgid "Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."
msgstr "Implementación basada en Vulkan de Direct3D 9, 10 y 11 para Linux/Wine"

#: src/models/launchers/hgl.vala:29 src/models/launchers/lutris.vala:33
Expand Down
4 changes: 2 additions & 2 deletions po/fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: com.vysp3r.ProtonPlus\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-19 11:19-0500\n"
"POT-Creation-Date: 2025-02-01 14:38-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -232,7 +232,7 @@ msgstr ""

#: src/models/launchers/bottles.vala:32 src/models/launchers/hgl.vala:35
#: src/models/launchers/lutris.vala:39
msgid "Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."
msgid "Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."
msgstr ""

#: src/models/launchers/hgl.vala:29 src/models/launchers/lutris.vala:33
Expand Down
4 changes: 2 additions & 2 deletions po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-19 11:19-0500\n"
"POT-Creation-Date: 2025-02-01 14:38-0500\n"
"PO-Revision-Date: 2024-07-09 10:09+0000\n"
"Last-Translator: Noé Lopez <[email protected]>\n"
"Language-Team: French <https://hosted.weblate.org/projects/protonplus/"
Expand Down Expand Up @@ -245,7 +245,7 @@ msgstr "Outil de compatibilité pour exécuter des jeux Windows sur Linux"
#: src/models/launchers/bottles.vala:32 src/models/launchers/hgl.vala:35
#: src/models/launchers/lutris.vala:39
#, fuzzy
msgid "Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."
msgid "Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."
msgstr "Implémentation Vulkan de Direct3D 9, 10 et 11 pour Linux/Wine"

#: src/models/launchers/hgl.vala:29 src/models/launchers/lutris.vala:33
Expand Down
4 changes: 2 additions & 2 deletions po/id.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-19 11:19-0500\n"
"POT-Creation-Date: 2025-02-01 14:38-0500\n"
"PO-Revision-Date: 2024-01-07 02:06+0000\n"
"Last-Translator: Reza Almanda <[email protected]>\n"
"Language-Team: Indonesian <https://hosted.weblate.org/projects/protonplus/"
Expand Down Expand Up @@ -241,7 +241,7 @@ msgstr "Kompatibilitas alat untuk menjalankan game Windows di Linux"
#: src/models/launchers/bottles.vala:32 src/models/launchers/hgl.vala:35
#: src/models/launchers/lutris.vala:39
#, fuzzy
msgid "Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."
msgid "Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."
msgstr ""
"Implementasi berbasis Vulkan dari Direct3D 9, 10 dan 11 untuk Linux / Wine"

Expand Down
4 changes: 2 additions & 2 deletions po/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-19 11:19-0500\n"
"POT-Creation-Date: 2025-02-01 14:38-0500\n"
"PO-Revision-Date: 2024-08-19 10:09+0000\n"
"Last-Translator: Lize58 <[email protected]>\n"
"Language-Team: Italian <https://hosted.weblate.org/projects/protonplus/"
Expand Down Expand Up @@ -240,7 +240,7 @@ msgstr "Strumento di compatibilità per l'esecuzione di giochi Windows su Linux"
#: src/models/launchers/bottles.vala:32 src/models/launchers/hgl.vala:35
#: src/models/launchers/lutris.vala:39
#, fuzzy
msgid "Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."
msgid "Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."
msgstr "Implementazione basata su Vulkan di Direct3D 9, 10 e 11 per Linux/Wine"

#: src/models/launchers/hgl.vala:29 src/models/launchers/lutris.vala:33
Expand Down
4 changes: 2 additions & 2 deletions po/pl.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-19 11:19-0500\n"
"POT-Creation-Date: 2025-02-01 14:38-0500\n"
"PO-Revision-Date: 2024-08-14 20:09+0000\n"
"Last-Translator: Eryk Michalak <[email protected]>\n"
"Language-Team: Polish <https://hosted.weblate.org/projects/protonplus/"
Expand Down Expand Up @@ -240,7 +240,7 @@ msgstr "Narzędzie kompatybilności do uruchamiania gier Windows na Linuxie"

#: src/models/launchers/bottles.vala:32 src/models/launchers/hgl.vala:35
#: src/models/launchers/lutris.vala:39
msgid "Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."
msgid "Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."
msgstr ""

#: src/models/launchers/hgl.vala:29 src/models/launchers/lutris.vala:33
Expand Down
4 changes: 2 additions & 2 deletions po/pt.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-19 11:19-0500\n"
"POT-Creation-Date: 2025-02-01 14:38-0500\n"
"PO-Revision-Date: 2024-07-06 01:09+0000\n"
"Last-Translator: Kauã Azevedo da Silva Vicente <[email protected]>\n"
"Language-Team: Portuguese <https://hosted.weblate.org/projects/protonplus/"
Expand Down Expand Up @@ -244,7 +244,7 @@ msgstr "Ferramenta de compatibilidade para rodar jogos do Windows no Linux"
#: src/models/launchers/bottles.vala:32 src/models/launchers/hgl.vala:35
#: src/models/launchers/lutris.vala:39
#, fuzzy
msgid "Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."
msgid "Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."
msgstr "Implementação baseada em Vulkan do Direct3D 9, 10 e 11 para Linux/Wine"

#: src/models/launchers/hgl.vala:29 src/models/launchers/lutris.vala:33
Expand Down
5 changes: 3 additions & 2 deletions po/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-19 11:19-0500\n"
"POT-Creation-Date: 2025-02-01 14:38-0500\n"
"PO-Revision-Date: 2024-10-12 18:02+0500\n"
"Last-Translator: izmyname <[email protected]>\n"
"Language-Team: Russian <https://hosted.weblate.org/projects/protonplus/"
Expand Down Expand Up @@ -241,7 +241,8 @@ msgstr "Инструменты совместимости для запуска

#: src/models/launchers/bottles.vala:32 src/models/launchers/hgl.vala:35
#: src/models/launchers/lutris.vala:39
msgid "Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."
#, fuzzy
msgid "Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."
msgstr "Основанная на Vulkan реализация Direct3D 9, 10 и 11 для Linux/Wine."

#: src/models/launchers/hgl.vala:29 src/models/launchers/lutris.vala:33
Expand Down
5 changes: 3 additions & 2 deletions po/sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: com.vysp3r.ProtonPlus\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-19 11:19-0500\n"
"POT-Creation-Date: 2025-02-01 14:38-0500\n"
"PO-Revision-Date: 2024-10-03 01:10+0200\n"
"Last-Translator: Johnny Arcitec <[email protected]>\n"
"Language-Team: Swedish <https://hosted.weblate.org/projects/protonplus/"
Expand Down Expand Up @@ -245,7 +245,8 @@ msgstr "Kompatibilitetsverktyg för att köra Windows-programvara på Linux."

#: src/models/launchers/bottles.vala:32 src/models/launchers/hgl.vala:35
#: src/models/launchers/lutris.vala:39
msgid "Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."
#, fuzzy
msgid "Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."
msgstr "Vulkan-baserad implementering av Direct3D 9, 10 och 11 för Linux/Wine."

#: src/models/launchers/hgl.vala:29 src/models/launchers/lutris.vala:33
Expand Down
4 changes: 2 additions & 2 deletions po/zh.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-19 11:19-0500\n"
"POT-Creation-Date: 2025-02-01 14:38-0500\n"
"PO-Revision-Date: 2024-02-16 17:02+0000\n"
"Last-Translator: valigarmanda <[email protected]>\n"
"Language-Team: Chinese (Simplified) <https://hosted.weblate.org/projects/"
Expand Down Expand Up @@ -242,7 +242,7 @@ msgstr "在Linux上运行WIndows游戏的兼容性工具"
#: src/models/launchers/bottles.vala:32 src/models/launchers/hgl.vala:35
#: src/models/launchers/lutris.vala:39
#, fuzzy
msgid "Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."
msgid "Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."
msgstr "适用于 Linux/Wine的Direct3D 9、10和11基于Vulkan的实现"

#: src/models/launchers/hgl.vala:29 src/models/launchers/lutris.vala:33
Expand Down
2 changes: 2 additions & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ protonplus_sources = files(
'models/runners/kron4ek-wine-builds-vanilla.vala',
'models/runners/other.vala',
'models/runners/dxvk-async-sporif.vala',
'models/runners/dxvk-async-sarek.vala',
'models/runners/dxvk-async-gnusenpai.vala',
'models/runners/dxvk-gpl-async-ph42on.vala',
'models/runners/dxvk-sarek.vala',
'models/runners/dxvk-doitsujin.vala',
'models/runners/vkd3d-lutris.vala',
'models/runners/vkd3d-proton.vala',
Expand Down
2 changes: 1 addition & 1 deletion src/models/launchers/bottles.vala
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace ProtonPlus.Models.Launchers {
groups[0] = new Group (_("Runners"), _("Compatibility tools for running Windows software on Linux."), "/runners", this);
groups[0].runners = get_runners (groups[0]);

groups[1] = new Group ("DXVK", _("Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."), "/dxvk", this);
groups[1] = new Group ("DXVK", _("Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."), "/dxvk", this);
groups[1].runners = get_dxvk_runners (groups[1]);

return groups;
Expand Down
2 changes: 1 addition & 1 deletion src/models/launchers/hgl.vala
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace ProtonPlus.Models.Launchers {
groups[1] = new Group ("Wine", _("Compatibility tools for running Windows software on Linux."), "/tools/wine", this);
groups[1].runners = get_wine_runners (groups[1]);

groups[2] = new Group ("DXVK", _("Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."), "/tools/dxvk", this);
groups[2] = new Group ("DXVK", _("Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."), "/tools/dxvk", this);
groups[2].runners = get_dxvk_runners (groups[2]);

groups[3] = new Group ("VKD3D", _("Variant of Wine's VKD3D which aims to implement the full Direct3D 12 API on top of Vulkan."), "/tools/vkd3d", this);
Expand Down
4 changes: 3 additions & 1 deletion src/models/launchers/lutris.vala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace ProtonPlus.Models.Launchers {
groups[1] = new Group ("Wine", _("Compatibility tools for running Windows software on Linux."), "/runners/wine", this);
groups[1].runners = get_wine_runners (groups[1]);

groups[2] = new Group ("DXVK", _("Vulkan-based implementation of Direct3D 9, 10 and 11 for Linux/Wine."), "/runtime/dxvk", this);
groups[2] = new Group ("DXVK", _("Vulkan-based implementation of Direct3D 8, 9, 10 and 11 for Linux/Wine."), "/runtime/dxvk", this);
groups[2].runners = get_dxvk_runners (groups[2]);

groups[3] = new Group ("VKD3D", _("Variant of Wine's VKD3D which aims to implement the full Direct3D 12 API on top of Vulkan."), "/runtime/vkd3d", this);
Expand Down Expand Up @@ -74,6 +74,8 @@ namespace ProtonPlus.Models.Launchers {
runners.append (new Runners.DXVK_Async_Sporif (group));
runners.append (new Runners.DXVK_Async_gnusenpai (group));
runners.append (new Runners.DXVK_GPL_Async_Ph42oN (group));
runners.append (new Runners.DXVK_Sarek (group));
runners.append (new Runners.DXVK_Async_Sarek (group));

return runners;
}
Expand Down
15 changes: 15 additions & 0 deletions src/models/runners/dxvk-async-sarek.vala
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace ProtonPlus.Models.Runners {
public class DXVK_Async_Sarek : GitHub {
public DXVK_Async_Sarek (Group group) {
Object (group: group,
title: "DXVK-Sarek (Async)",
description: _("DXVK Builds that work with pre-Vulkan 1.3 versions"),
endpoint: "https://api.github.com/repos/pythonlover02/DXVK-Sarek/releases",
asset_position: 0);
}

public override string get_directory_name (string release_name) {
return title + "_Stable";
}
}
}
15 changes: 15 additions & 0 deletions src/models/runners/dxvk-sarek.vala
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace ProtonPlus.Models.Runners {
public class DXVK_Sarek : GitHub {
public DXVK_Sarek (Group group) {
Object (group: group,
title: "DXVK-Sarek",
description: _("DXVK Builds that work with pre-Vulkan 1.3 versions"),
endpoint: "https://api.github.com/repos/pythonlover02/DXVK-Sarek/releases",
asset_position: 1);
}

public override string get_directory_name (string release_name) {
return title + "_Stable";
}
}
}

0 comments on commit 50590b9

Please sign in to comment.