Unverified Commit 5617653b authored by Mikhail Tergoev's avatar Mikhail Tergoev Committed by GitHub

Merge branch 'master' into update-locale-window

parents 8020bf57 ca8f32b7
......@@ -2,6 +2,33 @@ You can help us in the development of the project on the website: https://linux-
----------------------------------------
Changelog:
###Scripts version 2305### Date: 12.06.2024 / Download update size: 183 megabytes
* ATTENTION: after updating the scripts, you need to restart PortProton once to download the new version of plugins!
* the plugins package has been updated to v16:
* the yad version has been updated - many patches have been added to improve the interface (thanks Htylol)
* information about the project has been fixed when hovering over the tray icon (thanks Htylol)
* the exe launch interface has been updated, a tab with settings has been added (thanks Htylol)
* creation of new prefixes has been accelerated (in 1.5 or more times, depending on the characteristics of the PC)
* updated dxvk-nvapi to v0.7.0-5
* added a portable version of icoextract for better extraction of icons from exe files (thanks to Boria138)
* updated versions:
* DXVK_GIT "2.3.1-72"
* VKD3D_GIT "1.1-4051"
* optimized the speed of switching PortProton interface settings
* added a symbolic link to the home directory for the flatpak version of PortProton
* Improved PortProton interface
* added theme: compact (thanks Htylol)
* added switching the view of the main exe launch interface and shortcuts in the menu "PortProton -> PortProton Settings -> Change the launch interface" (thanks Htylol)
* GameScope settings are placed in a separate window (for future functionality expansion)
* Improved the wine download interface and added the ability to select multiple versions at the same time
* many small improvements to the GUI and scripts
###Scripts version 2304### Date: 10.06.2024 / Download update size: 3 megabytes
* HOTFIX for ALT Linux + NVIDIA
###Scripts version 2303### Date: 06.06.2024 / Download update size: 190 megabytes
* updated WINE_LG to version "9-10"
* updated the GOG installer
......@@ -210,7 +237,7 @@ Special thanks:
* the faudio component has been added to the DEFAULT prefix (required for games running on the Creation Engine, example The Elder Scrolls)
* the plugins_v14 library package has been updated:
transferred from the libs package: d3d_extras, reshade and default_pfx
portable versions have been added: yad_v13_0, perl, exiftool (thanks to Boria138)
portable versions have been added: yad_gui_pp, perl, exiftool (thanks to Boria138)
* the libs_v47 library package has been updated:
pressure-vessel 0.20240306.0
sniper 0.20240307.80401
......
......@@ -2,10 +2,37 @@
-----------------------------------------
История изменений:
###Scripts version 2305### Дата: 12.06.2024 / Размер скачиваемого обновления: 183 мегабайта
* ВНИМАНИЕ: после обновления скриптов необходимо один раз перезапустить PortProton что бы скачалась новая версия plugins!
* обновлен пакет plugins до v16:
* обновлена версия yad - добавлено множество патчей улучшающих интерфейс (спасибо Htylol)
* исправлена информация о проекте при наведении курсора на иконку в трее (спасибо Htylol)
* обновлен интерфейс запуска exe и ярлыков, добавлена вкладка с настройками (спасибо Htylol)
* ускорено создание новых префиксов (в 1.5 и более раз в зависимости от характеристик ПК)
* обновлен dxvk-nvapi до v0.7.0-5
* добавлена портативная версия icoextract для лучшего извлечения иконок из exe файлов (спасибо Boria138)
* обновлены версии:
* DXVK_GIT "2.3.1-72"
* VKD3D_GIT "1.1-4051"
* оптимизирована скорость переключения настроек интерфейса PortProton
* добавлена символьная ссылка в домашний каталог для flatpak версии PortProton
* улучшен интерфейс PortProton
* добавлена тема: compact (спасибо Htylol)
* добавлено переключение вида основного интерфейса запуска exe и ярлыков в меню "PortProton -> Настройки PortProton -> Изменить интерфейс запуска" (спасибо Htylol)
* настройки GameScope вынесены в отдельное окно (для будущего расширения функционала)
* улучшен интерфейс загрузки wine и добавлена возможность выбора нескольких версий одновременно
* множество небольших улучшений графического интерфейса и скриптов
###Scripts version 2304### Дата: 10.06.2024 / Размер скачиваемого обновления: 3 мегабайта
* HOTFIX - определения драйвера Vulkan на системах Alt Linux + NVIDIA
###Scripts version 2303### Дата: 06.06.2024 / Размер скачиваемого обновления: 190 мегабайт
* обновлен WINE_LG до версии "9-10"
* обновлен установщик GOG
* исправлено отоброжение правильных иконок .exe файлов
* исправлено отображение правильных иконок .exe файлов
###Scripts version 2302### Дата: 03.06.2024 / Размер скачиваемого обновления: 405 мегабайт
* обновлен WINE_LG до версии "9-9"
......@@ -217,7 +244,7 @@
* в префикс DEFAULT добавлен компонент faudio (необходим для игр на движке Creation Engine, пример The Elder Scrolls)
* обновлен пакет библиотек plugins_v14:
перенесены из пакета libs: d3d_extras, reshade и default_pfx
добавлены портативные версии: yad_v13_0, perl, exiftool (спасибо Boria138)
добавлены портативные версии: yad_gui_pp, perl, exiftool (спасибо Boria138)
* обновлен пакет библиотек libs_v47:
pressure-vessel 0.20240306.0
sniper 0.20240307.80401
......
......@@ -7,7 +7,7 @@
msgid ""
msgstr "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-05-12 13:48+0300\n"
"POT-Creation-Date: 2024-06-09 15:50+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -16,371 +16,392 @@ msgstr "Project-Id-Version: PACKAGE VERSION\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: /home/fidel/PortProton/data/scripts/start.sh:206
#: /home/fidel/PortProton/data/scripts/start.sh:218
#, sh-format
msgid "A running PortProton session was detected.\\nDo you want to end the "
"previous session?"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:263
#: /home/fidel/PortProton/data/scripts/start.sh:283
#, sh-format
msgid "Unpack has FAILED for prefix:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:274
#: /home/fidel/PortProton/data/scripts/start.sh:294
#, sh-format
msgid "Unpack is DONE for prefix:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:340
#: /home/fidel/PortProton/data/scripts/start.sh:365
#, sh-format
msgid "and dgVoodoo2 "
msgid "WineD3D OpenGL (For video cards without Vulkan)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:341
#: /home/fidel/PortProton/data/scripts/start.sh:366
#, sh-format
msgid "WineD3D OpenGL ${DGV_TXT}(For video cards without Vulkan)"
msgid "WineD3D Vulkan (Damavand experimental)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:342
#: /home/fidel/PortProton/data/scripts/start.sh:367
#, sh-format
msgid "WineD3D Vulkan ${DGV_TXT}(Damavand experimental)"
msgid "Legacy DXVK (Vulkan v1.1)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:343
#: /home/fidel/PortProton/data/scripts/start.sh:368
#, sh-format
msgid "Legacy DXVK ${DGV_TXT}(Vulkan v1.1)"
msgid "Stable DXVK, VKD3D (Vulkan v1.2)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:344
#: /home/fidel/PortProton/data/scripts/start.sh:369
#, sh-format
msgid "Stable DXVK, VKD3D ${DGV_TXT}(Vulkan v1.2)"
msgid "Newest DXVK, VKD3D, D8VK (Vulkan v1.3+)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:345
#, sh-format
msgid "Newest DXVK, VKD3D, D8VK ${DGV_TXT}(Vulkan v1.3+)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:346
#: /home/fidel/PortProton/data/scripts/start.sh:370
#, sh-format
msgid "Gallium Nine (DirectX 9 for MESA)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:347
#: /home/fidel/PortProton/data/scripts/start.sh:371
#, sh-format
msgid "Gallium Zink (OpenGL to Vulkan)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:360
#: /home/fidel/PortProton/data/scripts/start.sh:384
#, sh-format
msgid "PortProton database file was found for"
msgid "Launching"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:397
#: /home/fidel/PortProton/data/scripts/functions_helper:3596
#: /home/fidel/PortProton/data/scripts/functions_helper:3608
#: /home/fidel/PortProton/data/scripts/start.sh:422
#: /home/fidel/PortProton/data/scripts/functions_helper:3740
#: /home/fidel/PortProton/data/scripts/functions_helper:3752
#, sh-format
msgid "CREATE SHORTCUT"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:397
#: /home/fidel/PortProton/data/scripts/start.sh:422
#, sh-format
msgid "Create shortcut for select file..."
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:399
#: /home/fidel/PortProton/data/scripts/functions_helper:3715
#: /home/fidel/PortProton/data/scripts/start.sh:424
#: /home/fidel/PortProton/data/scripts/functions_helper:3860
#, sh-format
msgid "DELETE SHORTCUT"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:399
#: /home/fidel/PortProton/data/scripts/start.sh:424
#, sh-format
msgid "Delete shortcut for select file..."
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:409
#: /home/fidel/PortProton/data/scripts/start.sh:438
#: /home/fidel/PortProton/data/scripts/start.sh:481
#, sh-format
msgid "VKBASALT"
msgid "Base settings"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:409
#: /home/fidel/PortProton/data/scripts/functions_helper:2846
#: /home/fidel/PortProton/data/scripts/start.sh:438
#: /home/fidel/PortProton/data/scripts/start.sh:481
#, sh-format
msgid "Enable vkBasalt by default to improve graphics in games running on "
"Vulkan. (The HOME hotkey disables vkbasalt)"
msgid "Edit database file for"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:410
#: /home/fidel/PortProton/data/scripts/start.sh:439
#: /home/fidel/PortProton/data/scripts/start.sh:482
#: /home/fidel/PortProton/data/scripts/functions_helper:2876
#, sh-format
msgid "MANGOHUD"
msgid "Enable vkBasalt by default to improve graphics in games running on "
"Vulkan. (The HOME hotkey disables vkbasalt)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:410
#: /home/fidel/PortProton/data/scripts/start.sh:440
#: /home/fidel/PortProton/data/scripts/start.sh:483
#, sh-format
msgid "Enable Mangohud by default (R_SHIFT + F12 keyboard shortcuts disable "
"Mangohud)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:411
#: /home/fidel/PortProton/data/scripts/start.sh:441
#: /home/fidel/PortProton/data/scripts/start.sh:484
#, sh-format
msgid "EDIT DB"
msgid "Enable dgVoodoo2 by default (This wrapper fixes many compatibility "
"and rendering issues when running old games)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:411
#: /home/fidel/PortProton/data/scripts/start.sh:442
#, sh-format
msgid "Edit database file for"
msgid "Enable GameScope by default (Wayland micro compositor)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:413
#: /home/fidel/PortProton/data/scripts/start.sh:458
#, sh-format
msgid "GENERAL"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:459
#: /home/fidel/PortProton/data/scripts/functions_helper:3938
#, sh-format
msgid "SETTINGS"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:461
#: /home/fidel/PortProton/data/scripts/start.sh:492
#, sh-format
msgid "DEBUG"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:413
#: /home/fidel/PortProton/data/scripts/start.sh:461
#: /home/fidel/PortProton/data/scripts/start.sh:492
#, sh-format
msgid "Launch with the creation of a .log file at the root PortProton"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:414
#: /home/fidel/PortProton/data/scripts/start.sh:462
#: /home/fidel/PortProton/data/scripts/start.sh:493
#, sh-format
msgid "LAUNCH"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:414
#: /home/fidel/PortProton/data/scripts/start.sh:462
#: /home/fidel/PortProton/data/scripts/start.sh:493
#, sh-format
msgid "Run file ..."
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:443
#: /home/fidel/PortProton/data/scripts/start.sh:523
#, sh-format
msgid "Create shortcut..."
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:463
#: /home/fidel/PortProton/data/scripts/start.sh:543
#, sh-format
msgid "Reinstall PortProton"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:464
#: /home/fidel/PortProton/data/scripts/start.sh:544
#, sh-format
msgid "Remove PortProton"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:465
#: /home/fidel/PortProton/data/scripts/start.sh:545
#, sh-format
msgid "Update PortProton"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:466
#: /home/fidel/PortProton/data/scripts/start.sh:546
#, sh-format
msgid "Changelog"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:467
#: /home/fidel/PortProton/data/scripts/start.sh:547
#, sh-format
msgid "Change language"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:468
#: /home/fidel/PortProton/data/scripts/start.sh:548
#, sh-format
msgid "Edit user.conf"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:469
#: /home/fidel/PortProton/data/scripts/start.sh:549
#, sh-format
msgid "Scripts from backup"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:471
#: /home/fidel/PortProton/data/scripts/start.sh:551
#, sh-format
msgid "Credits"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:472
#: /home/fidel/PortProton/data/scripts/start.sh:552
#, sh-format
msgid "Change mirror to"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:479
#: /home/fidel/PortProton/data/scripts/start.sh:553
#, sh-format
msgid "Change start gui"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:560
#, sh-format
msgid "Create prefix backup"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:480
#: /home/fidel/PortProton/data/scripts/start.sh:561
#, sh-format
msgid "Run winetricks to install additional libraries to the selected prefix"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:481
#: /home/fidel/PortProton/data/scripts/start.sh:562
#, sh-format
msgid "Clear prefix"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:481
#: /home/fidel/PortProton/data/scripts/start.sh:562
#, sh-format
msgid "Clear the prefix to fix problems"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:482
#: /home/fidel/PortProton/data/scripts/start.sh:563
#, sh-format
msgid "Get other Wine"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:482
#: /home/fidel/PortProton/data/scripts/start.sh:563
#, sh-format
msgid "Open the menu to download other versions of WINE or PROTON"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:483
#: /home/fidel/PortProton/data/scripts/start.sh:564
#, sh-format
msgid "Uninstaller"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:483
#: /home/fidel/PortProton/data/scripts/start.sh:564
#, sh-format
msgid "Run the program uninstaller built into wine"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:484
#: /home/fidel/PortProton/data/scripts/start.sh:565
#, sh-format
msgid "Prefix Manager"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:484
#: /home/fidel/PortProton/data/scripts/start.sh:565
#, sh-format
msgid "Run winecfg to edit the settings of the selected prefix"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:485
#: /home/fidel/PortProton/data/scripts/start.sh:566
#, sh-format
msgid "File Manager"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:485
#: /home/fidel/PortProton/data/scripts/start.sh:566
#, sh-format
msgid "Run wine file manager"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:486
#: /home/fidel/PortProton/data/scripts/start.sh:567
#, sh-format
msgid "Command line"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:486
#: /home/fidel/PortProton/data/scripts/start.sh:567
#, sh-format
msgid "Run wine cmd"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:487
#: /home/fidel/PortProton/data/scripts/start.sh:568
#, sh-format
msgid "Regedit"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:487
#: /home/fidel/PortProton/data/scripts/start.sh:568
#, sh-format
msgid "Run wine regedit"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:490
#: /home/fidel/PortProton/data/scripts/start.sh:571
#, sh-format
msgid "Emulator for Nintendo game consoles with high compatibility"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:491
#: /home/fidel/PortProton/data/scripts/start.sh:572
#, sh-format
msgid "Multi-arcade emulator that allows you to play old arcade games"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:492
#: /home/fidel/PortProton/data/scripts/start.sh:573
#, sh-format
msgid "Multi-platform frontend for emulators with extensive settings"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:493
#: /home/fidel/PortProton/data/scripts/start.sh:574
#, sh-format
msgid "Emulator for the PlayStation Portable (PSP) game console"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:494
#: /home/fidel/PortProton/data/scripts/start.sh:575
#, sh-format
msgid "Emulator for the Nintendo 3DS game console"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:495
#: /home/fidel/PortProton/data/scripts/start.sh:576
#, sh-format
msgid "Emulator for the Wii U game console"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:496
#: /home/fidel/PortProton/data/scripts/start.sh:577
#, sh-format
msgid "Emulator for the PlayStation 1 game console with high compatibility"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:497
#: /home/fidel/PortProton/data/scripts/start.sh:578
#, sh-format
msgid "Emulator for the Nintendo 64 game console"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:498
#: /home/fidel/PortProton/data/scripts/start.sh:579
#, sh-format
msgid "Emulator for the Game Boy Advance game console"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:499
#: /home/fidel/PortProton/data/scripts/start.sh:580
#, sh-format
msgid "Emulator for the Sega Saturn game console"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:500
#: /home/fidel/PortProton/data/scripts/start.sh:581
#, sh-format
msgid "Emulator for the Xbox 360 game console"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:501
#: /home/fidel/PortProton/data/scripts/start.sh:582
#, sh-format
msgid "Emulator for the Nintendo Entertainment System (NES or Dendy) game "
"console"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:502
#: /home/fidel/PortProton/data/scripts/start.sh:583
#, sh-format
msgid "Emulator for the Xbox game console"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:503
#: /home/fidel/PortProton/data/scripts/start.sh:584
#, sh-format
msgid "Emulator for the Sega Dreamcast game console"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:556
#: /home/fidel/PortProton/data/scripts/start.sh:569
#: /home/fidel/PortProton/data/scripts/start.sh:638
#: /home/fidel/PortProton/data/scripts/start.sh:651
#, sh-format
msgid "AUTOINSTALLS"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:557
#: /home/fidel/PortProton/data/scripts/start.sh:570
#: /home/fidel/PortProton/data/scripts/start.sh:639
#: /home/fidel/PortProton/data/scripts/start.sh:652
#, sh-format
msgid "EMULATORS"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:558
#: /home/fidel/PortProton/data/scripts/start.sh:571
#: /home/fidel/PortProton/data/scripts/start.sh:640
#: /home/fidel/PortProton/data/scripts/start.sh:653
#, sh-format
msgid "WINE SETTINGS"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:559
#: /home/fidel/PortProton/data/scripts/start.sh:572
#: /home/fidel/PortProton/data/scripts/start.sh:641
#: /home/fidel/PortProton/data/scripts/start.sh:654
#, sh-format
msgid "PORTPROTON SETTINGS"
msgstr ""
#: /home/fidel/PortProton/data/scripts/start.sh:560
#: /home/fidel/PortProton/data/scripts/start.sh:568
#: /home/fidel/PortProton/data/scripts/functions_helper:3133
#: /home/fidel/PortProton/data/scripts/start.sh:642
#: /home/fidel/PortProton/data/scripts/start.sh:650
#: /home/fidel/PortProton/data/scripts/functions_helper:3193
#, sh-format
msgid "INSTALLED"
msgstr ""
......@@ -415,584 +436,517 @@ msgid "Do you really want to reinstall PortProton?\\nFor this, an internet "
"connection will be required."
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:1190
#: /home/fidel/PortProton/data/scripts/functions_helper:1183
#, sh-format
msgid "More than one DB file found for the application being launched."
"\\nSelect the required one, or delete the extra DB file before the "
"next run.\\n"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:1315
#: /home/fidel/PortProton/data/scripts/functions_helper:1325
#: /home/fidel/PortProton/data/scripts/functions_helper:1331
#: /home/fidel/PortProton/data/scripts/functions_helper:1335
#: /home/fidel/PortProton/data/scripts/functions_helper:1306
#: /home/fidel/PortProton/data/scripts/functions_helper:1316
#: /home/fidel/PortProton/data/scripts/functions_helper:1322
#: /home/fidel/PortProton/data/scripts/functions_helper:1326
#, sh-format
msgid "UPDATING NOW"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:1319
#: /home/fidel/PortProton/data/scripts/functions_helper:1310
#, sh-format
msgid "Update scripts:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:1322
#: /home/fidel/PortProton/data/scripts/functions_helper:2591
#: /home/fidel/PortProton/data/scripts/functions_helper:1313
#: /home/fidel/PortProton/data/scripts/functions_helper:2627
#, sh-format
msgid "EXIT"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:1323
#: /home/fidel/PortProton/data/scripts/functions_helper:1329
#: /home/fidel/PortProton/data/scripts/functions_helper:1361
#: /home/fidel/PortProton/data/scripts/functions_helper:1314
#: /home/fidel/PortProton/data/scripts/functions_helper:1320
#: /home/fidel/PortProton/data/scripts/functions_helper:1352
#, sh-format
msgid "DO NOT REMIND ME"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:1324
#: /home/fidel/PortProton/data/scripts/functions_helper:1330
#: /home/fidel/PortProton/data/scripts/functions_helper:1359
#: /home/fidel/PortProton/data/scripts/functions_helper:1315
#: /home/fidel/PortProton/data/scripts/functions_helper:1321
#: /home/fidel/PortProton/data/scripts/functions_helper:1350
#, sh-format
msgid "REMIND ME LATER"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:1500
#: /home/fidel/PortProton/data/scripts/functions_helper:1503
#, sh-format
msgid "Searching for .exe files... Please wait."
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:1512
#: /home/fidel/PortProton/data/scripts/functions_helper:1515
#, sh-format
msgid "Create shortcut for..."
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:1513
#: /home/fidel/PortProton/data/scripts/functions_helper:1516
#, sh-format
msgid "Choose the .exe file for which you need to create a shortcut and "
"click OK.\\n"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:1514
#: /home/fidel/PortProton/data/scripts/functions_helper:1517
#, sh-format
msgid "Choose path to .exe file:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:1515
#: /home/fidel/PortProton/data/scripts/functions_helper:2616
#: /home/fidel/PortProton/data/scripts/functions_helper:3134
#: /home/fidel/PortProton/data/scripts/functions_helper:3716
#: /home/fidel/PortProton/data/scripts/functions_helper:3787
#: /home/fidel/PortProton/data/scripts/functions_helper:4015
#: /home/fidel/PortProton/data/scripts/functions_helper:1518
#: /home/fidel/PortProton/data/scripts/functions_helper:2653
#: /home/fidel/PortProton/data/scripts/functions_helper:3194
#: /home/fidel/PortProton/data/scripts/functions_helper:3861
#: /home/fidel/PortProton/data/scripts/functions_helper:3933
#: /home/fidel/PortProton/data/scripts/functions_helper:4161
#, sh-format
msgid "CANCEL"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:1516
#: /home/fidel/PortProton/data/scripts/functions_helper:2578
#: /home/fidel/PortProton/data/scripts/functions_helper:2617
#: /home/fidel/PortProton/data/scripts/functions_helper:3135
#: /home/fidel/PortProton/data/scripts/functions_helper:3788
#: /home/fidel/PortProton/data/scripts/functions_helper:4016
#: /home/fidel/PortProton/data/scripts/functions_helper:1519
#: /home/fidel/PortProton/data/scripts/functions_helper:2614
#: /home/fidel/PortProton/data/scripts/functions_helper:2654
#: /home/fidel/PortProton/data/scripts/functions_helper:3195
#: /home/fidel/PortProton/data/scripts/functions_helper:3934
#: /home/fidel/PortProton/data/scripts/functions_helper:4162
#, sh-format
msgid "OK"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:1675
#: /home/fidel/PortProton/data/scripts/functions_helper:1679
#, sh-format
msgid "Do you want to installing recommended libraries in the new prefix:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2223
#: /home/fidel/PortProton/data/scripts/functions_helper:2231
#, sh-format
msgid "d3dadapter9.so.1.0.0 - Not found in the system.\\nInstall the "
"missing package: <b>d3dadapter9</b>"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2600
#: /home/fidel/PortProton/data/scripts/functions_helper:2636
#, sh-format
msgid "You will need to check internet connection,and\\npress Repeat for "
"repeat download"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2600
#: /home/fidel/PortProton/data/scripts/functions_helper:3711
#: /home/fidel/PortProton/data/scripts/functions_helper:2637
#: /home/fidel/PortProton/data/scripts/functions_helper:3856
#, sh-format
msgid "Error"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2603
#: /home/fidel/PortProton/data/scripts/functions_helper:2640
#, sh-format
msgid "SKIP"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2604
#: /home/fidel/PortProton/data/scripts/functions_helper:2641
#, sh-format
msgid "REPEAT"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2613
#: /home/fidel/PortProton/data/scripts/functions_helper:3588
#: /home/fidel/PortProton/data/scripts/functions_helper:3600
#: /home/fidel/PortProton/data/scripts/functions_helper:2650
#: /home/fidel/PortProton/data/scripts/functions_helper:3732
#: /home/fidel/PortProton/data/scripts/functions_helper:3744
#, sh-format
msgid "Choices"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2648
#: /home/fidel/PortProton/data/scripts/functions_helper:2653
#: /home/fidel/PortProton/data/scripts/functions_helper:2685
#: /home/fidel/PortProton/data/scripts/functions_helper:2690
#, sh-format
msgid "TERMINAL"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2648
#: /home/fidel/PortProton/data/scripts/functions_helper:2653
#: /home/fidel/PortProton/data/scripts/functions_helper:2685
#: /home/fidel/PortProton/data/scripts/functions_helper:2690
#, sh-format
msgid "LOGO"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2717
#: /home/fidel/PortProton/data/scripts/functions_helper:2755
#, sh-format
msgid "Please wait. Installing the"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2752
#: /home/fidel/PortProton/data/scripts/functions_helper:2792
#: /home/fidel/PortProton/data/scripts/functions_helper:2791
#: /home/fidel/PortProton/data/scripts/functions_helper:2831
#, sh-format
msgid "CHANGELOG"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2790
#: /home/fidel/PortProton/data/scripts/functions_helper:2829
#, sh-format
msgid "WINEFILE"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2791
#: /home/fidel/PortProton/data/scripts/functions_helper:2830
#, sh-format
msgid "TASKMGR"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2793
#: /home/fidel/PortProton/data/scripts/functions_helper:2832
#, sh-format
msgid "FORCE EXIT"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2835
#: /home/fidel/PortProton/data/scripts/functions_helper:2874
#, sh-format
msgid "Enable dgVoodoo2. Forced use all dgVoodoo2 libs (Glide 2.11-3.1, "
"DirectDraw 1-7, Direct3D 2-9) on all 3D API. For WineD3D OpenGL need "
"use WineLG (For Gallium Nine and Zink use too)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2836
#, sh-format
msgid "Do not use d3d8 and d3d9 dgVoodoo2 libraries. For some old games, "
"using the example of Space Rangers, a bug with a black screen is "
"corrected."
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2837
#, sh-format
msgid "Forced use of 16bit screen mode. Solves the problem of launching old "
"games, such as Moto Racer."
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2838
#, sh-format
msgid "DirectXD 11 is used by default (and recommended). Use DirectX12 for "
"dgVoodoo2. Doesnt always work better. (Working only on stable dxvk "
"and vkd3d)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2839
#, sh-format
msgid "Enable fast memory access. (Enable if games have poor performance, "
"using Unreal 2 as an example)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2840
#, sh-format
msgid "Increase the amount of vram for dgVoodoo2 (Increases from 256 to "
"1024)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2841
#, sh-format
msgid "Render image based on monitor resolution. Can use if the game has a "
"small interface size. Widescreen effect for 16:9"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2842
#, sh-format
msgid "Forced anisotropic filtering 16x in Direct3D games"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2843
#, sh-format
msgid "Forced antialiasing 8x in Direct3D games"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2845
#: /home/fidel/PortProton/data/scripts/functions_helper:2875
#, sh-format
msgid "Force use DirectInput protocol instead of XInput"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2847
#: /home/fidel/PortProton/data/scripts/functions_helper:2877
#, sh-format
msgid "Do not use in-process synchronization primitives based on eventfd. "
"(It is recommended not to change the value.)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2848
#: /home/fidel/PortProton/data/scripts/functions_helper:2878
#, sh-format
msgid "Do not use futex-based in-process synchronization primitives. "
"(Automatically disabled on systems without FUTEX_WAIT_MULTIPLE "
"support) (It is recommended not to change the value)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2849
#: /home/fidel/PortProton/data/scripts/functions_helper:2879
#, sh-format
msgid "Enable vkd3d support - Ray Tracing"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2850
#: /home/fidel/PortProton/data/scripts/functions_helper:2880
#, sh-format
msgid "Required for video playback in some games so that it is not "
"distorted (usually colored pink)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2851
#: /home/fidel/PortProton/data/scripts/functions_helper:2881
#, sh-format
msgid "Disable asynchronous calls for VULKAN and DXVK modes"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2852
#: /home/fidel/PortProton/data/scripts/functions_helper:2882
#, sh-format
msgid "Enable DLSS on supported NVIDIA graphics cards"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2853
#: /home/fidel/PortProton/data/scripts/functions_helper:2883
#, sh-format
msgid "Forced use of older versions of OpenGL"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2854
#: /home/fidel/PortProton/data/scripts/functions_helper:2884
#, sh-format
msgid "Disguise all features used for NVIDIA graphics cards"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2855
#: /home/fidel/PortProton/data/scripts/functions_helper:2885
#, sh-format
msgid "Forced activation of vertical sync"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2856
#: /home/fidel/PortProton/data/scripts/functions_helper:2886
#, sh-format
msgid "Enable the application to run in the WINE virtual desktop"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2857
#: /home/fidel/PortProton/data/scripts/functions_helper:2887
#, sh-format
msgid "Run the application in the terminal"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2858
#: /home/fidel/PortProton/data/scripts/functions_helper:2888
#, sh-format
msgid "Include a delay in releasing some memory to bypass errors associated "
"with using the application after the memory is released"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2859
#: /home/fidel/PortProton/data/scripts/functions_helper:2889
#, sh-format
msgid "A very dangerous way to hack the memory write timer in ntdll. This "
"improves the performance of some very specific games. (It is "
"recommended not to change the value.)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2860
#: /home/fidel/PortProton/data/scripts/functions_helper:2890
#, sh-format
msgid "Disable the window for selecting startup modes and WINE versions"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2861
#: /home/fidel/PortProton/data/scripts/functions_helper:2891
#, sh-format
msgid "Use Gstreamer to output clips in games (WMF support)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2862
#: /home/fidel/PortProton/data/scripts/functions_helper:2892
#, sh-format
msgid "Increases RAM usage limits for 32-bit applications from two to four "
"gigabytes"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2863
#: /home/fidel/PortProton/data/scripts/functions_helper:2893
#, sh-format
msgid "Use container launch mode (It is recommended not to change the value)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2864
#: /home/fidel/PortProton/data/scripts/functions_helper:2894
#, sh-format
msgid "Using FPS and system load monitoring (Turns on and off by the key "
"combination - right Shift + F12)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2865
#: /home/fidel/PortProton/data/scripts/functions_helper:2895
#, sh-format
msgid "Using automatic system optimization to improve performance in games "
"(provided the gamemode package is installed on the system)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2866
#: /home/fidel/PortProton/data/scripts/functions_helper:2896
#, sh-format
msgid "Forced use of built-in DXGI library (in rare cases it solves "
"problems with DX12 games)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2867
#: /home/fidel/PortProton/data/scripts/functions_helper:2897
#, sh-format
msgid "Forced use of MANGOHUD system settings (GOverlay, etc.)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2868
#: /home/fidel/PortProton/data/scripts/functions_helper:2898
#, sh-format
msgid "Forced use of VKBASALT system settings (GOverlay, etc.)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2869
#: /home/fidel/PortProton/data/scripts/functions_helper:2899
#, sh-format
msgid "Enable forced use of third-party DirectX libraries"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2870
#: /home/fidel/PortProton/data/scripts/functions_helper:2900
#, sh-format
msgid "Change the version of WINDOWS 10 to WINDOWS 7 in the prefix"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2871
#: /home/fidel/PortProton/data/scripts/functions_helper:2901
#, sh-format
msgid "Use WINE shader caching (disable only if there are microfreezes in "
"the game)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2872
#: /home/fidel/PortProton/data/scripts/functions_helper:2902
#, sh-format
msgid "Works while using any version of ProtonGE in full screen mode at a "
"resolution below the standard screen"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2873
#: /home/fidel/PortProton/data/scripts/functions_helper:2903
#, sh-format
msgid "Enable DLSS translator in FSR 2 in DirectX 12 games (CyberFSR2)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2874
#, sh-format
msgid "Enable DLSS translator in FSR 3 in DirectX 12 games (Experimental "
"project dlssg-to-fsr3)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2875
#: /home/fidel/PortProton/data/scripts/functions_helper:2904
#, sh-format
msgid "Enable Easy Anti-Cheat and BattlEye Anti-Cheat runtimes (required if "
"game used this anti-cheats)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2876
#: /home/fidel/PortProton/data/scripts/functions_helper:2905
#, sh-format
msgid "Reduce pulseaudio latency to fix intermittent sound"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2877
#: /home/fidel/PortProton/data/scripts/functions_helper:2906
#, sh-format
msgid "Forced use of the us layout (useful for games in which the control "
"works correctly only on the us layout)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2878
#: /home/fidel/PortProton/data/scripts/functions_helper:2907
#, sh-format
msgid "Remember the screen resolution when starting the game and return it "
"when closing (useful for games that change the screen resolution "
"when closing)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2879
#: /home/fidel/PortProton/data/scripts/functions_helper:2908
#, sh-format
msgid "Use system mangohud, vkBasalt, obs-vkcapture and other applications "
"using vulkan layers"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2880
#: /home/fidel/PortProton/data/scripts/functions_helper:2909
#, sh-format
msgid "Enable the ability to write to OBS Studio using obs-vkcapture "
"(ATTENTION: the forced use of system mangohud, vkBasalt, obs-"
"vkcapture and other applications using vulkan layers will be enabled)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2881
#: /home/fidel/PortProton/data/scripts/functions_helper:2910
#, sh-format
msgid "Disable desktop compositing (effects). It often improves performance."
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2882
#, sh-format
msgid "<b>Super + F :</b> Toggle fullscreen\n"
"<b>Super + N :</b> Toggle nearest neighbour filtering\n"
"<b>Super + U :</b> Toggle FSR upscaling\n"
"<b>Super + Y :</b> Toggle NIS upscaling\n"
"<b>Super + I :</b> Increase FSR sharpness by 1\n"
"<b>Super + O :</b> Decrease FSR sharpness by 1\n"
"<b>Super + S :</b> Take screenshot (currently goes to /tmp/"
"gamescope_DATE.png)\n"
"<b>Super + G :</b> Toggle keyboard grab\n"
"<b>Super + C :</b> Update clipboard"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2917
#: /home/fidel/PortProton/data/scripts/functions_helper:2926
#, sh-format
msgid "Change the version of <b>WINDOWS</b> emulation"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2917
#: /home/fidel/PortProton/data/scripts/functions_helper:2926
#, sh-format
msgid "Changing the <b>WINDOWS</b> emulation version may be required to run "
"older games. <b>WINDOWS</b> versions below 10 do not support new "
"games with DirectX 12"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2918
#: /home/fidel/PortProton/data/scripts/functions_helper:2927
#, sh-format
msgid "AUTOINSTALL WITH <b>WINETRICKS</b>"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2918
#: /home/fidel/PortProton/data/scripts/functions_helper:2927
#, sh-format
msgid "Automatically install with <b>WINETRICKS</b> additional libraries "
"required to run the game/program. List of libraries separated by "
"spaces"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2919
#: /home/fidel/PortProton/data/scripts/functions_helper:2928
#, sh-format
msgid "Forced to use/disable libraries"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2919
#: /home/fidel/PortProton/data/scripts/functions_helper:2928
#, sh-format
msgid "Forced to use/disable the library only for the given application. "
"(There are examples in the drop-down list)\n"
"\n"
"A brief instruction:\n"
"\t* libraries are written <b>WITHOUT</b> the .dll file extension\n"
"\t* libraries are separated by semicolons - <b>;</b>\n"
"\t* library=n - use the <b>WINDOWS</b> (third-party) library\n"
"\t* library=b - use <b>WINE</b> (built-in) library\n"
"\t* library=n,b - use <b>WINDOWS</b> library and then <b>WINE</b>\n"
"\t* library=b,n - use <b>WINE</b> library and then <b>WINDOWS</b>\n"
"\t* library= - disable the use of this library"
" * libraries are written <b>WITHOUT</b> the .dll file extension\n"
" * libraries are separated by semicolons - <b>;</b>\n"
" * library=n - use the <b>WINDOWS</b> (third-party) library\n"
" * library=b - use <b>WINE</b> (built-in) library\n"
" * library=n,b - use <b>WINDOWS</b> library and then <b>WINE</b>\n"
" * library=b,n - use <b>WINE</b> library and then <b>WINDOWS</b>\n"
" * library= - disable the use of this library"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2930
#: /home/fidel/PortProton/data/scripts/functions_helper:2939
#, sh-format
msgid "ADD ARGUMENTS FOR .EXE FILE"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2930
#: /home/fidel/PortProton/data/scripts/functions_helper:2939
#, sh-format
msgid "Adding an argument after the <b>.exe</b> file, just like you would "
"add an argument in a shortcut on a <b>WINDOWS </b> system"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2932
#: /home/fidel/PortProton/data/scripts/functions_helper:2941
#, sh-format
msgid "Limit the use of processor cores"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2932
#: /home/fidel/PortProton/data/scripts/functions_helper:2941
#, sh-format
msgid "Limiting the number of CPU cores is useful for Unity games (It is "
"recommended to set the value equal to 8)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2933
#: /home/fidel/PortProton/data/scripts/functions_helper:2942
#, sh-format
msgid "Choose a graphics card to run the game (in user.conf)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2933
#: /home/fidel/PortProton/data/scripts/functions_helper:2942
#, sh-format
msgid "Select which video card will be used to run the game (used for all "
"running games and programs in PortProton)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2934
#: /home/fidel/PortProton/data/scripts/functions_helper:2943
#, sh-format
msgid "Add arguments for GAMESCOPE:"
msgid "Forcibly select the OpenGL version for the game"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2934
#: /home/fidel/PortProton/data/scripts/functions_helper:2943
#, sh-format
msgid "\n"
"<b>-W, -H:</b> set the resolution used by gamescope. Resizing the "
"gamescope window will update these settings. Ignored in embedded "
"mode. If -H is specified but -W isn't, a 16:9 aspect ratio is "
"assumed. Defaults to 1280×720.\n"
"<b>-w, -h:</b> set the resolution used by the game. If -h is "
"specified but -w isn't, a 16:9 aspect ratio is assumed. Defaults to "
"the values specified in -W and -H.\n"
"<b>-r:</b> set a frame-rate limit for the game. Specified in frames "
"per second. Defaults to unlimited.\n"
"<b>-o:</b> set a frame-rate limit for the game when unfocused. "
"Specified in frames per second. Defaults to unlimited.\n"
"<b>-F fsr:</b> use AMD FidelityFX™ Super Resolution 1.0 for "
"upscaling.\n"
"<b>-F nis:</b> use NVIDIA Image Scaling v1.0.3 for upscaling.\n"
"<b>-S integer:</b> use integer scaling.\n"
"<b>-S stretch:</b> use stretch scaling, the game will fill the "
"window. (e.g. 4:3 to 16:9).\n"
"<b>-b:</b> create a border-less window.\n"
"<b>-f:</b> create a full-screen window."
msgid "You can select the required OpenGL version, some games require a "
"forced Compatibility Profile (COMPAT). (Examples are in the drop-"
"down list)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2945
#: /home/fidel/PortProton/data/scripts/functions_helper:2944
#, sh-format
msgid "Forcibly select the OpenGL version for the game"
msgid "Forcibly select the VKD3D feature level"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2945
#: /home/fidel/PortProton/data/scripts/functions_helper:2944
#, sh-format
msgid "You can select the required OpenGL version, some games require a "
"forced Compatibility Profile (COMPAT). (Examples are in the drop-"
"down list)"
msgid "You can set a forced feature level VKD3D for games on DirectX12"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2946
#: /home/fidel/PortProton/data/scripts/functions_helper:2945
#, sh-format
msgid "Force certain locale for an app"
msgid "Force certain locale for an app:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2946
#: /home/fidel/PortProton/data/scripts/functions_helper:2945
#, sh-format
msgid "Fixes encoding issues in legacy software"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2951
#: /home/fidel/PortProton/data/scripts/functions_helper:2948
#, sh-format
msgid "EDIT DB"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2949
#, sh-format
msgid "Change settings in database file for"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2951
#: /home/fidel/PortProton/data/scripts/functions_helper:2949
#: /home/fidel/PortProton/data/scripts/functions_helper:3040
#, sh-format
msgid "<b>NOTE:</b> To display help for each item, simply hover your mouse "
"over the text"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2951
#, sh-format
msgid "MAIN"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2952
#, sh-format
msgid "ADVANCED"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2953
#: /home/fidel/PortProton/data/scripts/functions_helper:3332
#: /home/fidel/PortProton/data/scripts/functions_helper:3489
#: /home/fidel/PortProton/data/scripts/functions_helper:3053
#: /home/fidel/PortProton/data/scripts/functions_helper:3393
#: /home/fidel/PortProton/data/scripts/functions_helper:3551
#: /home/fidel/PortProton/data/scripts/functions_helper:3688
#, sh-format
msgid "CANCEL THE CHANGES"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2953
#: /home/fidel/PortProton/data/scripts/functions_helper:3332
#: /home/fidel/PortProton/data/scripts/functions_helper:3489
#: /home/fidel/PortProton/data/scripts/functions_helper:3053
#: /home/fidel/PortProton/data/scripts/functions_helper:3393
#: /home/fidel/PortProton/data/scripts/functions_helper:3551
#: /home/fidel/PortProton/data/scripts/functions_helper:3688
#, sh-format
msgid "Cancel the current changes and return to the previous menu"
msgstr ""
......@@ -1019,340 +973,405 @@ msgid "Open the <b>.ppdb</b> settings file in a system text editor to view "
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2956
#: /home/fidel/PortProton/data/scripts/functions_helper:3334
#: /home/fidel/PortProton/data/scripts/functions_helper:3492
#: /home/fidel/PortProton/data/scripts/functions_helper:3055
#: /home/fidel/PortProton/data/scripts/functions_helper:3395
#: /home/fidel/PortProton/data/scripts/functions_helper:3554
#: /home/fidel/PortProton/data/scripts/functions_helper:3690
#, sh-format
msgid "SAVE CHANGES"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:2956
#: /home/fidel/PortProton/data/scripts/functions_helper:3334
#: /home/fidel/PortProton/data/scripts/functions_helper:3492
#: /home/fidel/PortProton/data/scripts/functions_helper:3055
#: /home/fidel/PortProton/data/scripts/functions_helper:3395
#: /home/fidel/PortProton/data/scripts/functions_helper:3554
#: /home/fidel/PortProton/data/scripts/functions_helper:3690
#, sh-format
msgid "Save the current changes, and go to the previous menu"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3023
#, sh-format
msgid "<b>Super + F :</b> Toggle fullscreen\n"
"<b>Super + N :</b> Toggle nearest neighbour filtering\n"
"<b>Super + U :</b> Toggle FSR upscaling\n"
"<b>Super + Y :</b> Toggle NIS upscaling\n"
"<b>Super + I :</b> Increase FSR sharpness by 1\n"
"<b>Super + O :</b> Decrease FSR sharpness by 1\n"
"<b>Super + S :</b> Take screenshot (currently goes to /tmp/"
"gamescope_DATE.png)\n"
"<b>Super + G :</b> Toggle keyboard grab\n"
"<b>Super + C :</b> Update clipboard"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3040
#, sh-format
msgid "Change settings gamescope for"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3042
#, sh-format
msgid "Add arguments for GAMESCOPE:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3042
#, sh-format
msgid "\n"
"<b>-W, -H:</b> set the resolution used by gamescope. Resizing the "
"gamescope window will update these settings. Ignored in embedded "
"mode. If -H is specified but -W isn't, a 16:9 aspect ratio is "
"assumed. Defaults to 1280×720.\n"
"<b>-w, -h:</b> set the resolution used by the game. If -h is "
"specified but -w isn't, a 16:9 aspect ratio is assumed. Defaults to "
"the values specified in -W and -H.\n"
"<b>-r:</b> set a frame-rate limit for the game. Specified in frames "
"per second. Defaults to unlimited.\n"
"<b>-o:</b> set a frame-rate limit for the game when unfocused. "
"Specified in frames per second. Defaults to unlimited.\n"
"<b>-F fsr:</b> use AMD FidelityFX™ Super Resolution 1.0 for "
"upscaling.\n"
"<b>-F nis:</b> use NVIDIA Image Scaling v1.0.3 for upscaling.\n"
"<b>-S integer:</b> use integer scaling.\n"
"<b>-S stretch:</b> use stretch scaling, the game will fill the "
"window. (e.g. 4:3 to 16:9).\n"
"<b>-b:</b> create a border-less window.\n"
"<b>-f:</b> create a full-screen window."
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3054
#: /home/fidel/PortProton/data/scripts/functions_helper:3394
#: /home/fidel/PortProton/data/scripts/functions_helper:3552
#: /home/fidel/PortProton/data/scripts/functions_helper:3689
#, sh-format
msgid "DISABLE"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3054
#, sh-format
msgid "Disable GameScope and go to the previous menu"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3100
#, sh-format
msgid "Check new version WINE..."
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3085
#: /home/fidel/PortProton/data/scripts/functions_helper:3145
#, sh-format
msgid "Error: check wine."
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3117
#: /home/fidel/PortProton/data/scripts/functions_helper:3119
#: /home/fidel/PortProton/data/scripts/functions_helper:3121
#: /home/fidel/PortProton/data/scripts/functions_helper:3123
#: /home/fidel/PortProton/data/scripts/functions_helper:3177
#: /home/fidel/PortProton/data/scripts/functions_helper:3179
#: /home/fidel/PortProton/data/scripts/functions_helper:3181
#: /home/fidel/PortProton/data/scripts/functions_helper:3183
#, sh-format
msgid "Select WINE for download:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3125
#: /home/fidel/PortProton/data/scripts/functions_helper:3185
#, sh-format
msgid "Select installed WINE for delete:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3127
#: /home/fidel/PortProton/data/scripts/functions_helper:3187
#, sh-format
msgid "WINE MANAGER"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3242
#: /home/fidel/PortProton/data/scripts/functions_helper:3303
#, sh-format
msgid "Simulation of an old 3dfx graphics accelerator (adds horizontal "
"stripes)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3243
#: /home/fidel/PortProton/data/scripts/functions_helper:3304
#, sh-format
msgid "Sharpness increase, can be used with CAS"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3244
#: /home/fidel/PortProton/data/scripts/functions_helper:3305
#, sh-format
msgid "Adds glow from bright light sources in the game"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3245
#: /home/fidel/PortProton/data/scripts/functions_helper:3306
#, sh-format
msgid "Cropping the image from the top and bottom (like in a movie =)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3246
#: /home/fidel/PortProton/data/scripts/functions_helper:3307
#, sh-format
msgid "Strong sharpening of texture edges"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3247
#: /home/fidel/PortProton/data/scripts/functions_helper:3308
#, sh-format
msgid "Adds chromatic aberration to an image"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3248
#: /home/fidel/PortProton/data/scripts/functions_helper:3309
#, sh-format
msgid "Sharpening textures with slight modifications of image contrast "
"(similar in effect to CAS)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3249
#: /home/fidel/PortProton/data/scripts/functions_helper:3310
#, sh-format
msgid "Adding cool colors"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3250
#: /home/fidel/PortProton/data/scripts/functions_helper:3311
#, sh-format
msgid "Increasing color saturation"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3251
#: /home/fidel/PortProton/data/scripts/functions_helper:3312
#, sh-format
msgid "Add fake HDR"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3252
#: /home/fidel/PortProton/data/scripts/functions_helper:3313
#, sh-format
msgid "Adding the film grain effect"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3253
#: /home/fidel/PortProton/data/scripts/functions_helper:3314
#, sh-format
msgid "Increases the contrast of the image without affecting the bright and "
"dark areas, so that the detail in shadows and sky is not lost"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3254
#: /home/fidel/PortProton/data/scripts/functions_helper:3315
#, sh-format
msgid "Reducing noise by blurring the image"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3255
#: /home/fidel/PortProton/data/scripts/functions_helper:3316
#, sh-format
msgid "Reducing the bit depth of color"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3256
#: /home/fidel/PortProton/data/scripts/functions_helper:3317
#, sh-format
msgid "Strong blurring of objects in motion"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3257
#: /home/fidel/PortProton/data/scripts/functions_helper:3318
#, sh-format
msgid "Sharpening (recommended for cartoon games)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3258
#: /home/fidel/PortProton/data/scripts/functions_helper:3319
#, sh-format
msgid "Adding cold colors"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3259
#: /home/fidel/PortProton/data/scripts/functions_helper:3320
#, sh-format
msgid "Alternative antialiasing option (less effect, but with less "
"consumption of GPU resources, relative to the standard SMAA)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3260
#: /home/fidel/PortProton/data/scripts/functions_helper:3321
#, sh-format
msgid "Slight blur effect on bright objects (such as flames)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3261
#: /home/fidel/PortProton/data/scripts/functions_helper:3322
#, sh-format
msgid "Glitch effect"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3262
#: /home/fidel/PortProton/data/scripts/functions_helper:3323
#, sh-format
msgid "Another method of sharpening using highpass frequencies"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3263
#: /home/fidel/PortProton/data/scripts/functions_helper:3324
#, sh-format
msgid "Smoothing of nearby pixels with the drawing of missing parts (in "
"normal games the picture is blurred)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3264
#: /home/fidel/PortProton/data/scripts/functions_helper:3325
#, sh-format
msgid "Advanced HSL shift (for each shade)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3265
#: /home/fidel/PortProton/data/scripts/functions_helper:3326
#, sh-format
msgid "Image overlay on the game"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3266
#: /home/fidel/PortProton/data/scripts/functions_helper:3327
#, sh-format
msgid "Increases contrast, but some detail in shadows or highlights may be "
"lost"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3267
#: /home/fidel/PortProton/data/scripts/functions_helper:3328
#, sh-format
msgid "Same as Levels, but with less loss of detail"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3268
#: /home/fidel/PortProton/data/scripts/functions_helper:3329
#, sh-format
msgid "Gamma correction by individual color channels: red, green and blue"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3269
#: /home/fidel/PortProton/data/scripts/functions_helper:3330
#, sh-format
msgid "Increases depth of field (greatly affects FPS)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3270
#: /home/fidel/PortProton/data/scripts/functions_helper:3331
#, sh-format
msgid "Enhances image sharpness for improved detail"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3271
#: /home/fidel/PortProton/data/scripts/functions_helper:3332
#, sh-format
msgid "Image color correction"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3272
#: /home/fidel/PortProton/data/scripts/functions_helper:3333
#, sh-format
msgid "Same as Bloom, but more natural"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3273
#: /home/fidel/PortProton/data/scripts/functions_helper:3334
#, sh-format
msgid "Converts the image into monochrome"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3274
#: /home/fidel/PortProton/data/scripts/functions_helper:3335
#, sh-format
msgid "Extended version of the LUT (Hollywood loot is pre-installed)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3275
#: /home/fidel/PortProton/data/scripts/functions_helper:3336
#, sh-format
msgid "SSAO algorithm (Greatly affects FPS)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3276
#: /home/fidel/PortProton/data/scripts/functions_helper:3337
#, sh-format
msgid "Night vision effect"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3277
#: /home/fidel/PortProton/data/scripts/functions_helper:3338
#, sh-format
msgid "Makes the picture look like old photos"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3278
#: /home/fidel/PortProton/data/scripts/functions_helper:3339
#, sh-format
msgid "Fisheye effect (suitable for VR)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3279
#: /home/fidel/PortProton/data/scripts/functions_helper:3340
#, sh-format
msgid "Add God rays (also called 3D light rays) effect"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3280
#: /home/fidel/PortProton/data/scripts/functions_helper:3341
#, sh-format
msgid "The prismatic lens effect"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3281
#: /home/fidel/PortProton/data/scripts/functions_helper:3342
#, sh-format
msgid "Creates the illusion of depth in textures"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3282
#: /home/fidel/PortProton/data/scripts/functions_helper:3343
#, sh-format
msgid "Adds a sepia effect like in old photos"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3283
#: /home/fidel/PortProton/data/scripts/functions_helper:3344
#, sh-format
msgid "Splits the image into raw and processed output for comparison"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3284
#: /home/fidel/PortProton/data/scripts/functions_helper:3345
#, sh-format
msgid "Reducing object detail without blurring contrast contours"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3285
#: /home/fidel/PortProton/data/scripts/functions_helper:3346
#, sh-format
msgid "Makes the picture look like films from the 1930s"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3286
#: /home/fidel/PortProton/data/scripts/functions_helper:3347
#, sh-format
msgid "The updated version of Technicolor, gives a different picture by "
"changing colors more aggressively"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3287
#: /home/fidel/PortProton/data/scripts/functions_helper:3348
#, sh-format
msgid "Blur on the edges of the screen to create a Tilt Shift effect"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3288
#: /home/fidel/PortProton/data/scripts/functions_helper:3349
#, sh-format
msgid "Changes the saturation of the picture"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3289
#: /home/fidel/PortProton/data/scripts/functions_helper:3350
#, sh-format
msgid "Reduces the amount of noise"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3290
#: /home/fidel/PortProton/data/scripts/functions_helper:3351
#, sh-format
msgid "Automatically switches effects depending on the visibility of the UI"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3291
#: /home/fidel/PortProton/data/scripts/functions_helper:3352
#, sh-format
msgid "Saturates faded colors without touching the bright ones"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3292
#: /home/fidel/PortProton/data/scripts/functions_helper:3353
#, sh-format
msgid "Adds a vignette to the image"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3293
#: /home/fidel/PortProton/data/scripts/functions_helper:3354
#, sh-format
msgid "An effect for adjusting the aspect ratio (for games that do not "
"support widescreen monitors)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3294
#: /home/fidel/PortProton/data/scripts/functions_helper:3355
#, sh-format
msgid "Part of the overall ReShade shader . It uses a mask with gradients "
"from black to white to determine where the effects will be applied"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3295
#: /home/fidel/PortProton/data/scripts/functions_helper:3356
#, sh-format
msgid "Allows you to add new elements to the 3d space inside the game and "
"apply custom textures"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3296
#: /home/fidel/PortProton/data/scripts/functions_helper:3357
#, sh-format
msgid "Adds a Bloom effect"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3322
#: /home/fidel/PortProton/data/scripts/functions_helper:3383
#, sh-format
msgid "VkBasalt settings for adding effects to games running under Vulkan. "
"(The <b>HOME</b> key disables vkbasalt)\\n<b>NOTE:</b> To display "
"help for each item, simply hover over the text\\n"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3327
#: /home/fidel/PortProton/data/scripts/functions_helper:3388
#, sh-format
msgid "AMD FidelityFX - CAS is designed to dramatically improve texture "
"sharpness without additional modification settings for games, with "
......@@ -1360,469 +1379,519 @@ msgid "AMD FidelityFX - CAS is designed to dramatically improve texture "
"set value = 100)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3333
#, sh-format
msgid "DISABLE VKBASALT"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3333
#: /home/fidel/PortProton/data/scripts/functions_helper:3394
#, sh-format
msgid "Disable vkBasalt and go to the previous menu"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3387
#: /home/fidel/PortProton/data/scripts/functions_helper:3449
#, sh-format
msgid "Show if the application is 32- or 64-bit"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3388
#: /home/fidel/PortProton/data/scripts/functions_helper:3450
#, sh-format
msgid "Display current battery percent and energy consumption"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3389
#: /home/fidel/PortProton/data/scripts/functions_helper:3451
#, sh-format
msgid "Display battery icon instead of percent"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3390
#: /home/fidel/PortProton/data/scripts/functions_helper:3452
#, sh-format
msgid "Display remaining time for battery option"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3391
#: /home/fidel/PortProton/data/scripts/functions_helper:3453
#, sh-format
msgid "Display wattage for the battery option"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3392
#: /home/fidel/PortProton/data/scripts/functions_helper:3454
#, sh-format
msgid "Change the display of core_load from numbers to vertical bars"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3393
#: /home/fidel/PortProton/data/scripts/functions_helper:3455
#, sh-format
msgid "Display load & frequency per core"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3394
#: /home/fidel/PortProton/data/scripts/functions_helper:3456
#, sh-format
msgid "Show the CPUs current MHz"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3395
#: /home/fidel/PortProton/data/scripts/functions_helper:3457
#, sh-format
msgid "Display CPU draw in watts"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3396
#: /home/fidel/PortProton/data/scripts/functions_helper:3458
#, sh-format
msgid "Display current CPU temperature"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3397
#: /home/fidel/PortProton/data/scripts/functions_helper:3459
#, sh-format
msgid "Display wirless device battery icon."
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3398
#: /home/fidel/PortProton/data/scripts/functions_helper:3460
#, sh-format
msgid "Display a short version of the used engine (e.g. OGL instead of "
"OpenGL)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3399
#: /home/fidel/PortProton/data/scripts/functions_helper:3461
#, sh-format
msgid "Display OpenGL or vulkan and vulkan-based render engines version"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3400
#: /home/fidel/PortProton/data/scripts/functions_helper:3462
#, sh-format
msgid "Display current exec name"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3401
#: /home/fidel/PortProton/data/scripts/functions_helper:3463
#, sh-format
msgid "Enables frame capture analysis"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3402
#: /home/fidel/PortProton/data/scripts/functions_helper:3464
#, sh-format
msgid "Takes a list of decimal values or the value avg, e.g avg,0.001"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3403
#: /home/fidel/PortProton/data/scripts/functions_helper:3465
#, sh-format
msgid "Display frame count"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3404
#: /home/fidel/PortProton/data/scripts/functions_helper:3466
#, sh-format
msgid "Enable most of the toggleable parameters (currently excludes "
"histogram)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3405
#: /home/fidel/PortProton/data/scripts/functions_helper:3467
#, sh-format
msgid "Show if GameMode is on"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3406
#: /home/fidel/PortProton/data/scripts/functions_helper:3468
#, sh-format
msgid "Display GPU core frequency"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3407
#: /home/fidel/PortProton/data/scripts/functions_helper:3469
#, sh-format
msgid "GPU fan in rpm on AMD, FAN in percent on NVIDIA"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3408
#: /home/fidel/PortProton/data/scripts/functions_helper:3410
#: /home/fidel/PortProton/data/scripts/functions_helper:3413
#: /home/fidel/PortProton/data/scripts/functions_helper:3470
#: /home/fidel/PortProton/data/scripts/functions_helper:3472
#: /home/fidel/PortProton/data/scripts/functions_helper:3475
#, sh-format
msgid "Display current GPU temperature"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3409
#: /home/fidel/PortProton/data/scripts/functions_helper:3471
#, sh-format
msgid "Display GPU memory frequency"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3411
#: /home/fidel/PortProton/data/scripts/functions_helper:3473
#, sh-format
msgid "Display GPU name from pci.ids"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3412
#: /home/fidel/PortProton/data/scripts/functions_helper:3474
#, sh-format
msgid "Display GPU draw in watts"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3414
#: /home/fidel/PortProton/data/scripts/functions_helper:3476
#, sh-format
msgid "Display GPU voltage (only works on AMD GPUs)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3415
#: /home/fidel/PortProton/data/scripts/functions_helper:3477
#, sh-format
msgid "Change FPS graph to histogram"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3416
#: /home/fidel/PortProton/data/scripts/functions_helper:3478
#, sh-format
msgid "Display Mangohud in a horizontal position"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3417
#: /home/fidel/PortProton/data/scripts/functions_helper:3479
#, sh-format
msgid "Stretches the background to the screens width in horizontal mode"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3418
#: /home/fidel/PortProton/data/scripts/functions_helper:3480
#, sh-format
msgid "Display compact version of MangoHud"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3419
#: /home/fidel/PortProton/data/scripts/functions_helper:3481
#, sh-format
msgid "Remove margins around MangoHud"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3420
#: /home/fidel/PortProton/data/scripts/functions_helper:3482
#, sh-format
msgid "Show non-cached IO read, in MiB/s"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3421
#: /home/fidel/PortProton/data/scripts/functions_helper:3483
#, sh-format
msgid "Show non-cached IO write, in MiB/s"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3422
#: /home/fidel/PortProton/data/scripts/functions_helper:3484
#, sh-format
msgid "Hide the HUD by default"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3423
#: /home/fidel/PortProton/data/scripts/functions_helper:3485
#, sh-format
msgid "Use primary font size for smaller text like units"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3424
#: /home/fidel/PortProton/data/scripts/functions_helper:3486
#, sh-format
msgid "Displays process memory usage: resident procmem (resident) also "
"toggles others off if disabled"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3425
#: /home/fidel/PortProton/data/scripts/functions_helper:3487
#, sh-format
msgid "Displays process memory usage: shared"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3426
#: /home/fidel/PortProton/data/scripts/functions_helper:3488
#, sh-format
msgid "Displays process memory usage: virtual"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3427
#: /home/fidel/PortProton/data/scripts/functions_helper:3489
#, sh-format
msgid "Display system RAM usage"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3428
#: /home/fidel/PortProton/data/scripts/functions_helper:3490
#, sh-format
msgid "Display the current resolution"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3429
#: /home/fidel/PortProton/data/scripts/functions_helper:3491
#, sh-format
msgid "Display the current FPS limit"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3430
#: /home/fidel/PortProton/data/scripts/functions_helper:3492
#, sh-format
msgid "Display swap space usage next to system RAM usage"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3431
#: /home/fidel/PortProton/data/scripts/functions_helper:3493
#, sh-format
msgid "Show temperature in Fahrenheit"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3432
#: /home/fidel/PortProton/data/scripts/functions_helper:3494
#, sh-format
msgid "Show if GPU is throttling based on Power, current, temp or \"other"
"\" (Only shows if throttling is currently happening). Currently "
"disabled by default for Nvidia as it causes lag on 3000 series"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3433
#: /home/fidel/PortProton/data/scripts/functions_helper:3495
#, sh-format
msgid "Same as throttling_status but displays throttling in the frametime "
"graph and only power and temp throttling"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3434
#: /home/fidel/PortProton/data/scripts/functions_helper:3496
#, sh-format
msgid "Display time"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3435
#: /home/fidel/PortProton/data/scripts/functions_helper:3497
#, sh-format
msgid "Show current MangoHud version"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3436
#: /home/fidel/PortProton/data/scripts/functions_helper:3498
#, sh-format
msgid "Show if vkBasalt is on"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3437
#: /home/fidel/PortProton/data/scripts/functions_helper:3499
#, sh-format
msgid "Display system VRAM usage"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3438
#: /home/fidel/PortProton/data/scripts/functions_helper:3500
#, sh-format
msgid "Display used Vulkan driver (radv/amdgpu-pro/amdvlk)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3439
#: /home/fidel/PortProton/data/scripts/functions_helper:3501
#, sh-format
msgid "Display frametime next to FPS text"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3440
#: /home/fidel/PortProton/data/scripts/functions_helper:3502
#, sh-format
msgid "Show current Wine or Proton version in use"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3477
#: /home/fidel/PortProton/data/scripts/functions_helper:3539
#, sh-format
msgid "MangoHud settings (Keys <b>R_SHIFT + F12</b> disable "
"MangoHud)\\n<b>note:</b> To display help for each item, just hover "
"the mouse cursor over the text.\\n"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3483
#: /home/fidel/PortProton/data/scripts/functions_helper:3545
#, sh-format
msgid "Enabling fps limitation with MANGOHUD tools built into PortProton "
"(Keys <b>L_SHIFT + F1</b> Toggles fps limitation)\\n"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3490
#, sh-format
msgid "DISABLE MANGOHUD"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3490
#: /home/fidel/PortProton/data/scripts/functions_helper:3552
#, sh-format
msgid "Disable MangoHud and go to the previous menu"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3491
#: /home/fidel/PortProton/data/scripts/functions_helper:3553
#, sh-format
msgid "PREVIEW CHANGES"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3491
#: /home/fidel/PortProton/data/scripts/functions_helper:3553
#, sh-format
msgid "Start vkcube for preview changes"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3591
#: /home/fidel/PortProton/data/scripts/functions_helper:3603
#: /home/fidel/PortProton/data/scripts/functions_helper:3650
#, sh-format
msgid "Do not use d3d8 and d3d9 dgVoodoo2 libraries. For some old games, "
"using the example of Space Rangers, a bug with a black screen is "
"corrected."
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3651
#, sh-format
msgid "Forced use of 16bit screen mode. Solves the problem of launching old "
"games, such as Moto Racer."
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3652
#, sh-format
msgid "DirectXD 11 is used by default (and recommended). Use DirectX12 for "
"dgVoodoo2. Doesnt always work better. (Working only on stable dxvk "
"and vkd3d)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3653
#, sh-format
msgid "Enable fast memory access. (Enable if games have poor performance, "
"using Unreal 2 as an example)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3654
#, sh-format
msgid "Increase the amount of vram for dgVoodoo2 (Increases from 256 to "
"1024)"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3655
#, sh-format
msgid "Render image based on monitor resolution. Can use if the game has a "
"small interface size. Widescreen effect for 16:9"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3678
#, sh-format
msgid "dgVoodoo2 settings\\n<b>NOTE:</b> To display help for each item, "
"simply hover over the text\\n"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3683
#, sh-format
msgid "Forced anisotropic filtering in Direct3D games"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3684
#, sh-format
msgid "Forced antialiasing in Direct3D and Glide games"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3689
#, sh-format
msgid "Disable dgVoodoo2 and go to the previous menu"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3735
#: /home/fidel/PortProton/data/scripts/functions_helper:3747
#, sh-format
msgid "The shortcut will be created in the PortProton directory."
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3593
#: /home/fidel/PortProton/data/scripts/functions_helper:3605
#: /home/fidel/PortProton/data/scripts/functions_helper:3737
#: /home/fidel/PortProton/data/scripts/functions_helper:3749
#, sh-format
msgid "Add shortcut to MENU -> GAMES"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3594
#: /home/fidel/PortProton/data/scripts/functions_helper:3606
#: /home/fidel/PortProton/data/scripts/functions_helper:3738
#: /home/fidel/PortProton/data/scripts/functions_helper:3750
#, sh-format
msgid "Add shortcut to Desktop"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3595
#: /home/fidel/PortProton/data/scripts/functions_helper:3607
#: /home/fidel/PortProton/data/scripts/functions_helper:3739
#: /home/fidel/PortProton/data/scripts/functions_helper:3751
#, sh-format
msgid "Add shortcut to STEAM library"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3604
#: /home/fidel/PortProton/data/scripts/functions_helper:3748
#, sh-format
msgid "Name"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3675
#: /home/fidel/PortProton/data/scripts/functions_helper:3820
#, sh-format
msgid "For adding shortcut to STEAM, needed restart.\\n\\nRestart STEAM now?"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3676
#: /home/fidel/PortProton/data/scripts/functions_helper:3821
#, sh-format
msgid "Restarting STEAM... Please wait."
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3714
#: /home/fidel/PortProton/data/scripts/functions_helper:3859
#, sh-format
msgid "Could not find the file:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3714
#: /home/fidel/PortProton/data/scripts/functions_helper:3859
#, sh-format
msgid "ATTENTION:\\nIf you forgot to mount the disk with the running "
"application, click CANCEL!"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3730
#: /home/fidel/PortProton/data/scripts/functions_helper:3876
#, sh-format
msgid "Starting prefix manager:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3773
#: /home/fidel/PortProton/data/scripts/functions_helper:3919
#, sh-format
msgid "Select components to install in prefix:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3773
#: /home/fidel/PortProton/data/scripts/functions_helper:3777
#: /home/fidel/PortProton/data/scripts/functions_helper:3919
#: /home/fidel/PortProton/data/scripts/functions_helper:3923
#, sh-format
msgid "using wine:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3777
#: /home/fidel/PortProton/data/scripts/functions_helper:3923
#, sh-format
msgid "Select fonts to install in prefix:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3781
#: /home/fidel/PortProton/data/scripts/functions_helper:3927
#, sh-format
msgid "Change config for prefix:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3786
#: /home/fidel/PortProton/data/scripts/functions_helper:3932
#, sh-format
msgid "PREFIX MANAGER"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3790
#: /home/fidel/PortProton/data/scripts/functions_helper:3936
#, sh-format
msgid "DLLS"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3791
#: /home/fidel/PortProton/data/scripts/functions_helper:3937
#, sh-format
msgid "FONTS"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3792
#, sh-format
msgid "SETTINGS"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3838
#: /home/fidel/PortProton/data/scripts/functions_helper:3984
#, sh-format
msgid "Attention working version of vulkan not detected!\\nIt is "
"recommended to run games in OpenGL (low performance possible)!"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3840
#: /home/fidel/PortProton/data/scripts/functions_helper:3986
#, sh-format
msgid "PortProton was launched in creation mode PortProton.log and it is "
"successfully stored in the root directory of the port"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3841
#: /home/fidel/PortProton/data/scripts/functions_helper:3987
#, sh-format
msgid "To diagnose the problem, copy ALL of the log to discord server: "
"https://discord.gg/FTaheP99wE"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:3994
#: /home/fidel/PortProton/data/scripts/functions_helper:4140
#, sh-format
msgid "Please wait! After finishing the PortProton, click STOP."
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:4014
#: /home/fidel/PortProton/data/scripts/functions_helper:4160
#, sh-format
msgid "BACKUP PREFIX TO..."
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:4042
#: /home/fidel/PortProton/data/scripts/functions_helper:4188
#, sh-format
msgid "Backup has been successfully created for prefix:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:4044
#: /home/fidel/PortProton/data/scripts/functions_helper:4190
#, sh-format
msgid "Attention! Do not pass the resev copy to third parties, there is a "
"risk of losing accounts!"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:4048
#: /home/fidel/PortProton/data/scripts/functions_helper:4194
#, sh-format
msgid "An error occurred while backing up the prefix:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:4127
#: /home/fidel/PortProton/data/scripts/functions_helper:4281
#, sh-format
msgid "Do you want to clear prefix in PortProton?"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:4138
#: /home/fidel/PortProton/data/scripts/functions_helper:4292
#, sh-format
msgid "Do you really want to remove PortProton?"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:4170
#: /home/fidel/PortProton/data/scripts/functions_helper:4173
#: /home/fidel/PortProton/data/scripts/functions_helper:4324
#: /home/fidel/PortProton/data/scripts/functions_helper:4327
#, sh-format
msgid "Mirror changed to:"
msgstr ""
#: /home/fidel/PortProton/data/scripts/functions_helper:4339
#: /home/fidel/PortProton/data/scripts/functions_helper:4342
#, sh-format
msgid "Gui start changed to:"
msgstr ""
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -5,7 +5,7 @@ if [[ "$LANGUAGE" == "ru" ]]
then
KEY_CREDITS=$RANDOM
"${pw_yad_v13_0}" --plug="${KEY_CREDITS}" --tabnum=1 --show-uri \
"${pw_yad}" --plug="${KEY_CREDITS}" --tabnum=1 --show-uri \
--image-path="$PW_GUI_ICON_PATH" --image="port_proton" --window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
--text-align=center --scroll --text="PortProton v. ${install_ver}
scripts v. ${scripts_install_ver}
......@@ -18,7 +18,7 @@ https://linux-gaming.ru
Подробнее см. в Лицензия." 2>/dev/null &
"${pw_yad_v13_0}" --plug="${KEY_CREDITS}" --tabnum=2 \
"${pw_yad}" --plug="${KEY_CREDITS}" --tabnum=2 \
--text-align=center --scroll --text="Автор: Casro-Fidel (Михаил Тергоев)
Помощники разработчика и тестировщики:
......@@ -46,7 +46,7 @@ Htylol
Eljeyna
" 2>/dev/null &
"${pw_yad_v13_0}" --plug="${KEY_CREDITS}" --tabnum=3 --text-info --scroll <<< " Лицензия Массачусетского технологического института (MIT License)
"${pw_yad}" --plug="${KEY_CREDITS}" --tabnum=3 --text-info --scroll <<< " Лицензия Массачусетского технологического института (MIT License)
Авторские права © $(date +'%Y') Castro-Fidel (linux-gaming.ru)
......@@ -69,7 +69,7 @@ Eljeyna
ВНЕ ИЛИ В СВЯЗИ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ ИЛИ ИСПОЛЬЗОВАНИЕМ ИЛИ ДРУГИМИ СДЕЛКАМИ В
ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ." 2>/dev/null &
"${pw_yad_v13_0}" --plug="${KEY_CREDITS}" --tabnum=4 \
"${pw_yad}" --plug="${KEY_CREDITS}" --tabnum=4 \
--text-info --fontname="Serif bold italic 12" --show-uri --scroll \
<<< ' Проект поддержали:
https://boosty.to/portwine-linux.ru
......@@ -339,7 +339,7 @@ Eljeyna
Список будет дополняться...' 2>/dev/null &
"${pw_yad_v13_0}" --plug="${KEY_CREDITS}" --tabnum=5 --text="Хотите присоединится и помочь в развитии проекта:" \
"${pw_yad}" --plug="${KEY_CREDITS}" --tabnum=5 --text="Хотите присоединится и помочь в развитии проекта:" \
--title=JOIN --window-icon=group --image=system-config-users --uri-color=red --show-uri \
--text-info --scroll <<< \
"Website: https://linux-gaming.ru/
......@@ -351,7 +351,7 @@ boosty: https://boosty.to/portwine-linux.ru
Yandex кошелек: 410012267513818
-------------------------------------------" 2>/dev/null &
"${pw_yad_v13_0}" --plug="${KEY_CREDITS}" --tabnum=6 --show-uri --title="THIRD PARTY LIBRARIES" \
"${pw_yad}" --plug="${KEY_CREDITS}" --tabnum=6 --show-uri --title="THIRD PARTY LIBRARIES" \
--fontname="Serif bold italic 10" --text-info <<< " Сторонние библиотеки, которые используются в PortProton
PortProton собран на основе бесплатных библиотек программного обеспечения:
......@@ -362,7 +362,7 @@ Kron4ek/Wine: https://github.com/Kron4ek/Wine-Builds
YAD: https://github.com/v1cont/yad
DGVOODOO2: https://dege.fw.hu/" 2>/dev/null &
"${pw_yad_v13_0}" --title "О НАС" --key="${KEY_CREDITS}" --window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
"${pw_yad}" --title "О НАС" --key="${KEY_CREDITS}" --window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
--notebook --no-buttons --tab-pos=bottom --expand \
--tab="О PORTPROTON" --tab="АВТОРЫ" --tab="ЛИЦЕНЗИЯ" --tab="СПОНСОРЫ" --tab="ПРИСОЕДИНИТЬСЯ" \
--tab="БИБЛИОТЕКИ"
......@@ -375,7 +375,7 @@ else
KEY_CREDITS=$RANDOM
"${pw_yad_v13_0}" --plug="${KEY_CREDITS}" --tabnum=1 --show-uri \
"${pw_yad}" --plug="${KEY_CREDITS}" --tabnum=1 --show-uri \
--image-path="$PW_GUI_ICON_PATH" --image="port_proton" \
--text-align=center --scroll --text="PortProton v. ${install_ver}
scripts v. ${scripts_install_ver}
......@@ -389,7 +389,7 @@ This program comes with absolutely no warranty.
See the License for details." 2>/dev/null &
"${pw_yad_v13_0}" --plug="${KEY_CREDITS}" --tabnum=2 \
"${pw_yad}" --plug="${KEY_CREDITS}" --tabnum=2 \
--text-align=center --scroll --text="Author: Casro-Fidel (Mikhail Tergoev)
Developer assistants and testers:
......@@ -417,7 +417,7 @@ Htylol
Eljeyna
" 2>/dev/null &
"${pw_yad_v13_0}" --plug="${KEY_CREDITS}" --tabnum=3 --text-info --scroll <<< "MIT License
"${pw_yad}" --plug="${KEY_CREDITS}" --tabnum=3 --text-info --scroll <<< "MIT License
Copyright (©) 2024 Castro-Fidel (linux-gaming.ru)
......@@ -439,7 +439,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE." 2>/dev/null &
"${pw_yad_v13_0}" --plug="${KEY_CREDITS}" --tabnum=4 \
"${pw_yad}" --plug="${KEY_CREDITS}" --tabnum=4 \
--text-info --fontname="Serif bold italic 12" --show-uri --scroll \
<<< ' The project was supported:
https://boosty.to/portwine-linux.ru:
......@@ -710,7 +710,7 @@ SOFTWARE." 2>/dev/null &
The list will be updated...' 2>/dev/null &
"${pw_yad_v13_0}" --plug="${KEY_CREDITS}" --tabnum=5 --text="Do you want to join and help in the development of the project:" \
"${pw_yad}" --plug="${KEY_CREDITS}" --tabnum=5 --text="Do you want to join and help in the development of the project:" \
--title=JOIN --window-icon=group --image=system-config-users --uri-color=red --show-uri \
--text-info --scroll <<< \
"Website: http://linux-gaming.ru
......@@ -722,7 +722,7 @@ boosty: https://boosty.to/portwine-linux.ru
Yandex wallet: 410012267513818
-------------------------------------------" 2>/dev/null &
"${pw_yad_v13_0}" --plug="${KEY_CREDITS}" --tabnum=6 --show-uri --title="THIRD PARTY LIBRARIES" \
"${pw_yad}" --plug="${KEY_CREDITS}" --tabnum=6 --show-uri --title="THIRD PARTY LIBRARIES" \
--fontname="Serif bold italic 10" --text-info <<< " Third-party libraries that are used in PortProton
PortProton is built on the basis of the following free software libraries:
......@@ -734,7 +734,7 @@ YAD: https://github.com/v1cont/yad
DGVOODOO2: https://dege.fw.hu/" 2>/dev/null &
"${pw_yad_v13_0}" --title "ABOUT US" --key="${KEY_CREDITS}" ---window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
"${pw_yad}" --title "ABOUT US" --key="${KEY_CREDITS}" ---window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
--notebook --no-buttons --tab-pos=bottom --expand \
--tab="ABOUT PORTPROTON" --tab="AUTORS" --tab="LICENSE" --tab="SPONSORS" --tab="JOIN" \
--tab="THIRD PARTY LIBRARIES"
......
......@@ -53,9 +53,10 @@ change_locale () {
&& [[ -f "${PORT_WINE_TMP_PATH}/PortProton_loc" ]] ; then
echo ""
else
[[ ! -f "${pw_yad_v13_0}" ]] && pw_yad_v13_0="yad"
[[ ! -f "${pw_yad}" ]] && pw_yad="yad"
SET_LANG=(
"${pw_yad_v13_0}" --list
"${pw_yad}" --list
--title="Select language for PortProton"
--column="Language" --column=""
--width=400 --height=200
......@@ -68,6 +69,7 @@ change_locale () {
out=$("${SET_LANG[@]}")
[ -n "$out" ] || return
SET_LANG=$(echo "$out" | cut -d'|' -f2)
echo "${SET_LANG}" > "${PORT_WINE_TMP_PATH}/PortProton_loc"
if [[ ! -z "${SET_LANG}" ]]
then LANGUAGE=${SET_LANG}
......@@ -120,8 +122,8 @@ try_copy_file () {
export -f try_copy_file
try_copy_dir () {
if [ ! -d "$1" ] ; then print_info "directory $1 not found for copy"
elif [ -z "$2" ] ; then print_error "no way to copy directory $1"
if [ ! -d "$1" ] ; then print_info "directory $1 not found for copy"
elif [ -z "$2" ] ; then print_error "no way to copy directory $1"
else
cp -fr "$1" "$2"
[ "$?" != 0 ] && print_error "failed to copy directory $1 to $2" || return 0
......@@ -155,7 +157,7 @@ create_new_dir () {
try_force_link_file () {
if [ ! -f "$1" ] ; then :
elif [ -z "$2" ] ; then print_error "no way to link file $1"
elif [ -z "$2" ] ; then print_error "no way to link file $1"
else
ln -s -f -r "$1" "$2"
[ "$?" != 0 ] && print_error "failed to link file $1 to $2" || return 0
......@@ -179,8 +181,8 @@ check_symlink () {
export -f check_symlink
try_force_link_dir () {
if [ ! -d "$1" ] ; then print_info "directory $1 not found for link"
elif [ -z "$2" ] ; then print_error "no way to link directory $1"
if [ ! -d "$1" ] ; then print_info "directory $1 not found for link"
elif [ -z "$2" ] ; then print_error "no way to link directory $1"
else
ln -s -f -r "$1" "$2"
[ "$?" != 0 ] && print_error "failed to link directory $1 to $2" || return 0
......@@ -217,7 +219,7 @@ try_download () {
SECOND_URL="$url_cdn/$filename"
fi
[[ ! -f "${pw_yad_v13_0}" ]] && local pw_yad_v13_0="yad"
[[ ! -f "${pw_yad}" ]] && local pw_yad="yad"
# If gamescope session is active, use PW_TERM for downloading
if check_gamescope_session ; then
......@@ -236,9 +238,9 @@ try_download () {
curl -f -# -A 'Mozilla/5.0 (compatible; Konqueror/2.1.1; X11)' -H 'Cache-Control: no-cache, no-store' \
-H 'Pragma: no-cache' -L "$FIRST_URL" -o "$dest" 2>&1 | \
tr '\r' '\n' | sed -ur 's|[# ]+||g;s|.*=.*||g;s|.*|#Downloading at &\n&|g' | \
"$pw_yad_v13_0" --progress --percentage=0 --text="$(eval_gettext "Downloading") $filename" --auto-close --no-escape \
"$pw_yad" --progress --text="$(eval_gettext "Downloading") $filename" --auto-close --no-escape \
--auto-kill --center --text-align="center" --fixed --no-buttons --title "PortProton" --width=500 --height=90 \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --borders=15
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --borders="$PROGRESS_BAR_BORDERS_SIZE"
fi
if [[ "${PIPESTATUS[0]}" != 0 ]] ; then
......@@ -247,9 +249,9 @@ try_download () {
curl -f -# -A 'Mozilla/5.0 (compatible; Konqueror/2.1.1; X11)' -H 'Cache-Control: no-cache, no-store' \
-H 'Pragma: no-cache' -L "$SECOND_URL" -o "$dest" 2>&1 | \
tr '\r' '\n' | sed -ur 's|[# ]+||g;s|.*=.*||g;s|.*|#Downloading at &\n&|g' | \
"$pw_yad_v13_0" --progress --percentage=0 --text="$(eval_gettext "Downloading") $filename" --auto-close --no-escape \
"$pw_yad" --progress --text="$(eval_gettext "Downloading") $filename" --auto-close --no-escape \
--auto-kill --center --text-align="center" --fixed --no-buttons --title "PortProton" --width=500 --height=90 \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --borders=15
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --borders="$PROGRESS_BAR_BORDERS_SIZE"
fi
if [[ "${PIPESTATUS[0]}" != 0 ]] ; then
print_error "Failed to download $filename from mirror. Skipping..."
......@@ -454,8 +456,6 @@ check_user_conf () {
# export DXVK_HUD=full"
# export GALLIUM_HUD=fps"
EOF
elif grep "optirun_on" "${USER_CONF}" &>/dev/null ; then
sed -i '/optirun_on/d' "${USER_CONF}"
fi
}
......@@ -549,20 +549,18 @@ init_wine_ver () {
fi
done
grep 'Global,"{41FCC608-8496-4DEF-B43E-7D9BD675A6FF}",0x10001,0x00000001' "${WINEDIR}/share/wine/wine.inf" &> /dev/null
if [[ "$?" != "0" ]] ; then
if ! grep 'Global,"{41FCC608-8496-4DEF-B43E-7D9BD675A6FF}",0x10001,0x00000001' "${WINEDIR}/share/wine/wine.inf" &> /dev/null ; then
echo 'HKLM,Software\NVIDIA Corporation\Global,"{41FCC608-8496-4DEF-B43E-7D9BD675A6FF}",0x10001,0x00000001' >> "${WINEDIR}/share/wine/wine.inf"
echo 'HKLM,System\ControlSet001\Services\nvlddmkm,"{41FCC608-8496-4DEF-B43E-7D9BD675A6FF}",0x10001,0x00000001' >> "${WINEDIR}/share/wine/wine.inf"
sed -i '/Steam.exe/d' "${WINEDIR}/share/wine/wine.inf"
sed -i '/\\Valve\\Steam/d' "${WINEDIR}/share/wine/wine.inf"
sed -i '/winemenubuilder/d' "${WINEDIR}/share/wine/wine.inf"
rm -f "${WINEDIR}"/lib*/*steam* &>/dev/null
rm -f "${WINEDIR}"/lib*/wine/*/*steam* &>/dev/null
rm -f "${WINEDIR}"/lib*/wine/*-windows/winemenubuilder.exe &>/dev/null
fi
fi
rm -f "${WINEDIR}"/lib*/*steam* &>/dev/null
rm -f "${WINEDIR}"/lib*/wine/*/*steam* &>/dev/null
rm -f "${WINEDIR}"/lib*/wine/*-windows/winemenubuilder.exe &>/dev/null
export WINEDLLPATH="${WINEDIR}/lib64/wine:${WINEDIR}/lib/wine"
if [[ -d "${PATH_TO_GAME}" ]] ; then
export WINEDLLPATH+=":${PATH_TO_GAME}"
......@@ -574,15 +572,6 @@ init_wine_ver () {
}
pw_init_runtime () {
if [ ! -z ${PATH_TMP} ]
then export PATH="${PATH_TMP}"
else export PATH_TMP="${PATH}"
fi
if [ ! -z "${PATH}" ]
then export PATH="${PATH}:${PW_PLUGINS_PATH}/portable/bin"
else export PATH="${PW_PLUGINS_PATH}/portable/bin"
fi
check_flatpak && export PW_USE_RUNTIME="0"
if [[ "$PW_USE_RUNTIME" != "1" ]] \
......@@ -606,6 +595,10 @@ pw_init_runtime () {
export LOCPATH="/run/host/usr/share/locale/"
elif grep -i "altlinux" "/etc/os-release" &>/dev/null ; then
export LIBGL_DRIVERS_PATH="/usr/lib/X11/modules/dri:/usr/lib64/X11/modules/dri"
if [[ -f "/usr/share/vulkan/icd.d/nvidia_icd.json" ]] ; then
VK_ADD_DRIVER_FILES="$(realpath /usr/share/vulkan/icd.d/nvidia_icd.json)"
export VK_ADD_DRIVER_FILES
fi
fi
PW_PV_OVERRIDES="/usr/lib/pressure-vessel/overrides/lib"
......@@ -618,19 +611,26 @@ ${PW_PV_OVERRIDES}/i386-linux-gnu/aliases:\
/overrides/lib/x86_64-linux-gnu:\
/overrides/lib/i386-linux-gnu"
if [ ! -z "${PATH}" ]
then export PW_PATH="${PATH}:${PW_PLUGINS_PATH}/portable/bin"
else export PW_PATH="${PW_PLUGINS_PATH}/portable/bin"
fi
if [[ ! -z "${PW_SANDBOX_HOME_PATH}" && -d "${PW_SANDBOX_HOME_PATH}" ]] ; then
export pw_runtime="${PW_WINELIB}/pressure-vessel/bin/pressure-vessel-unruntime \
--unshare-home \
--home="${PW_SANDBOX_HOME_PATH}" \
--home=${PW_SANDBOX_HOME_PATH} \
--remove-game-overlay \
--share-pid \
${PW_ADD_TO_ARGS_IN_RUNTIME} --"
${PW_ADD_TO_ARGS_IN_RUNTIME} -- \
env PATH=$PW_PATH "
else
export pw_runtime="${PW_WINELIB}/pressure-vessel/bin/pressure-vessel-unruntime \
--share-home \
--remove-game-overlay \
--share-pid \
${PW_ADD_TO_ARGS_IN_RUNTIME} --"
${PW_ADD_TO_ARGS_IN_RUNTIME} -- \
env PATH=$PW_PATH "
fi
if [[ "$PW_USE_SYSTEM_VK_LAYERS" == "1" ]] ; then
......@@ -850,10 +850,11 @@ stop_portwine () {
kill_portwine &&
try_remove_dir "${PW_WINELIB}/var"
find "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/drive_c/" -maxdepth 1 -type f -name "*.tmp" -delete
if [[ ! -z "$(pgrep -a yad_v13_0 | grep "\--notification" | awk '{print $1}')" ]] ; then
kill -s SIGUSR1 "$(pgrep -a yad_v13_0 | grep "\--notification" | awk '{print $1}')" 2>/dev/null
if [[ ! -z "$(pgrep -a yad_gui_pp | grep "\--notification" | awk '{print $1}')" ]] ; then
kill -s SIGUSR1 "$(pgrep -a yad_gui_pp | grep "\--notification" | awk '{print $1}')" 2>/dev/null
fi
add_in_stop_portwine
unset SKIP_CHECK_UPDATES
exit 0
}
export -f stop_portwine
......@@ -1029,9 +1030,7 @@ pw_check_and_download_dxvk_and_vkd3d () {
}
pw_check_and_download_plugins () {
if [[ ! -f "${PW_PLUGINS_PATH}/portable/bin/yad_new" ]] \
|| [[ ! -f "${PW_PLUGINS_PATH}/portable/bin/yad_v13_0" ]]
then
if [[ ! -f "${PW_PLUGINS_PATH}/portable/lib/lib64/libvkbasalt.so" ]] ; then
print_info "Download and install plugins${PW_PLUGINS_VER}..."
if command -v yad &>/dev/null ; then
if try_download "github.com/Castro-Fidel/wine_builds/releases/download/plugins${PW_PLUGINS_VER}/plugins${PW_PLUGINS_VER}.tar.xz" "${PORT_WINE_TMP_PATH}/plugins${PW_PLUGINS_VER}.tar.xz" ; then
......@@ -1086,8 +1085,6 @@ pw_check_and_download_plugins () {
fi
fi
fi
export pw_yad="${PW_PLUGINS_PATH}/portable/bin/yad"
export pw_yad_v13_0="${PW_PLUGINS_PATH}/portable/bin/yad_v13_0"
if command -v 7z &>/dev/null
then export pw_7z="7z"
else export pw_7z="${PW_PLUGINS_PATH}/portable/lib/p7zip/7z"
......@@ -1196,7 +1193,7 @@ pw_init_db () {
ADD_CB_DBFILE="$(echo "${PW_CHECK_DB_FILE}" | awk -F'/' '{print $NF}')!${ADD_CB_DBFILE}"
fi
done
PORTWINE_DB_FILE="${PORT_SCRIPTS_PATH}/portwine_db"/$("${pw_yad_v13_0}" --text-align=center \
PORTWINE_DB_FILE="${PORT_SCRIPTS_PATH}/portwine_db"/$("${pw_yad}" --text-align=center \
--text "$(eval_gettext "More than one DB file found for the application being launched.\nSelect the required one, or delete the extra DB file before the next run.\n")" --borders="${YAD_BORDERS}" --form \
--title "Database file selection..." --window-icon="$PW_GUI_ICON_PATH/portproton.svg" --form --separator="" \
--field="DB FILE: :CB" "${ADD_CB_DBFILE}" 2>/dev/null)
......@@ -1276,8 +1273,6 @@ pw_init_db () {
fi
done
fi
# rename var ENABLE_VKBASALT to PW_VKBASALT
sed -i 's/ENABLE_VKBASALT/PW_VKBASALT/g' "${PORTWINE_DB_FILE}"
fi
[[ "${START_FROM_STEAM}" == 1 ]] && export PW_GUI_DISABLED_CS=1
......@@ -1286,8 +1281,8 @@ pw_init_db () {
return 0
}
# SCRIPTS UPDATE
pw_port_update () {
###SCRIPTS UPDATE###
if [ ! -f "${PORT_WINE_TMP_PATH}/scripts_ver" ] ; then
echo "2024" > "${PORT_WINE_TMP_PATH}/scripts_ver"
fi
......@@ -1315,18 +1310,18 @@ pw_port_update () {
print_info "Scripts version in git = ${scripts_current_ver}"
print_info "Scripts version local = ${scripts_install_ver}"
if [[ ! -z "${scripts_current_ver}" ]] && [[ "${scripts_current_ver}" -gt "${scripts_install_ver}" ]] ; then
if [[ -f "${PW_PLUGINS_PATH}/portable/bin/yad_v13_0" ]]
then export pw_yad_v13_0="${PW_PLUGINS_PATH}/portable/bin/yad_v13_0"
if [[ -f "$PW_GUI_THEMES_PATH/gui/yad_gui_pp" ]]
then export pw_yad="$PW_GUI_THEMES_PATH/gui/yad_gui_pp"
elif command -v yad &>/dev/null
then local pw_yad_v13_0="yad"
else local pw_yad_v13_0="not_found"
then local pw_yad="yad"
else local pw_yad="not_found"
fi
if [[ "${pw_yad_v13_0}" == "not_found" ]] ; then
if [[ "${pw_yad}" == "not_found" ]] ; then
xcsd="$(eval_gettext "UPDATING NOW")"
else
curl -s --list-only "${URL_FOR_CHANGELOG}/${PW_CHANGELOG_FILE}" | tee "${PORT_WINE_TMP_PATH}/curent_var_ver"
CHANGLOG_NEWS=$(sed "/Scripts version ${scripts_install_ver}/,$ d" "${PORT_WINE_TMP_PATH}/curent_var_ver" | sed '1,/---/ d' )
xcsd=$("${pw_yad_v13_0}" --title "$(eval_gettext "Update scripts:") v.${scripts_current_ver}" --window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
xcsd=$("${pw_yad}" --title "$(eval_gettext "Update scripts:") v.${scripts_current_ver}" --window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
--form --separator='%%%' --width=1200 --height=600 \
--field=":TXT" "${CHANGLOG_NEWS}" \
--button="$(eval_gettext "EXIT")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":252 \
......@@ -1359,7 +1354,7 @@ pw_port_update () {
try_remove_dir "${PORT_WINE_TMP_PATH}/PortWINE-master/"
echo "${scripts_current_ver}" > "${PORT_WINE_TMP_PATH}/scripts_ver"
echo "Restarting PP after update..."
export SKIP_CHECK_UPDATES=1
unset SKIP_CHECK_UPDATES
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
fi
......@@ -1403,20 +1398,47 @@ update_winetricks () {
return 0
}
edit_db_field_add () {
for int_to_boole in $@ ; do
if [ "${!int_to_boole}" == "1" ]
then export ${int_to_boole}="TRUE"
else export ${int_to_boole}="FALSE"
fi
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
int_to_boole_non_pw="$(echo ${int_to_boole} | sed 's/^PW_//' | sed 's/_/ /g' )"
ADD_CHK_BOX_EDIT_DB+="--field=${CHKBOX_SPACE}${int_to_boole_non_pw}!${!TMP_HELP_FOR_GUI}:${THEME_CHKBOX}%${!int_to_boole}%"
done
}
edit_db_field_read () {
for boole_to_int in $@ ; do
export ${boole_to_int}=${output_yad_edit_db[$bool_from_yad]}
if [ "${!boole_to_int}" == "TRUE" ]
then export ${boole_to_int}="1"
else export ${boole_to_int}="0"
fi
export bool_from_yad=$(( ${bool_from_yad} + 1 ))
done
}
edit_db_from_gui () {
print_info "edit_db_from_gui PORTWINE_DB_FILE=$PORTWINE_DB_FILE"
for mod_db in $@ ; do
if ! grep "export ${mod_db}=" "${PORTWINE_DB_FILE}" &>/dev/null
then echo "export ${mod_db}=\"${!mod_db}\"" >> "${PORTWINE_DB_FILE}"
elif grep "export ${mod_db}=" "${PORTWINE_DB_FILE}" | grep -v "#" &>/dev/null
then
if [[ "$(grep "export ${mod_db}=" "${PORTWINE_DB_FILE}" | grep -v "#")" != "export ${mod_db}=\"${!mod_db}\"" ]]
then sed -ri "s|^export ${mod_db}=.*|export ${mod_db}=\"${!mod_db}\"|" "${PORTWINE_DB_FILE}"
if [[ ! -z "$PORTWINE_DB_FILE" ]] \
&& [[ -f "$PORTWINE_DB_FILE" ]]
then
for mod_db in $@ ; do
if ! grep "export ${mod_db}=" "${PORTWINE_DB_FILE}" &>/dev/null
then echo "export ${mod_db}=\"${!mod_db}\"" >> "${PORTWINE_DB_FILE}"
elif grep "export ${mod_db}=" "${PORTWINE_DB_FILE}" | grep -v "#" &>/dev/null
then
if [[ "$(grep "export ${mod_db}=" "${PORTWINE_DB_FILE}" | grep -v "#")" != "export ${mod_db}=\"${!mod_db}\"" ]]
then sed -ri "s|^export ${mod_db}=.*|export ${mod_db}=\"${!mod_db}\"|" "${PORTWINE_DB_FILE}"
fi
elif [[ "$(grep "export ${mod_db}=" "${PORTWINE_DB_FILE}")" != "export ${mod_db}=${!mod_db}" ]]
then sed -ri "s|.*export ${mod_db}=.*|export ${mod_db}=\"${!mod_db}\"|g" "${PORTWINE_DB_FILE}"
fi
elif [[ "$(grep "export ${mod_db}=" "${PORTWINE_DB_FILE}")" != "export ${mod_db}=${!mod_db}" ]]
then sed -ri "s|.*export ${mod_db}=.*|export ${mod_db}=\"${!mod_db}\"|g" "${PORTWINE_DB_FILE}"
fi
done
done
fi
return 0
}
......@@ -1437,70 +1459,51 @@ edit_user_conf_from_gui () {
}
pw_create_gui_png () {
if [[ ! -z "${PORTWINE_CREATE_SHORTCUT_NAME}" ]] ; then
PORTPROTON_NAME="${PORTWINE_CREATE_SHORTCUT_NAME}"
else
PW_PRODUCTNAME=$(env PERL5LIB="${PW_PLUGINS_PATH}/portable/lib/perl5" "${PW_PLUGINS_PATH}/portable/bin/exiftool" -ProductName "${portwine_exe}" 2>/dev/null | sed -n 's/^Product Name\s*:\s*//p')
if [[ "$PW_PRODUCTNAME" =~ "Launcher" ]] \
|| [[ "$PW_PRODUCTNAME" =~ "RU" ]]
then
PW_PRODUCTNAME="$(echo "$PW_PRODUCTNAME" | sed 's/Launcher\|RU//g')"
fi
if [[ ! -z "$PW_PRODUCTNAME" ]] \
&& [[ "$PW_PRODUCTNAME" != Bootstrap* ]]
then
PORTPROTON_NAME="$PW_PRODUCTNAME"
if [[ -z "$PORTPROTON_NAME" ]] ; then
if [[ ! -z "${PORTWINE_CREATE_SHORTCUT_NAME}" ]] ; then
PORTPROTON_NAME="${PORTWINE_CREATE_SHORTCUT_NAME}"
else
PORTPROTON_NAME="$(basename "${portwine_exe}" .exe)"
if command -v exiftool &>/dev/null ; then
PW_PRODUCTNAME=$(exiftool -ProductName "${portwine_exe}" 2>/dev/null | sed -n 's/^Product Name\s*:\s*//p')
else
PW_PRODUCTNAME=$(env PERL5LIB="${PW_PLUGINS_PATH}/portable/lib/perl5" "${PW_PLUGINS_PATH}/portable/bin/exiftool" -ProductName "${portwine_exe}" 2>/dev/null | sed -n 's/^Product Name\s*:\s*//p')
fi
if [[ "$PW_PRODUCTNAME" =~ "Launcher" ]] \
|| [[ "$PW_PRODUCTNAME" =~ "RU" ]]
then
PW_PRODUCTNAME="$(echo "$PW_PRODUCTNAME" | sed 's/Launcher\|RU//g')"
fi
if [[ ! -z "$PW_PRODUCTNAME" ]] \
&& [[ "$PW_PRODUCTNAME" != Bootstrap* ]] \
&& ! echo "${portwine_exe}" | grep -i "setup" &>/dev/null
then
PORTPROTON_NAME="$PW_PRODUCTNAME"
else
PORTPROTON_NAME="$(basename "${portwine_exe}" .exe)"
fi
fi
PORTPROTON_NAME="$(echo "${PORTPROTON_NAME}" | sed "s/\`//g" | sed "s/\"//g" | sed "s/'//g")"
export PORTPROTON_NAME
edit_db_from_gui PORTPROTON_NAME
fi
export PORTPROTON_NAME
PW_RESIZE_TO=128
PW_RESIZE_TO="128"
try_remove_file "${PORT_WINE_PATH}/data/img/setup.png"
try_remove_file "${PORT_WINE_PATH}/data/img/Setup.png"
try_remove_file "${PORT_WINE_PATH}/data/img/launcher.png"
try_remove_file "${PORT_WINE_PATH}/data/img/Launcher.png"
if [[ ! -f "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png" ]] ; then
try_remove_dir "${PORT_WINE_TMP_PATH}/tmp_img"
create_new_dir "${PORT_WINE_TMP_PATH}/tmp_img"
if command -v icoextract &>/dev/null ; then
icoextract "$(readlink -f "${portwine_exe}")" "${PORT_WINE_TMP_PATH}/tmp_img/${PORTPROTON_NAME}.ico"
elif command -v wrestool &>/dev/null ; then
wrestool -x --output="${PORT_WINE_TMP_PATH}/tmp_img/" -t14 "$(readlink -f "${portwine_exe}")"
if command -v exe-thumbnailer &>/dev/null ; then
exe-thumbnailer -s "${PW_RESIZE_TO}" "$(readlink -f "${portwine_exe}")" "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png"
else
env LD_LIBRARY_PATH="${PW_PLUGINS_PATH}/portable/lib/lib64" "${PW_PLUGINS_PATH}/portable/bin/wrestool" \
-x --output="${PORT_WINE_TMP_PATH}/tmp_img/" -t14 "$(readlink -f "${portwine_exe}")"
env PYTHONPATH="${PW_PLUGINS_PATH}/portable/lib/python3.9/site-packages/" \
LD_LIBRARY_PATH="${PW_PLUGINS_PATH}/portable/lib/lib64" \
"${PW_WINELIB}/runtime/files/bin/python3.9" \
"${PW_PLUGINS_PATH}/portable/bin/exe-thumbnailer" -s "${PW_RESIZE_TO}" \
"$(readlink -f "${portwine_exe}")" "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png"
fi
cp "$(ls -S -1 "${PORT_WINE_TMP_PATH}/tmp_img/"*".ico" | head -n 1)" "${PORT_WINE_TMP_PATH}/tmp_img/${PORTPROTON_NAME}.ico"
if command -v icotool &>/dev/null ; then
icotool -x --width=${PW_RESIZE_TO} --height=${PW_RESIZE_TO} --output="${PORT_WINE_TMP_PATH}/tmp_img/" \
"${PORT_WINE_TMP_PATH}/tmp_img/${PORTPROTON_NAME}.ico"
else
env LD_LIBRARY_PATH="${PW_PLUGINS_PATH}/portable/lib/lib64" "${PW_PLUGINS_PATH}/portable/bin/icotool" \
-x --width=${PW_RESIZE_TO} --height=${PW_RESIZE_TO} --output="${PORT_WINE_TMP_PATH}/tmp_img/" \
"${PORT_WINE_TMP_PATH}/tmp_img/${PORTPROTON_NAME}.ico"
fi
if [[ ! -f "$(ls -S -1 "${PORT_WINE_TMP_PATH}/tmp_img/"*".png" | grep "${PW_RESIZE_TO}x${PW_RESIZE_TO}")" ]] ; then
if command -v icotool &>/dev/null ; then
icotool -x --output="${PORT_WINE_TMP_PATH}/tmp_img/" "${PORT_WINE_TMP_PATH}/tmp_img/${PORTPROTON_NAME}.ico"
else
env LD_LIBRARY_PATH="${PW_PLUGINS_PATH}/portable/lib/lib64" "${PW_PLUGINS_PATH}/portable/bin/icotool" \
-x --output="${PORT_WINE_TMP_PATH}/tmp_img/" "${PORT_WINE_TMP_PATH}/tmp_img/${PORTPROTON_NAME}.ico"
fi
cp "$(ls -S -1 "${PORT_WINE_TMP_PATH}/tmp_img/"*".png" | head -n 1)" "${PORT_WINE_TMP_PATH}/tmp_img/${PORTPROTON_NAME}.png"
else
cp "$(ls -S -1 "${PORT_WINE_TMP_PATH}/tmp_img/"*".png" | grep "${PW_RESIZE_TO}x${PW_RESIZE_TO}" | head -n 1)" \
"${PORT_WINE_TMP_PATH}/tmp_img/${PORTPROTON_NAME}.png"
fi
cp -f "${PORT_WINE_TMP_PATH}/tmp_img/${PORTPROTON_NAME}.png" "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png"
fi
if [[ -z "$(file "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png" | grep "${PW_RESIZE_TO} x ${PW_RESIZE_TO}")" ]] \
&& command -v convert &>/dev/null \
&& [[ -f "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png" ]]
then
convert "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png" -resize ${PW_RESIZE_TO}x${PW_RESIZE_TO} "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png"
fi
if [[ -z "${PW_ICON_FOR_YAD}" ]] ; then
if [[ ! -z "$(file "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png" | grep "${PW_RESIZE_TO} x ${PW_RESIZE_TO}")" ]] ; then
......@@ -1531,7 +1534,7 @@ pw_find_exe () {
done < "${PORT_WINE_TMP_PATH}/tmp_yad_find_exe"
OrigIFS="$IFS" && IFS=%
PW_SET_FIND_EXE="$("${pw_yad_v13_0}" --height="500" --width="800" --list --text-align=center \
PW_SET_FIND_EXE="$("${pw_yad}" --height="500" --width="800" --list --text-align=center \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --title "$(eval_gettext "Create shortcut for...")" \
--text="\n$(eval_gettext "Choose the .exe file for which you need to create a shortcut and click OK.\n")" \
--column="$(eval_gettext "Choose path to .exe file:")" ${FIND_TO_GUI} \
......@@ -1578,13 +1581,13 @@ pw_create_unique_exe () {
start_portwine () {
if [[ "${PW_LOCALE_SELECT}" != "disabled" ]] && [[ ! -z "${PW_LOCALE_SELECT}" ]] ; then
export LC_ALL="${PW_LOCALE_SELECT}"
if [[ "${PW_USE_RUNTIME}" == "1" ]] && [[ "${HOST_LC_ALL}" != "${LC_ALL}" ]] ; then
export HOST_LC_ALL="${LC_ALL}"
fi
else
export PW_LOCALE_SELECT="disabled"
fi
export LC_ALL="${PW_LOCALE_SELECT}"
if [[ "${PW_USE_RUNTIME}" == "1" ]] && [[ "${HOST_LC_ALL}" != "${LC_ALL}" ]] ; then
export HOST_LC_ALL="${LC_ALL}"
fi
else
export PW_LOCALE_SELECT="disabled"
fi
WINEPREFIX="$(readlink -f "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}")"
export WINEPREFIX
......@@ -1694,6 +1697,7 @@ start_portwine () {
elif [[ "${PW_CHECK_AUTOINSTAL}" == 1 ]] \
&& [[ "${DISABLE_CP_DEFPFX}" == 1 ]] ; then
pw_update_pfx_cover_gui
unpack "${PW_PLUGINS_PATH}/blank_pfx.tar.xz" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/" silent
pw_wineboot -i
elif yad_question "$(eval_gettext "Do you want to installing recommended libraries in the new prefix:") ${PW_PREFIX_NAME}" ; then
pw_update_pfx_cover_gui
......@@ -1701,6 +1705,7 @@ start_portwine () {
pw_wineboot -r
else
pw_update_pfx_cover_gui
unpack "${PW_PLUGINS_PATH}/blank_pfx.tar.xz" "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/" silent
pw_wineboot -i
fi
else
......@@ -1817,14 +1822,7 @@ start_portwine () {
done
export DXVK_ENABLE_NVAPI=1
if [[ "${PW_USE_FAKE_DLSS_3}" == 1 ]] ; then
try_copy_file "${PW_PLUGINS_PATH}/fake_dlss_3/${PW_FAKE_DLSS_3_VER}/nvngx.dll" "${WINEPREFIX}/drive_c/windows/system32/"
try_copy_file "${PW_PLUGINS_PATH}/fake_dlss/${PW_FAKE_DLSS_3_VER}/dlssg_to_fsr3_amd_is_better.dll" "${WINEPREFIX}/drive_c/windows/system32/"
try_copy_file "${PW_PLUGINS_PATH}/nvngx/_nvngx.dll" "${WINEPREFIX}/drive_c/windows/system32/"
var_winedlloverride_update "nvapi,nvapi64,nvngx,_nvngx,dlssg_to_fsr3_amd_is_better=n;nvcuda=b"
enabled_fake_nvidia_videocard new
export WINEHAGS=1
elif [[ "${PW_USE_FAKE_DLSS}" == 1 ]] && [[ -d "${PW_PLUGINS_PATH}/fake_dlss/${PW_FAKE_DLSS_VER}/" ]] ; then
if [[ "${PW_USE_FAKE_DLSS}" == 1 ]] && [[ -d "${PW_PLUGINS_PATH}/fake_dlss/${PW_FAKE_DLSS_VER}/" ]] ; then
try_copy_file "${PW_PLUGINS_PATH}/fake_dlss/${PW_FAKE_DLSS_VER}/nvngx.dll" "${WINEPREFIX}/drive_c/windows/system32/"
try_copy_file "${PW_PLUGINS_PATH}/fake_dlss/${PW_FAKE_DLSS_VER}/nvngx.ini" "${WINEPREFIX}/drive_c/windows/system32/"
enabled_fake_nvidia_videocard old
......@@ -1877,11 +1875,6 @@ start_portwine () {
if [[ "${PW_GPU_USE}" != "disabled" ]] ; then
export DXVK_FILTER_DEVICE_NAME="${PW_GPU_USE}"
export VKD3D_FILTER_DEVICE_NAME="${PW_GPU_USE}"
if echo "${PW_GPU_USE}" | grep -i nvidia &>/dev/null ; then
if [[ -f "/usr/share/vulkan/icd.d/nvidia_icd.json" ]] ; then
export VK_ICD_FILENAMES="/usr/share/vulkan/icd.d/nvidia_icd.json"
fi
fi
fi
case "$PW_FORCE_USE_VSYNC" in # 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT
......@@ -2102,7 +2095,7 @@ start_portwine () {
esac
# DGVOODOO2 enable:
if [[ "${PW_USE_DGVOODOO2}" == "1" ]] ; then
if [[ "${PW_DGVOODOO2}" == "1" ]] ; then
print_info "Try copy native DGVOODOO2 files..."
PATH_TO_DGV2_FILES="${PW_VULKAN_DIR}/dgvoodoo2-${DGV2_VER}"
CP_DGV2_FILES="ddraw d3dimm d3d8 d3d9 glide glide2x glide3x"
......@@ -2160,8 +2153,14 @@ start_portwine () {
[[ "${PW_DGV2_FULLSCREEN}" == "1" ]] && sed -i "s/Resolution = unforced/Resolution = desktop/g" "$DGV2CONF"
[[ "${PW_DGV2_FASTMEMORY}" == "1" ]] && sed -i "s/FastVideoMemoryAccess = false/FastVideoMemoryAccess = true/" "$DGV2CONF"
[[ "${PW_DGV2_VRAM_INCREASE}" == "1" ]] && sed -i "s/VRAM = 256/VRAM = 1024/" "$DGV2CONF"
[[ "${PW_DGV2_FILTERING}" == "1" ]] && sed -i "79s/Filtering = appdriven/Filtering = 16/" "$DGV2CONF"
[[ "${PW_DGV2_ANTIALIASING}" == "1" ]] && sed -i "83s/Antialiasing = appdriven/Antialiasing = 8x/" "$DGV2CONF"
if [[ "${PW_DGV2_FILTERING}" != "disabled" ]] ; then
export PW_DGV2_FILTERING="${PW_DGV2_FILTERING}"
sed -i "s/Filtering = appdriven/Filtering = ${PW_DGV2_FILTERING}/" "$DGV2CONF"
fi
if [[ "${PW_DGV2_ANTIALIASING}" != "disabled" ]] ; then
export PW_DGV2_ANTIALIASING="${PW_DGV2_ANTIALIASING}"
sed -i "s/Antialiasing = appdriven/Antialiasing = ${PW_DGV2_ANTIALIASING}x/g" "$DGV2CONF"
fi
else
for rm_dgv2_dll in d3dimm glide glide2x glide3x ; do
try_remove_file "${WINEPREFIX}/drive_c/windows/syswow64/${rm_dgv2_dll}.dll"
......@@ -2332,7 +2331,7 @@ start_portwine () {
echo "START WINETRICKS..." >> "${PORT_WINE_TMP_PATH}/update_pfx_log"
echo "Try to install DLL in prefix: ${PW_DLL_NEED_INSTALL}" >> "${PORT_WINE_TMP_PATH}/update_pfx_log"
print_info "Try to install DLL in prefix: ${PW_DLL_NEED_INSTALL}"
${pw_runtime} env PATH="${PATH}" LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" GST_PLUGIN_SYSTEM_PATH_1_0="" \
${pw_runtime} LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" GST_PLUGIN_SYSTEM_PATH_1_0="" \
"${PORT_WINE_TMP_PATH}/winetricks" -q -r -f ${PW_DLL_NEED_INSTALL} | tee -a "${PORT_WINE_TMP_PATH}/update_pfx_log"
wait_wineserver
kill_portwine
......@@ -2347,7 +2346,7 @@ start_portwine () {
then
export PW_WINDOWS_VER="xp64"
fi
${pw_runtime} env PATH="${PATH}" LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}:${WINE_LIBRARY_PATH}" GST_PLUGIN_SYSTEM_PATH_1_0="" \
${pw_runtime} LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}:${WINE_LIBRARY_PATH}" GST_PLUGIN_SYSTEM_PATH_1_0="" \
"${WINELOADER}" winecfg -v $(echo "win${PW_WINDOWS_VER}" | sed 's/.*/\L&/')
wait_wineserver
kill_portwine
......@@ -2374,10 +2373,10 @@ start_portwine () {
fi
else
print_info "Added DisableHidraw = 0 to reg file"
${pw_runtime} env PATH="${PATH}" LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}:${WINE_LIBRARY_PATH}" GST_PLUGIN_SYSTEM_PATH_1_0="" \
${pw_runtime} LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}:${WINE_LIBRARY_PATH}" GST_PLUGIN_SYSTEM_PATH_1_0="" \
"${WINELOADER}" reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\winebus" /v "DisableHidraw" /t REG_DWORD /d 0 /f
print_info "Added Enable SDL = 0 to reg file"
${pw_runtime} env PATH="${PATH}" LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}:${WINE_LIBRARY_PATH}" GST_PLUGIN_SYSTEM_PATH_1_0="" \
${pw_runtime} LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}:${WINE_LIBRARY_PATH}" GST_PLUGIN_SYSTEM_PATH_1_0="" \
"${WINELOADER}" reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\winebus" /v "Enable SDL" /t REG_DWORD /d 0 /f
fi
else
......@@ -2395,10 +2394,10 @@ start_portwine () {
fi
else
print_info "Added DisableHidraw = 1 to reg file"
${pw_runtime} env PATH="${PATH}" LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}:${WINE_LIBRARY_PATH}" GST_PLUGIN_SYSTEM_PATH_1_0="" \
${pw_runtime} LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}:${WINE_LIBRARY_PATH}" GST_PLUGIN_SYSTEM_PATH_1_0="" \
"${WINELOADER}" reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\winebus" /v "DisableHidraw" /t REG_DWORD /d 1 /f
print_info "Added Enable SDL = 1 to reg file"
${pw_runtime} env PATH="${PATH}" LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}:${WINE_LIBRARY_PATH}" GST_PLUGIN_SYSTEM_PATH_1_0="" \
${pw_runtime} LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}:${WINE_LIBRARY_PATH}" GST_PLUGIN_SYSTEM_PATH_1_0="" \
"${WINELOADER}" reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\winebus" /v "Enable SDL" /t REG_DWORD /d 1 /f
fi
fi
......@@ -2469,7 +2468,6 @@ pw_run () {
print_info "Log from RUNTIME and WINE:"
${PW_RUN_GAMESCOPE} \
${pw_runtime} \
env PATH="${PATH}" \
LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" \
LD_PRELOAD="${PW_LD_PRELOAD}" \
VK_LAYER_PATH="${PW_VK_LAYER_PATH}" \
......@@ -2488,7 +2486,6 @@ pw_run () {
echo "Log WINE:" > "${PW_LOG_TO_FILE}"
${PW_RUN_GAMESCOPE} \
${pw_runtime} \
env PATH="${PATH}" \
LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" \
LD_PRELOAD="${PW_LD_PRELOAD}" \
VK_LAYER_PATH="${PW_VK_LAYER_PATH}" \
......@@ -2543,6 +2540,30 @@ pw_run () {
}
export -f pw_run
pw_yad_set_form () {
if [[ -f "${PORT_WINE_TMP_PATH}/tmp_yad_form" ]]; then
PW_YAD_SET=$(head -n 1 "${PORT_WINE_TMP_PATH}/tmp_yad_form" | awk '{print $1}')
export PW_YAD_SET
fi
}
pw_yad_form_vulkan () {
if [[ -f "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" ]] ; then
VULKAN_MOD="$(grep \;\; "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" | awk -F";" '{print $1}')"
PW_WINE_VER="$(grep \;\; "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" | awk -F";" '{print $2}')"
PW_PREFIX_NAME="$(grep \;\; "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" | awk -F";" '{print $3}' | sed -e "s/[[:blank:]]/_/g" )"
if [[ -z "${PW_PREFIX_NAME}" ]] \
|| echo "${PW_PREFIX_NAME}" | grep -E '^_.*'
then
PW_PREFIX_NAME="DEFAULT"
else
PW_PREFIX_NAME="${PW_PREFIX_NAME^^}"
fi
export PW_PREFIX_NAME PW_WINE_VER VULKAN_MOD
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan"
fi
}
portwine_launch () {
start_portwine
PORTWINE_MSI=$(basename "${portwine_exe}" | grep .msi)
......@@ -2588,7 +2609,6 @@ pw_start_cont_xterm () {
unset PW_SANDBOX_HOME_PATH
pw_init_runtime
${pw_runtime} \
env PATH="${PATH}" \
LD_PRELOAD="${PW_LD_PRELOAD}" \
VK_LAYER_PATH="${PW_VK_LAYER_PATH}" \
VK_INSTANCE_LAYERS="${PW_VK_INSTANCE_LAYERS}" \
......@@ -2597,38 +2617,41 @@ pw_start_cont_xterm () {
${PW_TERM} bash
}
# GUI INFO
yad_info () {
print_info "$@"
if [[ ! -f "${pw_yad_v13_0}" ]] ; then
local pw_yad_v13_0="yad"
command -v "${pw_yad_v13_0}" &>/dev/null || fatal "yad not found"
if [[ ! -f "${pw_yad}" ]] ; then
local pw_yad="yad"
command -v "${pw_yad}" &>/dev/null || fatal "yad not found"
fi
"${pw_yad_v13_0}" --no-wrap --text "$@" --width=400 --height=50 --borders=15 --title "INFO" \
"${pw_yad}" --no-wrap --text "$@" --width=400 --height=150 --borders=15 --title "INFO" \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --image="$PW_GUI_ICON_PATH/info.svg" \
--center --text-align=center \
--center --text-align=center --fixed \
--button="$(eval_gettext "OK")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png" 2>/dev/null
}
export -f yad_info
# GUI ERROR
yad_error () {
print_error "$@"
if [[ ! -f "${pw_yad_v13_0}" ]] ; then
local pw_yad_v13_0="yad"
command -v "${pw_yad_v13_0}" &>/dev/null || fatal "yad not found"
if [[ ! -f "${pw_yad}" ]] ; then
local pw_yad="yad"
command -v "${pw_yad}" &>/dev/null || fatal "yad not found"
fi
"${pw_yad_v13_0}" --no-wrap --text "$@" --width=400 --borders=15 --title "ERROR" \
"${pw_yad}" --no-wrap --text "$@" --width=400 --height=150 --borders=15 --title "ERROR" \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --image="$PW_GUI_ICON_PATH/error.svg" \
--center --text-align=center \
--center --text-align=center --fixed \
--button="$(eval_gettext "EXIT")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png" 2>/dev/null
}
export -f yad_error
yad_error_download () {
if [[ ! -f "${pw_yad_v13_0}" ]] ; then
local pw_yad_v13_0="yad"
command -v "${pw_yad_v13_0}" &>/dev/null || fatal "yad not found"
if [[ ! -f "${pw_yad}" ]] ; then
local pw_yad="yad"
command -v "${pw_yad}" &>/dev/null || fatal "yad not found"
fi
"${pw_yad_v13_0}" --text "$(eval_gettext "You will need to check internet connection,and\npress Repeat for repeat download")" --width=400 --borders=15 --title "$(eval_gettext "Error")" \
"${pw_yad}" --text "$(eval_gettext "You will need to check internet connection,and\npress Repeat for repeat download")" \
--width=400 --borders=15 --title "$(eval_gettext "Error")" \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --image="$PW_GUI_ICON_PATH/download.svg" \
--no-wrap --center --text-align=center \
--button="$(eval_gettext "SKIP")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":1 \
......@@ -2636,14 +2659,15 @@ yad_error_download () {
[[ "$?" != 0 ]] && return 1 || return 0
}
# GUI QUESTIONS
yad_question () {
if [[ ! -f "${pw_yad_v13_0}" ]] ; then
local pw_yad_v13_0="yad"
command -v "${pw_yad_v13_0}" &>/dev/null || fatal "yad not found"
if [[ ! -f "${pw_yad}" ]] ; then
local pw_yad="yad"
command -v "${pw_yad}" &>/dev/null || fatal "yad not found"
fi
"${pw_yad_v13_0}" --text "${1}" --width=400 --borders=15 --title "$(eval_gettext "Choices")" \
"${pw_yad}" --text "${1}" --width=400 --height=150 --borders=15 --title "$(eval_gettext "Choices")" \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --image="$PW_GUI_ICON_PATH/question.svg" \
--no-wrap --center --text-align=center \
--no-wrap --center --text-align=center --fixed \
--button="$(eval_gettext "CANCEL")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":1 \
--button="$(eval_gettext "OK")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0 2>/dev/null
[[ "$?" != 0 ]] && return 1 || return 0
......@@ -2654,7 +2678,7 @@ pw_start_progress_bar_cover () {
PW_GIF_FILE="$1"
PW_GIF_SIZE_X=$(file "${PW_GIF_FILE}" | awk '{print $7 + 8}')
PW_GIF_SIZE_Y=$(file "${PW_GIF_FILE}" | awk '{print $9 + 15}')
"${pw_yad_v13_0}" --picture --filename="${PW_GIF_FILE}" --close-on-unfocus --no-buttons --undecorated --center \
"${pw_yad}" --picture --filename="${PW_GIF_FILE}" --close-on-unfocus --no-buttons --undecorated --center \
--skip-taskbar --width="$PW_GIF_SIZE_X" --height="$PW_GIF_SIZE_Y" --window-icon="$PW_GUI_ICON_PATH/portproton.svg" > /dev/null 2>&1 &
export PW_YAD_PID_PROGRESS_BAR_COVER="$!"
return 0
......@@ -2663,11 +2687,11 @@ pw_start_progress_bar_cover () {
pw_start_progress_bar_cover_block () {
if ! check_start_from_steam ; then
[[ ! -f "${pw_yad_v13_0}" ]] && local pw_yad_v13_0="yad"
[[ ! -f "${pw_yad}" ]] && local pw_yad="yad"
PW_GIF_FILE="$1"
PW_GIF_SIZE_X=$(file "${PW_GIF_FILE}" | awk '{print $7 + 8}')
PW_GIF_SIZE_Y=$(file "${PW_GIF_FILE}" | awk '{print $9 + 15}')
"${pw_yad_v13_0}" --picture --filename="${PW_GIF_FILE}" --close-on-unfocus --no-buttons --undecorated --center \
"${pw_yad}" --picture --filename="${PW_GIF_FILE}" --close-on-unfocus --no-buttons --undecorated --center \
--skip-taskbar --width="$PW_GIF_SIZE_X" --height="$PW_GIF_SIZE_Y" --window-icon="$PW_GUI_ICON_PATH/portproton.svg" > /dev/null 2>&1 &
export PW_YAD_PID_PROGRESS_BAR_COVER_BLOCK="$!"
return 0
......@@ -2687,14 +2711,16 @@ pw_update_pfx_cover_gui () {
YAD_UNDECORATED="--undecorated --center"
fi
if ! check_start_from_steam && ! pgrep -a yad | grep "yad_v13_0 --notebook --key=$PW_KEY_PROGRESS_BAR_UP" &>/dev/null ; then
if ! check_start_from_steam \
&& ! pgrep -a yad | grep "yad_gui_pp --notebook --key=$PW_KEY_PROGRESS_BAR_UP" &>/dev/null
then
PW_KEY_PROGRESS_BAR_UP=$RANDOM
PW_GIF_FILE="${COVERS_PATH}/update_prefix_${LANGUAGE}.gif"
PW_GIF_SIZE_X=$(file "${PW_GIF_FILE}" | awk '{print $7 + 20}')
PW_GIF_SIZE_Y=$(file "${PW_GIF_FILE}" | awk '{print $9 + 65}')
echo "UPDATE PREFIX..." > "${PORT_WINE_TMP_PATH}/update_pfx_log"
export PW_TIMER=0
while read -r line || [[ ! -z $(pgrep -a yad | grep "yad_v13_0 --notebook --key=$PW_KEY_PROGRESS_BAR_UP" | awk '{print $1}') ]] ; do
while read -r line || [[ ! -z $(pgrep -a yad | grep "yad_gui_pp --notebook --key=$PW_KEY_PROGRESS_BAR_UP" | awk '{print $1}') ]] ; do
sleep 0.005
if [[ ! -z "${line}" ]] && [[ -z "$(echo "${line}" | grep -i "gstreamer")" ]] \
&& [[ -z "$(echo "${line}" | grep -i "kerberos")" ]] \
......@@ -2706,10 +2732,10 @@ pw_update_pfx_cover_gui () {
sleep 3
PW_TIMER=1
fi
done < "${PORT_WINE_TMP_PATH}/update_pfx_log" | "${pw_yad_v13_0}" --plug=$PW_KEY_PROGRESS_BAR_UP --tabnum=$TAB_N2 --text-info --tail 2>/dev/null &
"${pw_yad_v13_0}" --plug=$PW_KEY_PROGRESS_BAR_UP --tabnum=$TAB_N1 --picture --filename="${PW_GIF_FILE}" --image-on-top 2>/dev/null &
done < "${PORT_WINE_TMP_PATH}/update_pfx_log" | "${pw_yad}" --plug=$PW_KEY_PROGRESS_BAR_UP --tabnum=$TAB_N2 --text-info --tail 2>/dev/null &
"${pw_yad}" --plug=$PW_KEY_PROGRESS_BAR_UP --tabnum=$TAB_N1 --picture --filename="${PW_GIF_FILE}" --image-on-top 2>/dev/null &
"${pw_yad_v13_0}" --notebook --key="$PW_KEY_PROGRESS_BAR_UP" $TAB_PLACE --no-buttons --expand \
"${pw_yad}" --notebook --key="$PW_KEY_PROGRESS_BAR_UP" $TAB_PLACE --no-buttons --expand \
--auto-close --skip-taskbar --width="$PW_GIF_SIZE_X" --height="$PW_GIF_SIZE_Y" $YAD_UNDECORATED \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --title "PortProton" --tab-pos=bottom --expand 2>/dev/null &
export PW_YAD_PID_PFX_COVER_UI="$!"
......@@ -2719,8 +2745,8 @@ pw_update_pfx_cover_gui () {
pw_start_progress_bar_cs () {
if ! check_start_from_steam ; then
"${pw_yad}" --progress --progress-text="$@
" --pulsate --close-on-unfocus --borders="$PROGRESS_BAR_BORDERS_SIZE" \
"${pw_yad}" --progress-old --text="$@
" --pulsate --hide-text --close-on-unfocus --borders="$PROGRESS_BAR_BORDERS_SIZE" \
--no-buttons --undecorated --center --skip-taskbar \
--width="$PROGRESS_BAR_WIDTH_SIZE" \
--wrap-width="$PROGRESS_BAR_WIDTH_SIZE" \
......@@ -2732,9 +2758,10 @@ pw_start_progress_bar_cs () {
pw_start_progress_bar_block () {
if ! check_start_from_steam ; then
"${pw_yad}" --progress --progress-text="$@
" --pulsate --borders="$PROGRESS_BAR_BORDERS_SIZE" \
"${pw_yad}" --progress-old --text="$@
" --pulsate --hide-text --borders="$PROGRESS_BAR_BORDERS_SIZE" \
--no-buttons --undecorated --center --skip-taskbar \
--no-escape --text-align="center" --height=90 --fixed \
--width="$PROGRESS_BAR_WIDTH_SIZE" \
--wrap-width="$PROGRESS_BAR_WIDTH_SIZE" \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" &>/dev/null &
......@@ -2745,9 +2772,10 @@ pw_start_progress_bar_block () {
pw_start_progress_bar_install_game () {
if ! check_start_from_steam ; then
"${pw_yad}" --progress --progress-text="$(eval_gettext "Please wait. Installing the") $@
" --pulsate --borders="$PROGRESS_BAR_BORDERS_SIZE" \
"${pw_yad}" --progress-old --text="$(eval_gettext "Please wait. Installing the") $@
" --pulsate --hide-text --borders="$PROGRESS_BAR_BORDERS_SIZE" \
--no-buttons --undecorated --center --skip-taskbar \
--no-escape --text-align="center" --height=90 --fixed \
--width="$PROGRESS_BAR_WIDTH_SIZE" \
--wrap-width="$PROGRESS_BAR_WIDTH_SIZE" \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" &>/dev/null &
......@@ -2780,7 +2808,7 @@ export -f pw_stop_progress_bar_cover_block
open_changelog () {
[[ "$LANGUAGE" == ru ]] && local PW_CHANGELOG_FILE="changelog_ru" || local PW_CHANGELOG_FILE="changelog_en"
"${pw_yad_v13_0}" --title="$(eval_gettext "CHANGELOG")" --no-buttons --text-align=center \
"${pw_yad}" --title="$(eval_gettext "CHANGELOG")" --no-buttons --text-align=center \
--text-info --show-uri --wrap --width=1200 --height=700 --uri-color=red \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
--filename="${PORT_WINE_PATH}/data/${PW_CHANGELOG_FILE}" &>/dev/null
......@@ -2788,8 +2816,8 @@ open_changelog () {
export -f open_changelog
pw_tray_icon () {
if [ ! -z "$(pgrep -a yad_v13_0 | grep "\--notification" | awk '{print $1}')" ] ; then
kill -s SIGUSR1 "$(pgrep -a yad_v13_0 | grep "\--notification" | awk '{print $1}')"
if [ ! -z "$(pgrep -a yad_gui_pp | grep "\--notification" | awk '{print $1}')" ] ; then
kill -s SIGUSR1 "$(pgrep -a yad_gui_pp | grep "\--notification" | awk '{print $1}')"
fi
tray_icon_click () {
......@@ -2813,7 +2841,7 @@ pw_tray_icon () {
}
export -f tray_icon_click_exit
"${pw_yad_v13_0}" --notification --no-middle \
"${pw_yad}" --notification --no-middle \
--image="$PW_GUI_ICON_PATH/portproton_tray_flatpak.svg" \
--command="bash -c tray_icon_click" \
--tooltip="PortProton" \
......@@ -2826,6 +2854,7 @@ pw_tray_icon () {
return 0
}
# GUI EDIT_DB
pw_gui_for_edit_db () {
KEY_EDIT_DB_GUI=$RANDOM
if [[ "${PW_WINE_CPU_TOPOLOGY}" == *[0-9]:* ]] && [[ "${PW_WINE_CPU_TOPOLOGY}" != "disabled" ]] ; then
......@@ -2840,8 +2869,6 @@ pw_gui_for_edit_db () {
GPU_VAR="disabled"
fi
GET_GPU_NAMES=$("$PW_VULKANINFO_PORTABLE" 2>/dev/null | awk -F '=' '/deviceName/{print $2}' | sed '/llvm/d'| sort -u | sed 's/^ //' | paste -sd '!')
logical_cores=$(grep -c "^processor" /proc/cpuinfo)
if [[ "${logical_cores}" -le "4" ]] ; then
GET_LOGICAL_CORE="1!$(seq -s! 1 $((${logical_cores} - 1)))"
......@@ -2851,28 +2878,18 @@ pw_gui_for_edit_db () {
GET_LOCALE_LIST="ru_RU.utf en_US.utf zh_CN.utf ja_JP.utf ko_KR.utf"
unset LOCALE_LIST
for LOCALE in $GET_LOCALE_LIST ; do
if locale -a | grep -i "$LOCALE" &>/dev/null ; then
for LOCALE in $GET_LOCALE_LIST ; do
if locale -a | grep -i "$LOCALE" &>/dev/null ; then
if [[ ! -z "$LOCALE_LIST" ]]
then LOCALE_LIST+="!$(locale -a | grep -i "$LOCALE")"
else LOCALE_LIST="$(locale -a | grep -i "$LOCALE")"
fi
fi
done
fi
done
unset ADD_CHK_BOX_EDIT_DB
# DGVOODOO2 info:
PW_USE_DGVOODOO2_INFO=$(eval_gettext 'Enable dgVoodoo2. Forced use all dgVoodoo2 libs (Glide 2.11-3.1, DirectDraw 1-7, Direct3D 2-9) on all 3D API. For WineD3D OpenGL need use WineLG (For Gallium Nine and Zink use too)')
PW_DGV2_DISABLE_D3D_INFO=$(eval_gettext 'Do not use d3d8 and d3d9 dgVoodoo2 libraries. For some old games, using the example of Space Rangers, a bug with a black screen is corrected.')
PW_DGV2_16BIT_MODE_INFO=$(eval_gettext 'Forced use of 16bit screen mode. Solves the problem of launching old games, such as Moto Racer.')
PW_DGV2_USE_DX12_INFO=$(eval_gettext 'Use DirectX12 for dgVoodoo2. Doesnt always work better. (Working only on stable and newest 3D api)')
PW_DGV2_FASTMEMORY_INFO=$(eval_gettext 'Enable fast memory access. (Enable if games have poor performance, using Unreal 2 as an example)')
PW_DGV2_VRAM_INCREASE_INFO=$(eval_gettext 'Increase the amount of vram for dgVoodoo2 (Increases from 256 to 1024)')
PW_DGV2_FULLSCREEN_INFO=$(eval_gettext 'Render image based on monitor resolution. Can use if the game has a small interface size. Widescreen effect for 16:9')
PW_DGV2_FILTERING_INFO=$(eval_gettext 'Forced anisotropic filtering 16x in Direct3D games')
PW_DGV2_ANTIALIASING_INFO=$(eval_gettext 'Forced antialiasing 8x in Direct3D games')
PW_DGVOODOO2_INFO=$(eval_gettext 'Enable dgVoodoo2. Forced use all dgVoodoo2 libs (Glide 2.11-3.1, DirectDraw 1-7, Direct3D 2-9) on all 3D API. For WineD3D OpenGL need use WineLG (For Gallium Nine and Zink use too)')
PW_DINPUT_PROTOCOL_INFO=$(eval_gettext 'Force use DirectInput protocol instead of XInput')
PW_VKBASALT_INFO=$(eval_gettext 'Enable vkBasalt by default to improve graphics in games running on Vulkan. (The HOME hotkey disables vkbasalt)')
PW_NO_ESYNC_INFO=$(eval_gettext 'Do not use in-process synchronization primitives based on eventfd. (It is recommended not to change the value.)')
......@@ -2902,7 +2919,6 @@ pw_gui_for_edit_db () {
PW_USE_SHADER_CACHE_INFO=$(eval_gettext 'Use WINE shader caching (disable only if there are microfreezes in the game)')
PW_WINE_FULLSCREEN_FSR_INFO=$(eval_gettext 'Works while using any version of ProtonGE in full screen mode at a resolution below the standard screen')
PW_USE_FAKE_DLSS_INFO=$(eval_gettext 'Enable DLSS translator in FSR 2 in DirectX 12 games (CyberFSR2)')
PW_USE_FAKE_DLSS_3_INFO=$(eval_gettext 'Enable DLSS translator in FSR 3 in DirectX 12 games (Experimental project dlssg-to-fsr3)')
PW_USE_EAC_AND_BE_INFO=$(eval_gettext 'Enable Easy Anti-Cheat and BattlEye Anti-Cheat runtimes (required if game used this anti-cheats)')
PW_REDUCE_PULSE_LATENCY_INFO=$(eval_gettext 'Reduce pulseaudio latency to fix intermittent sound')
PW_USE_US_LAYOUT_INFO=$(eval_gettext 'Forced use of the us layout (useful for games in which the control works correctly only on the us layout)')
......@@ -2910,31 +2926,11 @@ pw_gui_for_edit_db () {
PW_USE_SYSTEM_VK_LAYERS_INFO=$(eval_gettext 'Use system mangohud, vkBasalt, obs-vkcapture and other applications using vulkan layers')
PW_USE_OBS_VKCAPTURE_INFO=$(eval_gettext 'Enable the ability to write to OBS Studio using obs-vkcapture (ATTENTION: the forced use of system mangohud, vkBasalt, obs-vkcapture and other applications using vulkan layers will be enabled)')
PW_DISABLE_COMPOSITING_INFO=$(eval_gettext 'Disable desktop compositing (effects). It often improves performance.')
PW_USE_GAMESCOPE_INFO=$(eval_gettext '<b>Super + F :</b> Toggle fullscreen
<b>Super + N :</b> Toggle nearest neighbour filtering
<b>Super + U :</b> Toggle FSR upscaling
<b>Super + Y :</b> Toggle NIS upscaling
<b>Super + I :</b> Increase FSR sharpness by 1
<b>Super + O :</b> Decrease FSR sharpness by 1
<b>Super + S :</b> Take screenshot (currently goes to /tmp/gamescope_DATE.png)
<b>Super + G :</b> Toggle keyboard grab
<b>Super + C :</b> Update clipboard')
edit_db_field_add () {
for int_to_boole in $@ ; do
if [ "${!int_to_boole}" == "1" ]
then export ${int_to_boole}="TRUE"
else export ${int_to_boole}="FALSE"
fi
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
int_to_boole_non_pw="$(echo ${int_to_boole} | sed 's/^PW_//' | sed 's/_/ /g' )"
ADD_CHK_BOX_EDIT_DB+="--field=${CHKBOX_SPACE}${int_to_boole_non_pw}!${!TMP_HELP_FOR_GUI}:${THEME_CHKBOX}%${!int_to_boole}%"
done
}
edit_db_field_add $@
old_IFS=$IFS
IFS="%"
"${pw_yad_v13_0}" --plug=$KEY_EDIT_DB_GUI --tabnum="1" --form --separator=" " --columns=4 ${ADD_CHK_BOX_EDIT_DB} \
"${pw_yad}" --plug=$KEY_EDIT_DB_GUI --tabnum="1" --form --separator=" " --columns=3 ${ADD_CHK_BOX_EDIT_DB} \
1> "${PORT_WINE_TMP_PATH}/tmp_output_yad_edit_db" 2>/dev/null &
IFS=$old_IFS
......@@ -2944,44 +2940,34 @@ pw_gui_for_edit_db () {
*) ADD_WINVER_EDIT_DB="10!7!XP" ;;
esac
"${pw_yad_v13_0}" --plug=$KEY_EDIT_DB_GUI --tabnum="2" --form --separator="%" --columns=1 --scroll \
"${pw_yad}" --plug=$KEY_EDIT_DB_GUI --tabnum="2" --form --separator="%" --columns=1 \
--field="$(eval_gettext "Change the version of <b>WINDOWS</b> emulation")!$(eval_gettext "Changing the <b>WINDOWS</b> emulation version may be required to run older games. <b>WINDOWS</b> versions below 10 do not support new games with DirectX 12") :CB" "${ADD_WINVER_EDIT_DB}" \
--field="$(eval_gettext "AUTOINSTALL WITH <b>WINETRICKS</b>")!$(eval_gettext "Automatically install with <b>WINETRICKS</b> additional libraries required to run the game/program. List of libraries separated by spaces") :CBE" "${PW_DLL_INSTALL}!vcrun2019 corefonts lucida" \
--field="$(eval_gettext "Forced to use/disable libraries")!$(eval_gettext "Forced to use/disable the library only for the given application. (There are examples in the drop-down list)
A brief instruction:
* libraries are written <b>WITHOUT</b> the .dll file extension
* libraries are separated by semicolons - <b>;</b>
* library=n - use the <b>WINDOWS</b> (third-party) library
* library=b - use <b>WINE</b> (built-in) library
* library=n,b - use <b>WINDOWS</b> library and then <b>WINE</b>
* library=b,n - use <b>WINE</b> library and then <b>WINDOWS</b>
* library= - disable the use of this library") :CBE" "${WINEDLLOVERRIDES}!libglesv2=!d3dx9_36,d3dx9_42=n,b;mfc120=b,n" \
* libraries are written <b>WITHOUT</b> the .dll file extension
* libraries are separated by semicolons - <b>;</b>
* library=n - use the <b>WINDOWS</b> (third-party) library
* library=b - use <b>WINE</b> (built-in) library
* library=n,b - use <b>WINDOWS</b> library and then <b>WINE</b>
* library=b,n - use <b>WINE</b> library and then <b>WINDOWS</b>
* library= - disable the use of this library") :CBE" "${WINEDLLOVERRIDES}!libglesv2=!d3dx9_36,d3dx9_42=n,b;mfc120=b,n" \
--field=":LBL" "" \
--field="$(eval_gettext "ADD ARGUMENTS FOR .EXE FILE")!$(eval_gettext "Adding an argument after the <b>.exe</b> file, just like you would add an argument in a shortcut on a <b>WINDOWS </b> system") :CBE" "\\${LAUNCH_PARAMETERS[@]}!-dx11 -skipintro 1" \
--field=":LBL" "" \
--field="$(eval_gettext "Limit the use of processor cores")!$(eval_gettext "Limiting the number of CPU cores is useful for Unity games (It is recommended to set the value equal to 8)") :CB" "${CPU_LIMIT_VAR}!disabled!${GET_LOGICAL_CORE}" \
--field="$(eval_gettext "Choose a graphics card to run the game (in user.conf)")!$(eval_gettext "Select which video card will be used to run the game (used for all running games and programs in PortProton)") :CB" "${GPU_VAR}!disabled!${GET_GPU_NAMES}" \
--field="$(eval_gettext "Add arguments for GAMESCOPE:")!$(eval_gettext "
<b>-W, -H:</b> set the resolution used by gamescope. Resizing the gamescope window will update these settings. Ignored in embedded mode. If -H is specified but -W isn't, a 16:9 aspect ratio is assumed. Defaults to 1280×720.
<b>-w, -h:</b> set the resolution used by the game. If -h is specified but -w isn't, a 16:9 aspect ratio is assumed. Defaults to the values specified in -W and -H.
<b>-r:</b> set a frame-rate limit for the game. Specified in frames per second. Defaults to unlimited.
<b>-o:</b> set a frame-rate limit for the game when unfocused. Specified in frames per second. Defaults to unlimited.
<b>-F fsr:</b> use AMD FidelityFX™ Super Resolution 1.0 for upscaling.
<b>-F nis:</b> use NVIDIA Image Scaling v1.0.3 for upscaling.
<b>-S integer:</b> use integer scaling.
<b>-S stretch:</b> use stretch scaling, the game will fill the window. (e.g. 4:3 to 16:9).
<b>-b:</b> create a border-less window.
<b>-f:</b> create a full-screen window.") :CBE" "\\${GAMESCOPE_ARGS}!-r 60 -F fsr!" \
--field="$(eval_gettext "Forcibly select the OpenGL version for the game")!$(eval_gettext "You can select the required OpenGL version, some games require a forced Compatibility Profile (COMPAT). (Examples are in the drop-down list)") :CB" "${PW_MESA_GL_VERSION_OVERRIDE}!disabled!4.6COMPAT!4.6!4.5COMPAT!4.5!3.3COMPAT!3.3" \
--field="$(eval_gettext "Forcibly select the VKD3D feature level")!$(eval_gettext "You can set a forced feature level VKD3D for games on DirectX12") :CB" "${PW_VKD3D_FEATURE_LEVEL}!disabled!12_2!12_1!12_0!11_1!11_0" \
--field="$(eval_gettext "Force certain locale for an app")!$(eval_gettext "Fixes encoding issues in legacy software") :CB" "${PW_LOCALE_SELECT}!disabled!$LOCALE_LIST" \
2>/dev/null 1> "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" 2>/dev/null &
"${pw_yad_v13_0}" --paned --key="$KEY_EDIT_DB_GUI" --title "EDIT_DB" --text-align=center --height="700" \
--text "$(eval_gettext "Change settings in database file for") <b>${PORTWINE_DB}</b>\n $(eval_gettext "<b>NOTE:</b> To display help for each item, simply hover your mouse over the text")" --separator=" " \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
--field="$(eval_gettext "Force certain locale for an app:")!$(eval_gettext "Fixes encoding issues in legacy software") :CB" "${PW_LOCALE_SELECT}!disabled!$LOCALE_LIST" \
1> "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" 2>/dev/null &
"${pw_yad}" --notebook --key="$KEY_EDIT_DB_GUI" --title "$(eval_gettext "EDIT DB")" --text-align=center \
--text "$(eval_gettext "Change settings in database file for") <b>${PORTWINE_DB}</b>\n $(eval_gettext "<b>NOTE:</b> To display help for each item, simply hover your mouse over the text")" \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --separator=" " --expand --fixed --center \
--tab="$(eval_gettext "MAIN")"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" \
--tab="$(eval_gettext "ADVANCED")"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" \
--button="$(eval_gettext "CANCEL THE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Cancel the current changes and return to the previous menu")":1 \
--button="$(eval_gettext "RESET SETTINGS")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Restore default settings")":2 \
--button="$(eval_gettext "OPEN THE SETTINGS FILE")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Open the <b>.ppdb</b> settings file in a system text editor to view and change variables manually")":150 \
......@@ -3001,16 +2987,7 @@ A brief instruction:
esac
output_yad_edit_db=($(cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_edit_db"))
bool_from_yad=0
edit_db_field_read () {
for boole_to_int in $@ ; do
export ${boole_to_int}=${output_yad_edit_db[$bool_from_yad]}
if [ "${!boole_to_int}" == "TRUE" ]
then export ${boole_to_int}="1"
else export ${boole_to_int}="0"
fi
export bool_from_yad=$(( ${bool_from_yad} + 1 ))
done
}
edit_db_field_read $@
PW_WINDOWS_VER="$(cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" | awk -F"%" '{print $1}')"
PW_DLL_INSTALL="$(cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" | awk -F"%" '{print $2}')"
......@@ -3018,11 +2995,9 @@ A brief instruction:
LAUNCH_PARAMETERS="$(cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" | awk -F"%" '{print $5}')"
CPU_LIMIT="$(cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" | awk -F"%" '{print $7}')"
PW_GPU_USE="$(cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" | awk -F"%" '{print $8}')"
GAMESCOPE_ARGS="$(cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" | awk -F"%" '{print $9}')"
PW_MESA_GL_VERSION_OVERRIDE="$(cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" | awk -F"%" '{print $10}')"
PW_VKD3D_FEATURE_LEVEL="$(cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" | awk -F"%" '{print $11}')"
PW_LOCALE_SELECT="$(cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" | awk -F"%" '{print $12}')"
# PW_AMD_VULKAN_USE="`cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" | awk -F"%" '{print $10}'`"
PW_MESA_GL_VERSION_OVERRIDE="$(cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" | awk -F"%" '{print $9}')"
PW_VKD3D_FEATURE_LEVEL="$(cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" | awk -F"%" '{print $10}')"
PW_LOCALE_SELECT="$(cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" | awk -F"%" '{print $11}')"
if [[ "${CPU_LIMIT}" != "disabled" ]] ; then
export PW_WINE_CPU_TOPOLOGY="${CPU_LIMIT}:$(seq -s, 0 $((${CPU_LIMIT} - 1)))"
......@@ -3059,62 +3034,143 @@ A brief instruction:
esac
}
# GUI GAMESCOPE
gui_gamescope () {
unset ADD_CHK_BOX_GAMESCOPE
PW_USE_GAMESCOPE_INFO=$(eval_gettext '<b>Super + F :</b> Toggle fullscreen
<b>Super + N :</b> Toggle nearest neighbour filtering
<b>Super + U :</b> Toggle FSR upscaling
<b>Super + Y :</b> Toggle NIS upscaling
<b>Super + I :</b> Increase FSR sharpness by 1
<b>Super + O :</b> Decrease FSR sharpness by 1
<b>Super + S :</b> Take screenshot (currently goes to /tmp/gamescope_DATE.png)
<b>Super + G :</b> Toggle keyboard grab
<b>Super + C :</b> Update clipboard')
old_IFS=$IFS
IFS="%"
"${pw_yad}" --plug=$KEY_GAMESCOP_GUI --form --separator=" " --columns=3 ${ADD_CHK_BOX_GAMESCOPE} \
1> "${PORT_WINE_TMP_PATH}/tmp_output_yad_edit_db" 2>/dev/null &
IFS=$old_IFS
output_yad_gamescope="$("${pw_yad}" --title "GAMESCOPE" --text-align=center --height="350" \
--text "$(eval_gettext "Change settings gamescope for") <b>${PORTWINE_DB}</b>\n $(eval_gettext "<b>NOTE:</b> To display help for each item, simply hover your mouse over the text")" \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --separator=" " --expand --form --center --fixed \
--field="$(eval_gettext "Add arguments for GAMESCOPE:")!$(eval_gettext "
<b>-W, -H:</b> set the resolution used by gamescope. Resizing the gamescope window will update these settings. Ignored in embedded mode. If -H is specified but -W isn't, a 16:9 aspect ratio is assumed. Defaults to 1280×720.
<b>-w, -h:</b> set the resolution used by the game. If -h is specified but -w isn't, a 16:9 aspect ratio is assumed. Defaults to the values specified in -W and -H.
<b>-r:</b> set a frame-rate limit for the game. Specified in frames per second. Defaults to unlimited.
<b>-o:</b> set a frame-rate limit for the game when unfocused. Specified in frames per second. Defaults to unlimited.
<b>-F fsr:</b> use AMD FidelityFX™ Super Resolution 1.0 for upscaling.
<b>-F nis:</b> use NVIDIA Image Scaling v1.0.3 for upscaling.
<b>-S integer:</b> use integer scaling.
<b>-S stretch:</b> use stretch scaling, the game will fill the window. (e.g. 4:3 to 16:9).
<b>-b:</b> create a border-less window.
<b>-f:</b> create a full-screen window.") :CBE" "\\${GAMESCOPE_ARGS}!-r 60 -F fsr!" \
--button="$(eval_gettext "CANCEL THE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Cancel the current changes and return to the previous menu")":1 \
--button="$(eval_gettext "DISABLE") GAMESCOPE"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Disable GameScope and go to the previous menu")":162 \
--button="$(eval_gettext "SAVE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Save the current changes, and go to the previous menu")":166 2>/dev/null)"
YAD_STATUS="$?"
export SKIP_CHECK_UPDATES=1
GAMESCOPE_ARGS="$(echo "$output_yad_gamescope" | awk -F"%" '{print $1}')"
edit_db_from_gui
case "${YAD_STATUS}" in
1|252)
export SKIP_CHECK_UPDATES=1
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
;;
162)
export PW_USE_GAMESCOPE=0
edit_db_from_gui PW_USE_GAMESCOPE
export SKIP_CHECK_UPDATES=1
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
;;
166)
export PW_USE_GAMESCOPE=1
;;
esac
edit_db_from_gui PW_USE_GAMESCOPE GAMESCOPE_ARGS
export SKIP_CHECK_UPDATES=1
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
}
# GUI GET OTHER WINE
gui_proton_downloader () {
unset VERSION_WINE_GIT VERSION_INSTALLED_WINE URL_VERSION_PROTON_GIT GIVE_WINE_URL
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_wine_kron4ek_git"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_wine_ge_custom_git"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_installed_wine"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_set_wine"
if [[ "$PW_WINE_USE" == PROTON_LG ]]
then PW_WINE_USE="${PW_PROTON_LG_VER}"
elif [[ "$PW_WINE_USE" == WINE_*_LG ]] || [[ "$PW_WINE_USE" == WINE_LG ]]
then PW_WINE_USE="${PW_WINE_LG_VER}"
fi
export PW_WINE_USE
if [[ "$1" == "silent" ]] \
&& [[ -d "${PORT_WINE_PATH}/data/dist/${PW_WINE_USE}" ]] ; then
return 0
fi
pw_start_progress_bar_block "$(eval_gettext "Check new version WINE...")"
# PROTON_GE
export PROTON_GE_GIT=($(curl -s "https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases" | grep "browser_download_url.*\.tar\.gz" | cut -d \" -f 4))
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
if [[ ! -z "${PROTON_GE_GIT}" ]] ; then
for PGEGIT in ${PROTON_GE_GIT[@]} ; do
echo ${PGEGIT} | awk -F/ '{print $NF}' | sed 's/.tar.gz//' >> "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
done
sed -i '/Proton-6.5-GE-2/,$d' "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
sed -i '/github-action/d' "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
sed -i '/^$/d' "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
fi
# WINE_KRON4EK
export WINE_KRON4EK=($(curl -s "https://api.github.com/repos/Kron4ek/Wine-Builds/releases" | grep "browser_download_url.*\.tar\.xz" | cut -d \" -f 4))
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_wine_kron4ek_git"
if [[ ! -z "${WINE_KRON4EK}" ]] ; then
for PGEGIT in ${WINE_KRON4EK[@]} ; do
echo ${PGEGIT} | awk -F/ '{print $NF}' | sed 's/.tar.xz//' >> "${PORT_WINE_TMP_PATH}/tmp_wine_kron4ek_git"
done
sed -i '/6.3/,$d' "${PORT_WINE_TMP_PATH}/tmp_wine_kron4ek_git"
sed -i '/-x86/d' "${PORT_WINE_TMP_PATH}/tmp_wine_kron4ek_git"
sed -i '/^$/d' "${PORT_WINE_TMP_PATH}/tmp_wine_kron4ek_git"
fi
# WINE_GE_CUSTOM
export WINE_GE_CUSTOM=($(curl -s "https://api.github.com/repos/GloriousEggroll/wine-ge-custom/releases" | grep "browser_download_url.*\.tar\.xz" | cut -d \" -f 4))
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_wine_ge_custom_git"
if [[ ! -z "${WINE_GE_CUSTOM}" ]] ; then
for PGEGIT in ${WINE_GE_CUSTOM[@]} ; do
echo ${PGEGIT} | awk -F/ '{print $NF}' | sed 's/.tar.xz//' >> "${PORT_WINE_TMP_PATH}/tmp_wine_ge_custom_git"
done
sed -i '/6.23/,$d' "${PORT_WINE_TMP_PATH}/tmp_wine_ge_custom_git"
sed -i '/^$/d' "${PORT_WINE_TMP_PATH}/tmp_wine_ge_custom_git"
fi
# PROTON_LG
export PROTON_PW_GIT=($(curl -s "https://api.github.com/repos/Castro-Fidel/wine_builds/releases" | grep "browser_download_url.*\.tar\.xz" | cut -d \" -f 4 | sort -r))
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
if [[ ! -z "${PROTON_PW_GIT}" ]] ; then
for PPWGIT in ${PROTON_PW_GIT[@]} ; do
echo ${PPWGIT} | awk -F/ '{print $NF}' | sed 's/.tar.xz//' >> "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
done
sed -i /${PW_WINE_LG_VER}/d "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
sed -i '/plugins/d' "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
sed -i '/^$/d' "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
fi
pw_stop_progress_bar
if [[ -z "${PROTON_PW_GIT}" ]] ; then
yad_error "$(eval_gettext "Error: check wine.")"
export SKIP_CHECK_UPDATES=1
......@@ -3131,33 +3187,54 @@ gui_proton_downloader () {
done
popd 1>/dev/null || fatal
[[ -z "$(cat "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git")" ]] && echo "nothing" >"${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
[[ -z "$(cat "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git")" ]] && echo "nothing" >"${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
[[ -z "$(cat "${PORT_WINE_TMP_PATH}/tmp_wine_kron4ek_git")" ]] && echo "nothing" >"${PORT_WINE_TMP_PATH}/tmp_wine_kron4ek_git"
[[ -z "$(cat "${PORT_WINE_TMP_PATH}/tmp_wine_ge_custom_git")" ]] && echo "nothing" >"${PORT_WINE_TMP_PATH}/tmp_wine_ge_custom_git"
TMP_PROTON_PW_GIT="$(sed 's/^/FALSE /' "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git" | tr '\n' ' ')"
TMP_PROTON_GE_GIT="$(sed 's/^/FALSE /' "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git" | tr '\n' ' ')"
TMP_PROTON_KR_GIT="$(sed 's/^/FALSE /' "${PORT_WINE_TMP_PATH}/tmp_wine_kron4ek_git" | tr '\n' ' ')"
TMP_PROTON_CU_GIT="$(sed 's/^/FALSE /' "${PORT_WINE_TMP_PATH}/tmp_wine_ge_custom_git" | tr '\n' ' ')"
ls -l ${PORT_WINE_PATH}/data/dist | awk '{print $9}' | sed "/$PW_PROTON_LG_VER/d" | sed "/$PW_WINE_LG_VER/d" | sed '/^$/d' 1>${PORT_WINE_TMP_PATH}/tmp_installed_wine
TMP_INSTALLED_WINE="$(sed 's/^/FALSE /' "${PORT_WINE_TMP_PATH}/tmp_installed_wine" | tr '\n' ' ')"
# Installed wine
ls -l ${PORT_WINE_PATH}/data/dist | awk '{print $9}' | sed '/^$/d' 1> ${PORT_WINE_TMP_PATH}/tmp_installed_wine
if [[ "$1" != "silent" ]] ; then
# GUI
export KEY_WINE=$RANDOM
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_kron4ek_set"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_set"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_ge_custom_set"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set"
"${pw_yad_v13_0}" --plug=$KEY_WINE --tabnum=1 --list --separator="" --listen \
--column "$(eval_gettext "Select WINE for download:")" < "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git" 1> "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set" 2>/dev/null &
"${pw_yad_v13_0}" --plug=$KEY_WINE --tabnum=2 --list --separator="" --listen \
--column "$(eval_gettext "Select WINE for download:")" < "${PORT_WINE_TMP_PATH}/tmp_wine_kron4ek_git" 1> "${PORT_WINE_TMP_PATH}/tmp_kron4ek_set" 2>/dev/null &
"${pw_yad_v13_0}" --plug=$KEY_WINE --tabnum=3 --list --separator="" --listen \
--column "$(eval_gettext "Select WINE for download:")" < "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git" 1> "${PORT_WINE_TMP_PATH}/tmp_proton_set" 2>/dev/null &
"${pw_yad_v13_0}" --plug=$KEY_WINE --tabnum=4 --list --separator="" --listen \
--column "$(eval_gettext "Select WINE for download:")" < "${PORT_WINE_TMP_PATH}/tmp_wine_ge_custom_git" 1> "${PORT_WINE_TMP_PATH}/tmp_ge_custom_set" 2>/dev/null &
"${pw_yad_v13_0}" --plug=$KEY_WINE --tabnum=5 --list --separator="" --listen \
--column "$(eval_gettext "Select installed WINE for delete:")" < "${PORT_WINE_TMP_PATH}/tmp_installed_wine" 1> "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set" 2>/dev/null &
"${pw_yad_v13_0}" --key=$KEY_WINE --notebook --width=500 --height=600 --text-align=center --no-button \
"${pw_yad}" --plug=$KEY_WINE --tabnum=1 --list --checklist --separator="" \
--column "$(eval_gettext "Set")" \
--column "$(eval_gettext "Select WINE for download:")" \
$TMP_PROTON_PW_GIT \
1>> "${PORT_WINE_TMP_PATH}/tmp_set_wine" \
2>/dev/null &
"${pw_yad}" --plug=$KEY_WINE --tabnum=2 --list --checklist --separator="" \
--column "$(eval_gettext "Set")" \
--column "$(eval_gettext "Select WINE for download:")" \
$TMP_PROTON_KR_GIT \
1>> "${PORT_WINE_TMP_PATH}/tmp_set_wine" \
2>/dev/null &
"${pw_yad}" --plug=$KEY_WINE --tabnum=3 --list --checklist --separator="" \
--column "$(eval_gettext "Set")" \
--column "$(eval_gettext "Select WINE for download:")" \
$TMP_PROTON_GE_GIT \
1>> "${PORT_WINE_TMP_PATH}/tmp_set_wine" \
2>/dev/null &
"${pw_yad}" --plug=$KEY_WINE --tabnum=4 --list --checklist --separator="" \
--column "$(eval_gettext "Set")" \
--column "$(eval_gettext "Select WINE for download:")" \
$TMP_PROTON_CU_GIT \
1>> "${PORT_WINE_TMP_PATH}/tmp_set_wine" \
2>/dev/null &
"${pw_yad}" --plug=$KEY_WINE --tabnum=5 --list --checklist --separator="" \
--column "$(eval_gettext "Set")" \
--column "$(eval_gettext "Select installed WINE for delete:")" \
$TMP_INSTALLED_WINE \
1> "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set" \
2>/dev/null &
"${pw_yad}" --key=$KEY_WINE --notebook --width=500 --height=600 --text-align=center \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --title "$(eval_gettext "WINE MANAGER")" --separator="" --expand \
--tab-pos=top \
--tab="PROTON-LG"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" \
......@@ -3174,99 +3251,94 @@ gui_proton_downloader () {
exit 0
fi
if [[ ! -z $(awk '{print $1}' "${PORT_WINE_TMP_PATH}/tmp_proton_set") ]] ; then
VERSION_WINE_GIT="$(cat "${PORT_WINE_TMP_PATH}/tmp_proton_set")"
elif [[ ! -z $(awk '{print $1}' "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set") ]] ; then
VERSION_WINE_GIT="$(cat "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set")"
elif [[ ! -z $(awk '{print $1}' "${PORT_WINE_TMP_PATH}/tmp_kron4ek_set") ]] ; then
VERSION_WINE_GIT="$(cat "${PORT_WINE_TMP_PATH}/tmp_kron4ek_set")"
elif [[ ! -z $(awk '{print $1}' "${PORT_WINE_TMP_PATH}/tmp_ge_custom_set") ]] ; then
VERSION_WINE_GIT="$(cat "${PORT_WINE_TMP_PATH}/tmp_ge_custom_set")"
elif [[ ! -z $(awk '{print $1}' "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set") ]] ; then
VERSION_INSTALLED_WINE="$(cat "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set")"
else
print_info "Nothing to do."
export SKIP_CHECK_UPDATES=1
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
if [[ ! -z $(cat "${PORT_WINE_TMP_PATH}/tmp_set_wine") ]] ; then
VERSION_WINE_GIT="$(sed 's/TRUE//' "${PORT_WINE_TMP_PATH}/tmp_set_wine")"
fi
if [[ "${VERSION_WINE_GIT}" == "nothing" ]] ; then
if [[ ! -z $(cat "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set") ]] ; then
VERSION_INSTALLED_WINE="$(sed 's/TRUE//' "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set")"
fi
if [[ -z "$VERSION_WINE_GIT" ]] \
&& [[ -z "$VERSION_INSTALLED_WINE" ]]
then
print_info "Nothing to do."
export SKIP_CHECK_UPDATES=1
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
fi
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_wine_kron4ek_git"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_wine_ge_custom_git"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_installed_wine"
elif [[ "$1" == "silent" ]] && [[ ! -z "$2" ]] ; then
VERSION_WINE_GIT="$2"
fi
for GIVE_WINE_URL in ${PROTON_GE_GIT[@]} ${PROTON_PW_GIT[@]} ${WINE_KRON4EK[@]} ${WINE_GE_CUSTOM[@]} ; do
if [ ! -z $(echo ${GIVE_WINE_URL} | grep -i "${VERSION_WINE_GIT}") ] ; then
export URL_VERSION_PROTON_GIT="${GIVE_WINE_URL}"
break
fi
done
if [[ ! -z "${VERSION_INSTALLED_WINE}" ]]; then
try_remove_dir "${PORT_WINE_PATH}/data/dist/${VERSION_INSTALLED_WINE}"
unset VERSION_INSTALLED_WINE
export SKIP_CHECK_UPDATES=1
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
fi
print_info "Download and install ${VERSION_WINE_GIT}..."
PW_WINE_ARCHIVE="$(echo "${URL_VERSION_PROTON_GIT}" | awk -F'/' '{print $NF}' | awk -F'.tar' '{print $1}')"
FILENAME="$(basename "${URL_VERSION_PROTON_GIT}")"
if try_download "${URL_VERSION_PROTON_GIT}" "${PORT_WINE_PATH}/data/tmp/$FILENAME" ; then
for archive_type in "gz" "xz" ; do
if [ -f "${PORT_WINE_PATH}/data/tmp/${PW_WINE_ARCHIVE}.tar.${archive_type}" ] ; then
if unpack "${PORT_WINE_PATH}/data/tmp/${PW_WINE_ARCHIVE}.tar.${archive_type}" "${PORT_WINE_PATH}/data/dist/" ; then
try_remove_file "${PORT_WINE_PATH}/data/tmp/${PW_WINE_ARCHIVE}.tar.${archive_type}"
if [ ! -z "${portwine_exe}" ]; then
PW_WINE_USE="$(echo "${VERSION_WINE_GIT}" | tr [[:lower:]] [[:upper:]])"
edit_db_from_gui PW_WINE_USE
fi
pw_download_get_wine () {
print_info "Download and install ${VERSION_WINE_GIT}..."
FILENAME="$(basename "${URL_VERSION_PROTON_GIT}")"
if try_download "${URL_VERSION_PROTON_GIT}" "${PORT_WINE_PATH}/data/tmp/$FILENAME" ; then
if unpack "${PORT_WINE_PATH}/data/tmp/${FILENAME}" "${PORT_WINE_PATH}/data/dist/" ; then
try_remove_file "${PORT_WINE_PATH}/data/tmp/${FILENAME}"
if [ ! -z "${portwine_exe}" ]; then
PW_WINE_USE="$(echo "${VERSION_WINE_GIT}" | tr [[:lower:]] [[:upper:]])"
edit_db_from_gui PW_WINE_USE
fi
else
try_remove_file "${PORT_WINE_PATH}/data/tmp/${FILENAME}"
try_remove_dir "${PORT_WINE_PATH}/data/dist/${FILENAME}"
if yad_error_download
then gui_proton_downloader $@
else
try_remove_file "${PORT_WINE_PATH}/data/tmp/${PW_WINE_ARCHIVE}.tar.${archive_type}"
try_remove_dir "${PORT_WINE_PATH}/data/dist/${PW_WINE_ARCHIVE}"
if yad_error_download
then gui_proton_downloader $@
else
export PW_WINE_VER="$PW_WINE_USE"
init_wine_ver
fi
export PW_WINE_VER="$PW_WINE_USE"
init_wine_ver
fi
fi
done
else
if yad_error_download
then gui_proton_downloader $@
else
export PW_WINE_VER="$PW_WINE_USE"
init_wine_ver
if yad_error_download
then gui_proton_downloader $@
else
export PW_WINE_VER="$PW_WINE_USE"
init_wine_ver
fi
fi
}
if [[ ! -z "${VERSION_INSTALLED_WINE}" ]] ; then
for REMOVE_WINE in ${VERSION_INSTALLED_WINE} ; do
try_remove_dir "${PORT_WINE_PATH}/data/dist/${REMOVE_WINE}"
done
if [[ -z "$VERSION_WINE_GIT" ]] ; then
export SKIP_CHECK_UPDATES=1
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
fi
fi
if [[ "$1" != "silent" ]] ; then
for GIVE_ALL_WINE in $VERSION_WINE_GIT ; do
for GIVE_WINE_URL in ${PROTON_GE_GIT[@]} ${PROTON_PW_GIT[@]} ${WINE_KRON4EK[@]} ${WINE_GE_CUSTOM[@]} ; do
if [ ! -z $(echo ${GIVE_WINE_URL} | grep -i "${GIVE_ALL_WINE}") ] ; then
export URL_VERSION_PROTON_GIT="${GIVE_WINE_URL}"
fi
done
pw_download_get_wine
done
export SKIP_CHECK_UPDATES=1
edit_db_from_gui
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
else
init_wine_ver
for GIVE_WINE_URL in ${PROTON_GE_GIT[@]} ${PROTON_PW_GIT[@]} ${WINE_KRON4EK[@]} ${WINE_GE_CUSTOM[@]} ; do
if [ ! -z $(echo ${GIVE_WINE_URL} | grep -i "${PW_WINE_USE}") ] ; then
export URL_VERSION_PROTON_GIT="${GIVE_WINE_URL}"
fi
done
pw_download_get_wine
fi
}
export -f gui_proton_downloader
# GUI VKBASALT
gui_vkBasalt () {
KEY_FX_GUI=$RANDOM
FILE_VKBASALT_CONF="${PORT_WINE_PATH}/data/vkBasalt.conf"
......@@ -3352,19 +3424,19 @@ gui_vkBasalt () {
fi
export old_IFS=$IFS
export IFS="%"
"${pw_yad_v13_0}" --plug=$KEY_FX_GUI --tabnum="1" --form --columns=4 --separator=" " \
"${pw_yad}" --plug=$KEY_FX_GUI --tabnum="1" --form --columns=4 --separator=" " \
--text-align=center --text="$(eval_gettext "VkBasalt settings for adding effects to games running under Vulkan. (The <b>HOME</b> key disables vkbasalt)\n<b>NOTE:</b> To display help for each item, simply hover over the text\n")" \
${ADD_GUI_FX} 1> "${PORT_WINE_TMP_PATH}/tmp_yad_basalt_set" 2>/dev/null &
export IFS="${old_IFS}"
"${pw_yad_v13_0}" --plug=$KEY_FX_GUI --tabnum="2" --separator=" " --form \
"${pw_yad}" --plug=$KEY_FX_GUI --tabnum="2" --separator=" " --form \
--field="AMD FidelityFX - Contrast Adaptive Sharpening"!"$(eval_gettext "AMD FidelityFX - CAS is designed to dramatically improve texture sharpness without additional modification settings for games, with minimal loss of performance. (For older games it is recommended to set value = 100)")":SCL "${VKBASALT_FFX_CAS_GUI}" \
1> "${PORT_WINE_TMP_PATH}/tmp_yad_cas_set" 2>/dev/null &
"${pw_yad_v13_0}" --paned --key="$KEY_FX_GUI" --height="625" --title="vkBasalt" --center \
"${pw_yad}" --paned --key="$KEY_FX_GUI" --center --fixed --title="vkBasalt" \
--separator=" " --window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
--button="$(eval_gettext "CANCEL THE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Cancel the current changes and return to the previous menu")":1 \
--button="$(eval_gettext "DISABLE VKBASALT")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Disable vkBasalt and go to the previous menu")":180 \
--button="$(eval_gettext "DISABLE") VKBASALT"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Disable vkBasalt and go to the previous menu")":180 \
--button="$(eval_gettext "SAVE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Save the current changes, and go to the previous menu")":182 2>/dev/null
YAD_VKBASALT_STATUS="$?"
case "${YAD_VKBASALT_STATUS}" in
......@@ -3404,6 +3476,7 @@ gui_vkBasalt () {
exit 0
}
# GUI MANGOHUD
gui_MangoHud () {
KEY_MH_GUI=$RANDOM
LIST_MH=(
......@@ -3507,21 +3580,21 @@ gui_MangoHud () {
done
old_IFS=$IFS && IFS="%"
"${pw_yad_v13_0}" --plug=$KEY_MH_GUI --tabnum="1" --form --columns=4 --separator=" " --text-align=center \
"${pw_yad}" --plug=$KEY_MH_GUI --tabnum="1" --form --columns=4 --separator=" " --text-align=center \
--text="$(eval_gettext "MangoHud settings (Keys <b>R_SHIFT + F12</b> disable MangoHud)\n<b>note:</b> To display help for each item, just hover the mouse cursor over the text.\n")" \
${ADD_GUI_MH} 1> "${PORT_WINE_TMP_PATH}/tmp_yad_mh_set" 2>/dev/null &
IFS=$old_IFS
old_IFS=$IFS && IFS="%"
"${pw_yad_v13_0}" --plug=$KEY_MH_GUI --tabnum="2" --form --columns=10 --separator=" " --text-align=center \
"${pw_yad}" --plug=$KEY_MH_GUI --tabnum="2" --form --columns=10 --separator=" " --text-align=center \
--text="$(eval_gettext "Enabling fps limitation with MANGOHUD tools built into PortProton (Keys <b>L_SHIFT + F1</b> Toggles fps limitation)\n")" \
${ADD_GUI_MH_FPS} 1> "${PORT_WINE_TMP_PATH}/tmp_yad_mh_fps_limit" 2>/dev/null &
IFS=$old_IFS
"${pw_yad_v13_0}" --paned --key="$KEY_MH_GUI" --height="650" --title="MangoHud" --center \
--separator=" " --window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
"${pw_yad}" --paned --key="$KEY_MH_GUI" --title="MangoHud" \
--separator=" " --window-icon="$PW_GUI_ICON_PATH/portproton.svg" --center --fixed \
--button="$(eval_gettext "CANCEL THE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Cancel the current changes and return to the previous menu")":1 \
--button="$(eval_gettext "DISABLE MANGOHUD")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Disable MangoHud and go to the previous menu")":182 \
--button="$(eval_gettext "DISABLE") MANGOHUD"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Disable MangoHud and go to the previous menu")":182 \
--button="$(eval_gettext "PREVIEW CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Start vkcube for preview changes")":184 \
--button="$(eval_gettext "SAVE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Save the current changes, and go to the previous menu")":186 2>/dev/null
YAD_MANGOHUD_STATUS="$?"
......@@ -3599,7 +3672,6 @@ gui_MangoHud () {
pw_init_runtime
pw_mangohud_check
${pw_runtime} \
env PATH="${PATH}" \
LD_PRELOAD="${PW_LD_PRELOAD}" \
VK_LAYER_PATH="${PW_VK_LAYER_PATH}" \
VK_INSTANCE_LAYERS="${PW_VK_INSTANCE_LAYERS}" \
......@@ -3612,14 +3684,97 @@ gui_MangoHud () {
exit 0
}
# GUI DGVOODOO2
gui_dgVoodoo2 () {
KEY_DGV2_GUI=$RANDOM
PW_LIST_DGV2="PW_DGV2_DISABLE_D3D PW_DGV2_16BIT_MODE PW_DGV2_USE_DX12 PW_DGV2_FASTMEMORY PW_DGV2_VRAM_INCREASE
PW_DGV2_FULLSCREEN
"
# DGVOODOO2 info:
PW_DGV2_DISABLE_D3D_INFO=$(eval_gettext 'Do not use d3d8 and d3d9 dgVoodoo2 libraries. For some old games, using the example of Space Rangers, a bug with a black screen is corrected.')
PW_DGV2_16BIT_MODE_INFO=$(eval_gettext 'Forced use of 16bit screen mode. Solves the problem of launching old games, such as Moto Racer.')
PW_DGV2_USE_DX12_INFO=$(eval_gettext 'DirectXD 11 is used by default (and recommended). Use DirectX12 for dgVoodoo2. Doesnt always work better. (Working only on stable dxvk and vkd3d)')
PW_DGV2_FASTMEMORY_INFO=$(eval_gettext 'Enable fast memory access. (Enable if games have poor performance, using Unreal 2 as an example)')
PW_DGV2_VRAM_INCREASE_INFO=$(eval_gettext 'Increase the amount of vram for dgVoodoo2 (Increases from 256 to 1024)')
PW_DGV2_FULLSCREEN_INFO=$(eval_gettext 'Render image based on monitor resolution. Can use if the game has a small interface size. Widescreen effect for 16:9')
unset ADD_CHK_BOX_EDIT_DB output_yad_edit_db
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_yad_dgv2_set"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_yad_dgv2_set_cb"
edit_db_field_add_dgv2 () {
for int_to_boole in $@ ; do
if [ "${!int_to_boole}" == "1" ]
then export ${int_to_boole}="TRUE"
else export ${int_to_boole}="FALSE"
fi
TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
int_to_boole_non_pw="$(echo ${int_to_boole} | sed 's/^PW_DGV2//' | sed 's/_/ /g' )"
ADD_CHK_BOX_EDIT_DB+="--field=${CHKBOX_SPACE}${int_to_boole_non_pw}!${!TMP_HELP_FOR_GUI}:${THEME_CHKBOX}%${!int_to_boole}%"
done
}
edit_db_field_add_dgv2 $PW_LIST_DGV2
old_IFS=$IFS
IFS="%"
"${pw_yad}" --plug=$KEY_DGV2_GUI --tabnum="1" --form --columns=3 ${ADD_CHK_BOX_EDIT_DB} \
--text="$(eval_gettext "dgVoodoo2 settings\n<b>NOTE:</b> To display help for each item, simply hover over the text\n")" \
--text-align=center --separator=" " \
1> "${PORT_WINE_TMP_PATH}/tmp_yad_dgv2_set" 2>/dev/null &
IFS=$old_IFS
"${pw_yad}" --plug=$KEY_DGV2_GUI --tabnum="2" --form --columns=2 --separator="%" \
--field="${CHKBOX_SPACE}FILTERING!$(eval_gettext "Forced anisotropic filtering in Direct3D games") :CB" "${PW_DGV2_FILTERING}!disabled!2!4!8!16" \
--field="${CHKBOX_SPACE}ANTIALIASING!$(eval_gettext "Forced antialiasing in Direct3D and Glide games") :CB" "${PW_DGV2_ANTIALIASING}!disabled!2!4!8" \
1> "${PORT_WINE_TMP_PATH}/tmp_yad_dgv2_set_cb" 2>/dev/null &
"${pw_yad}" --paned --key=$KEY_DGV2_GUI --height="350" --title="dgVoodoo2" \
--separator=" " --window-icon="$PW_GUI_ICON_PATH/portproton.svg" --center --fixed \
--button="$(eval_gettext "CANCEL THE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Cancel the current changes and return to the previous menu")":1 \
--button="$(eval_gettext "DISABLE") DGVOODOO2"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Disable dgVoodoo2 and go to the previous menu")":162 \
--button="$(eval_gettext "SAVE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Save the current changes, and go to the previous menu")":166 \
2>/dev/null
YAD_DGV2_STATUS="$?"
case "${YAD_DGV2_STATUS}" in
1|252)
export SKIP_CHECK_UPDATES=1
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
;;
162)
export PW_DGVOODOO2=0
edit_db_from_gui PW_DGVOODOO2
export SKIP_CHECK_UPDATES=1
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
;;
166)
export PW_DGVOODOO2=1
;;
esac
output_yad_edit_db=($(cat "${PORT_WINE_TMP_PATH}/tmp_yad_dgv2_set"))
bool_from_yad=0
edit_db_field_read $PW_LIST_DGV2 $@
PW_DGV2_FILTERING="$(cat "${PORT_WINE_TMP_PATH}/tmp_yad_dgv2_set_cb" | awk -F"%" '{print $1}')"
PW_DGV2_ANTIALIASING="$(cat "${PORT_WINE_TMP_PATH}/tmp_yad_dgv2_set_cb" | awk -F"%" '{print $2}')"
edit_db_from_gui $PW_LIST_DGV2 PW_DGVOODOO2 PW_DGV2_FILTERING PW_DGV2_ANTIALIASING
export SKIP_CHECK_UPDATES=1
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
}
# GUI CREATE SHORTCUT
portwine_create_shortcut () {
export GDK_BACKEND="x11"
pw_stop_progress_bar
[[ ! -e ${portwine_exe} ]] && return 1
pw_create_gui_png
if [[ "$1" == "block_name" ]] ; then
export name_desktop="${PORTPROTON_NAME}"
OUTPUT=$("${pw_yad}" --title="$(eval_gettext "Choices")" --form \
OUTPUT=$("${pw_yad}" --title="$(eval_gettext "Choices")" --form --gui-type=start \
--window-icon "$PW_GUI_ICON_PATH/portproton.svg" \
--image "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png" \
--field="$(eval_gettext "The shortcut will be created in the PortProton directory.")":LBL "" \
......@@ -3631,7 +3786,7 @@ portwine_create_shortcut () {
PW_YAD_OUT=$?
else
export name_desktop="${PORTPROTON_NAME}"
OUTPUT=$("${pw_yad}" --title="$(eval_gettext "Choices")" --form \
OUTPUT=$("${pw_yad}" --title="$(eval_gettext "Choices")" --form --gui-type=start \
--window-icon "$PW_GUI_ICON_PATH/portproton.svg" \
--image "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png" \
--field="$(eval_gettext "The shortcut will be created in the PortProton directory.")":LBL "" \
......@@ -3648,14 +3803,16 @@ portwine_create_shortcut () {
then name_desktop="$PORTWINE_CREATE_SHORTCUT_NAME"
else name_desktop=$(echo "$OUTPUT" | awk -F'|' '{print $2}')
fi
name_desktop="$(echo "${name_desktop}" | sed "s/\`//g" | sed "s/\"//g" | sed "s/'//g")"
name_desktop_png="${name_desktop// /_}"
create_menu_desktop_shortcut=$(echo "$OUTPUT" | awk -F'|' '{print $3}')
create_desktop_desktop_shortcut=$(echo "$OUTPUT" | awk -F'|' '{print $4}')
create_menu_steam_shortcut=$(echo "$OUTPUT" | awk -F'|' '{print $5}')
try_remove_file "${PORT_WINE_PATH}/${name_desktop}.desktop"
if [[ "${PORTPROTON_NAME}" != "${name_desktop}" ]]
then mv -f "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png" "${PORT_WINE_PATH}/data/img/${name_desktop}.png"
if [[ "${PORTPROTON_NAME}" != "${name_desktop_png}" ]]
then mv -f "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png" "${PORT_WINE_PATH}/data/img/${name_desktop_png}.png"
fi
echo "[Desktop Entry]" > "${PORT_WINE_PATH}/${name_desktop}.desktop"
......@@ -3669,7 +3826,7 @@ portwine_create_shortcut () {
echo "Categories=Game"
echo "StartupNotify=true"
echo "Path=${PORT_SCRIPTS_PATH}/"
echo "Icon=${PORT_WINE_PATH}/data/img/${name_desktop}.png"
echo "Icon=${PORT_WINE_PATH}/data/img/${name_desktop_png}.png"
} >> "${PORT_WINE_PATH}/${name_desktop}.desktop"
chmod u+x "${PORT_WINE_PATH}/${name_desktop}.desktop"
......@@ -3743,9 +3900,9 @@ portwine_delete_shortcut () {
portwine_missing_shortcut () {
"${pw_yad}" --title="$(eval_gettext "Error")" --form \
--window-icon "$PW_GUI_ICON_PATH/portproton.svg" \
--window-icon "$PW_GUI_ICON_PATH/portproton.svg" --fixed --center \
--image "$PW_GUI_ICON_PATH/error.svg" \
--text "\n$(eval_gettext "Could not find the file:")\n${portwine_exe}\n\n$(eval_gettext "ATTENTION:\nIf you forgot to mount the disk with the running application, click CANCEL!")" \
--text "\n$(eval_gettext "Could not find the file:")\n${portwine_exe}\n\n$(eval_gettext "ATTENTION:\nIf you forgot to mount the disk with the running application, click CANCEL!")\n" \
--button="$(eval_gettext "DELETE SHORTCUT")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0 \
--button="$(eval_gettext "CANCEL")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":1
if [ $? -eq "0" ] ; then
......@@ -3754,6 +3911,7 @@ portwine_missing_shortcut () {
exit 0
}
# GUI WINETRICKS | GUI PREFIX MANAGER
pw_prefix_manager () {
update_winetricks
start_portwine
......@@ -3803,20 +3961,20 @@ pw_prefix_manager () {
pw_stop_progress_bar
KEY_EDIT_MANAGER_GUI=$RANDOM
"${pw_yad_v13_0}" --plug=$KEY_EDIT_MANAGER_GUI --tabnum=1 --list --checklist \
"${pw_yad}" --plug=$KEY_EDIT_MANAGER_GUI --tabnum=1 --list --checklist \
--text="$(eval_gettext 'Select components to install in prefix:') <b>\"${PW_PREFIX_NAME}\"</b>, $(eval_gettext 'using wine:') <b>\"${PW_WINE_USE}\"</b>" \
--column=set --column=dll --column=info < "${PORT_WINE_TMP_PATH}/dll_list_tmp" 1>> "${PORT_WINE_TMP_PATH}/to_winetricks" 2>/dev/null &
"${pw_yad_v13_0}" --plug=$KEY_EDIT_MANAGER_GUI --tabnum=2 --list --checklist \
"${pw_yad}" --plug=$KEY_EDIT_MANAGER_GUI --tabnum=2 --list --checklist \
--text="$(eval_gettext 'Select fonts to install in prefix:') <b>\"${PW_PREFIX_NAME}\"</b>, $(eval_gettext 'using wine:') <b>\"${PW_WINE_USE}\"</b>" \
--column=set --column=dll --column=info < "${PORT_WINE_TMP_PATH}/fonts_list_tmp" 1>> "${PORT_WINE_TMP_PATH}/to_winetricks" 2>/dev/null &
"${pw_yad_v13_0}" --plug=$KEY_EDIT_MANAGER_GUI --tabnum=3 --list --checklist \
"${pw_yad}" --plug=$KEY_EDIT_MANAGER_GUI --tabnum=3 --list --checklist \
--text="$(eval_gettext 'Change config for prefix:') <b>\"${PW_PREFIX_NAME}\"</b>" \
--column=set --column=dll --column=info < "${PORT_WINE_TMP_PATH}/settings_list_tmp" 1>> "${PORT_WINE_TMP_PATH}/to_winetricks" 2>/dev/null &
"${pw_yad_v13_0}" --key=$KEY_EDIT_MANAGER_GUI --notebook \
--width=900 --height=800 --expand \
"${pw_yad}" --key=$KEY_EDIT_MANAGER_GUI --notebook \
--width=700 --height=700 --expand \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --title "$(eval_gettext 'PREFIX MANAGER')" \
--button="$(eval_gettext "CANCEL")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":1 \
--button="$(eval_gettext "OK")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":0 \
......@@ -3849,7 +4007,7 @@ pw_prefix_manager () {
echo "START WINETRICKS..." >> "${PORT_WINE_TMP_PATH}/update_pfx_log"
echo "Try to install DLL in prefix: ${SET_FROM_PFX_MANAGER}" >> "${PORT_WINE_TMP_PATH}/update_pfx_log"
print_info "Try to install DLL in prefix: ${SET_FROM_PFX_MANAGER}"
${pw_runtime} env PATH="${PATH}" LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" GST_PLUGIN_SYSTEM_PATH_1_0="" \
${pw_runtime} LD_LIBRARY_PATH="${PW_LD_LIBRARY_PATH}" GST_PLUGIN_SYSTEM_PATH_1_0="" \
"${PORT_WINE_TMP_PATH}/winetricks" -q -r -f ${SET_FROM_PFX_MANAGER} | tee -a "${PORT_WINE_TMP_PATH}/update_pfx_log"
wait_wineserver
kill_portwine
......@@ -3869,7 +4027,7 @@ portwine_start_debug () {
kill_portwine
export PW_LOG=1
if [[ -z "$VULKAN_DRIVER_NAME" ]] || [[ "$VULKAN_DRIVER_NAME" == "llvmpipe" ]] ; then
yad_info "$(eval_gettext "Attention working version of vulkan not detected!\nIt is recommended to run games in OpenGL (low performance possible)!")"
yad_info "$(eval_gettext "Attention working version of vulkan not detected!\nIt is recommended to run games in OpenGL (low performance possible)!")"
fi
echo "$(eval_gettext "PortProton was launched in creation mode PortProton.log and it is successfully stored in the root directory of the port")" > "${PORT_WINE_PATH}/PortProton.log"
echo "$(eval_gettext "To diagnose the problem, copy ALL of the log to discord server: https://discord.gg/FTaheP99wE")" >> "${PORT_WINE_PATH}/PortProton.log"
......@@ -4013,7 +4171,7 @@ portwine_start_debug () {
sleep 3
pw_stop_progress_bar_cover
unset PW_TIMER
while read -r line || [[ ! -z $(pgrep -a yad | grep "yad_v13_0 --text-info --tail --button="STOP"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0 --title="DEBUG"" | awk '{print $1}') ]] ; do
while read -r line || [[ ! -z $(pgrep -a yad | grep "yad_gui_pp --text-info --tail --button="STOP"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0 --title="DEBUG"" | awk '{print $1}') ]] ; do
sleep 0.005
if [[ ! -z "${line}" ]] && [[ -z "$(echo "${line}" | grep -i "kerberos")" ]] \
&& [[ -z "$(echo "${line}" | grep -i "ntlm")" ]]
......@@ -4024,7 +4182,7 @@ portwine_start_debug () {
sleep 3
PW_TIMER=1
fi
done < "${PORT_WINE_PATH}/PortProton.log" | "${pw_yad_v13_0}" --text-info --tail --button="STOP"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0 --title="DEBUG" \
done < "${PORT_WINE_PATH}/PortProton.log" | "${pw_yad}" --text-info --tail --button="STOP"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0 --title="DEBUG" \
--skip-taskbar --width=800 --height=400 --text "$(eval_gettext "Please wait! After finishing the PortProton, click STOP.")" --window-icon="$PW_GUI_ICON_PATH/portproton.svg" 2>/dev/null &&
kill_portwine
sed -i '/.fx$/d' "${PORT_WINE_PATH}/PortProton.log"
......@@ -4044,7 +4202,7 @@ portwine_start_debug () {
pw_create_prefix_backup () {
cd "$HOME"
PW_PREFIX_TO_BACKUP=$("${pw_yad_v13_0}" --file --directory --width=800 --height=500 --auto-close \
PW_PREFIX_TO_BACKUP=$("${pw_yad}" --file --directory --width=800 --height=500 --auto-close \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --title "$(eval_gettext "BACKUP PREFIX TO...")" \
--button="$(eval_gettext "CANCEL")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":1 \
--button="$(eval_gettext "OK")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0 2>/dev/null)
......@@ -4059,7 +4217,7 @@ pw_create_prefix_backup () {
pw_init_runtime
if check_flatpak
then TMP_ALL_PATH=""
else TMP_ALL_PATH="env PATH=\"${PATH}\" LD_LIBRARY_PATH=\"${PW_LD_LIBRARY_PATH}\""
else TMP_ALL_PATH="LD_LIBRARY_PATH=\"${PW_LD_LIBRARY_PATH}\""
fi
chmod -R u+w "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}"
cat << EOF > "${PORT_WINE_TMP_PATH}"/pp_pfx_backup.sh
......@@ -4085,15 +4243,12 @@ EOF
}
pw_edit_db () {
PW_EDIT_DB_LIST="PW_MANGOHUD PW_MANGOHUD_USER_CONF PW_VKBASALT PW_VKBASALT_USER_CONF PW_NO_ESYNC PW_NO_FSYNC
PW_USE_RAY_TRACING PW_USE_NVAPI_AND_DLSS PW_USE_FAKE_DLSS PW_USE_FAKE_DLSS_3 PW_WINE_FULLSCREEN_FSR PW_HIDE_NVIDIA_GPU
PW_EDIT_DB_LIST="PW_MANGOHUD PW_MANGOHUD_USER_CONF PW_VKBASALT PW_VKBASALT_USER_CONF PW_DGVOODOO2 PW_USE_GAMESCOPE
PW_NO_ESYNC PW_NO_FSYNC PW_USE_RAY_TRACING PW_USE_NVAPI_AND_DLSS PW_USE_FAKE_DLSS PW_WINE_FULLSCREEN_FSR PW_HIDE_NVIDIA_GPU
PW_VIRTUAL_DESKTOP PW_USE_TERMINAL PW_GUI_DISABLED_CS PW_USE_GAMEMODE PW_USE_D3D_EXTRAS PW_FIX_VIDEO_IN_GAME
PW_REDUCE_PULSE_LATENCY PW_USE_US_LAYOUT PW_USE_GSTREAMER PW_FORCE_LARGE_ADDRESS_AWARE PW_USE_SHADER_CACHE
PW_USE_WINE_DXGI PW_USE_EAC_AND_BE PW_USE_SYSTEM_VK_LAYERS PW_USE_OBS_VKCAPTURE PW_USE_GAMESCOPE PW_DISABLE_COMPOSITING
PW_USE_RUNTIME PW_DINPUT_PROTOCOL PW_USE_DGVOODOO2 PW_DGV2_DISABLE_D3D PW_DGV2_16BIT_MODE PW_DGV2_USE_DX12 PW_DGV2_FASTMEMORY
PW_DGV2_VRAM_INCREASE PW_DGV2_FULLSCREEN PW_DGV2_FILTERING PW_DGV2_ANTIALIASING
"
PW_USE_WINE_DXGI PW_USE_EAC_AND_BE PW_USE_SYSTEM_VK_LAYERS PW_USE_OBS_VKCAPTURE PW_DISABLE_COMPOSITING
PW_USE_RUNTIME PW_DINPUT_PROTOCOL"
if check_wayland_session ; then
rm_from_var PW_EDIT_DB_LIST "PW_USE_US_LAYOUT"
......@@ -4132,15 +4287,24 @@ export -f gui_credits
button_click () {
[[ ! -z "$1" ]] && echo "$1" > "${PORT_WINE_TMP_PATH}/tmp_yad_form"
if [[ ! -z $(pidof -s yad) ]] || [[ ! -z $(pidof -s yad_v13_0) ]] ; then
if [[ ! -z $(pidof -s yad) ]] || [[ ! -z $(pidof -s yad_gui_pp) ]] ; then
kill -s SIGUSR1 $(pgrep -a yad | grep "\--key=${KEY} \--notebook" | awk '{print $1}') > /dev/null 2>&1
fi
}
export -f button_click
button_click_start () {
[[ ! -z "$1" ]] && echo "$1" > "${PORT_WINE_TMP_PATH}/tmp_yad_form"
if [[ ! -z $(pidof -s yad) ]] || [[ ! -z $(pidof -s yad_gui_pp) ]] ; then
kill -s SIGUSR1 $(pgrep -a yad | grep "\--key=${KEY_START} \--notebook" | awk '{print $1}') > /dev/null 2>&1 \
|| kill -s SIGUSR1 $(pgrep -a yad | grep "\--key=${KEY_START} \--paned" | awk '{print $1}') > /dev/null 2>&1
fi
}
export -f button_click_start
run_desktop_b_click () {
[[ ! -z "$1" ]] && echo "$1" > "${PORT_WINE_TMP_PATH}/tmp_yad_form"
if [[ ! -z $(pidof -s yad) ]] || [[ ! -z $(pidof -s yad_v13_0) ]] ; then
if [[ ! -z $(pidof -s yad) ]] || [[ ! -z $(pidof -s yad_gui_pp) ]] ; then
kill -s SIGUSR1 $(pgrep -a yad | grep "\--key=${KEY} \--notebook" | awk '{print $1}') > /dev/null 2>&1
fi
......@@ -4213,6 +4377,21 @@ change_mirror () {
}
export -f change_mirror
change_gui_start () {
if [[ "$PW_GUI_START" == "NOTEBOOK" ]] ; then
sed -i 's/="NOTEBOOK"/="PANED"/g' "$USER_CONF"
yad_info "$(eval_gettext "Gui start changed to:") PANED"
else
sed -i 's/="PANED"/="NOTEBOOK"/g' "$USER_CONF"
yad_info "$(eval_gettext "Gui start changed to:") NOTEBOOK"
fi
print_info "Restarting PP for change gui start..."
export SKIP_CHECK_UPDATES=1
/usr/bin/env bash -c ${pw_full_command_line[*]} &
exit 0
}
export -f change_gui_start
gui_wine_uninstaller () {
start_portwine
pw_run uninstaller
......@@ -4226,7 +4405,7 @@ export -f gui_open_user_conf
gui_open_scripts_from_backup () {
cd "${PORT_WINE_TMP_PATH}/scripts_backup/" || fatal
PW_SCRIPT_FROM_BACKUP=$("${pw_yad_v13_0}" --file --width=650 --height=500 --auto-close \
PW_SCRIPT_FROM_BACKUP=$("${pw_yad}" --file --width=650 --height=500 --auto-close \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --title "SCRIPTS FROM BACKUP" --file-filter="backup_scripts|scripts_v*.tar.gz" 2>/dev/null )
YAD_STATUS="$?"
if [[ "$YAD_STATUS" == "1" || "$YAD_STATUS" == "252" ]] ; then exit 0 ; fi
......
#!/usr/bin/env bash
#Author: Alek V., Dervart
#ACOdyssey.exe
#Rating=4
#####################examples###########################
export PW_NO_ESYNC="0"
export PW_USE_GSTREAMER="0"
export PW_PREFIX_NAME="ACO"
export PW_WINE_USE="WINE_LG"
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
......@@ -13,8 +13,8 @@ echo '
██╔═══╝░██║░░██║██╔══██╗░░░██║░░░██╔═══╝░██╔══██╗██║░░██║░░░██║░░░██║░░██║██║╚████║
██║░░░░░╚█████╔╝██║░░██║░░░██║░░░██║░░░░░██║░░██║╚█████╔╝░░░██║░░░╚█████╔╝██║░╚███║
╚═╝░░░░░░╚════╝░╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░░░░╚═╝░░╚═╝░╚════╝░░░░╚═╝░░░░╚════╝░╚═╝░░╚══╝
'
if [[ $(id -u) = 0 ]] ; then
echo "Do not run this script as root!"
exit 1
......@@ -61,7 +61,9 @@ fi
source "${PORT_SCRIPTS_PATH}/functions_helper"
create_new_dir "${HOME}/.local/share/applications"
if [[ "${PW_SILENT_RESTART}" == 1 ]] || [[ "${START_FROM_STEAM}" == 1 ]] ; then
if [[ "${PW_SILENT_RESTART}" == 1 ]] \
|| [[ "${START_FROM_STEAM}" == 1 ]]
then
export PW_GUI_DISABLED_CS=1
unset PW_SILENT_RESTART
else
......@@ -70,11 +72,11 @@ fi
unset MANGOHUD MANGOHUD_DLSYM PW_NO_ESYNC PW_NO_FSYNC PW_VULKAN_USE WINEDLLOVERRIDES PW_NO_WRITE_WATCH PW_YAD_SET PW_ICON_FOR_YAD
unset PW_CHECK_AUTOINSTAL PW_VKBASALT_EFFECTS PW_VKBASALT_FFX_CAS PORTWINE_DB PORTWINE_DB_FILE PW_DISABLED_CREATE_DB RADV_PERFTEST
unset CHK_SYMLINK_FILE PW_MESA_GL_VERSION_OVERRIDE MESA_GL_VERSION_OVERRIDE PW_VKD3D_FEATURE_LEVEL PATH_TO_GAME PW_START_DEBUG PORTPROTON_NAME FLATPAK_IN_USE
unset CHK_SYMLINK_FILE PW_MESA_GL_VERSION_OVERRIDE PW_VKD3D_FEATURE_LEVEL PATH_TO_GAME PW_START_DEBUG PORTPROTON_NAME PW_PATH
unset PW_PREFIX_NAME WINEPREFIX VULKAN_MOD PW_WINE_VER PW_ADD_TO_ARGS_IN_RUNTIME PW_GAMEMODERUN_SLR AMD_VULKAN_ICD PW_WINE_CPU_TOPOLOGY
unset PW_NAME_D_NAME PW_NAME_D_ICON PW_NAME_D_EXEC PW_EXEC_FROM_DESKTOP PW_ALL_DF PW_GENERATE_BUTTONS PW_NAME_D_ICON PW_NAME_D_ICON_48
unset MANGOHUD_CONFIG FPS_LIMIT PW_WINE_USE WINEDLLPATH WINE WINEDIR WINELOADER WINESERVER PW_USE_RUNTIME PORTWINE_CREATE_SHORTCUT_NAME MIRROR
unset PW_LOCALE_SELECT
unset PW_LOCALE_SELECT PW_SETTINGS_INDICATION PW_GUI_START
export PORT_WINE_TMP_PATH="${PORT_WINE_PATH}/data/tmp"
rm -f "$PORT_WINE_TMP_PATH"/*{exe,msi,tar}*
......@@ -113,21 +115,6 @@ create_new_dir "${PORT_WINE_TMP_PATH}"/mono
export PW_VULKAN_DIR="${PORT_WINE_TMP_PATH}/VULKAN"
create_new_dir "${PW_VULKAN_DIR}"
LSPCI_VGA="$(lspci -k 2>/dev/null | grep -E 'VGA|3D' | tr -d '\n')"
export LSPCI_VGA
if command -v xrandr &>/dev/null ; then
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_screen_configuration"
if [[ $(xrandr | grep "primary" | awk '{print $1}') ]] ; then
PW_SCREEN_RESOLUTION="$(xrandr | sed -rn 's/^.*primary.* ([0-9]+x[0-9]+).*$/\1/p')"
PW_SCREEN_PRIMARY="$(xrandr | grep "primary" | awk '{print $1}')"
fi
export PW_SCREEN_PRIMARY PW_SCREEN_RESOLUTION
print_var PW_SCREEN_RESOLUTION PW_SCREEN_PRIMARY
else
print_error "xrandr - not found!"
fi
cd "${PORT_SCRIPTS_PATH}" || fatal
# shellcheck source=./var
......@@ -137,6 +124,7 @@ export STEAM_SCRIPTS="${PORT_WINE_PATH}/steam_scripts"
export PW_PLUGINS_PATH="${PORT_WINE_TMP_PATH}/plugins${PW_PLUGINS_VER}"
export PW_GUI_ICON_PATH="${PORT_WINE_PATH}/data/img/gui"
export PW_GUI_THEMES_PATH="${PORT_WINE_PATH}/data/themes"
export pw_yad="$PW_GUI_THEMES_PATH/gui/yad_gui_pp"
change_locale
......@@ -184,21 +172,47 @@ if [[ "${INSTALLING_PORT}" == 1 ]] ; then
return 0
fi
# choose gui start
case "$PW_GUI_START" in
PANED) : ;;
NOTEBOOK) : ;;
*)
sed -i '/export PW_GUI_START=/d' "$USER_CONF"
echo 'export PW_GUI_START="NOTEBOOK"' >> "$USER_CONF"
export PW_GUI_START="NOTEBOOK"
;;
esac
pw_check_and_download_plugins
export PW_VULKANINFO_PORTABLE="$PW_PLUGINS_PATH/portable/bin/x86_64-linux-gnu-vulkaninfo"
# check skip update
if [[ "${SKIP_CHECK_UPDATES}" != 1 ]] \
&& [[ ! -f "/tmp/portproton.lock" ]]
then
pw_port_update
VULKAN_DRIVER_NAME="$("$PW_VULKANINFO_PORTABLE" 2>/dev/null | grep driverName | awk '{print$3}' | head -1)"
GET_GPU_NAMES=$("$PW_VULKANINFO_PORTABLE" 2>/dev/null | awk -F '=' '/deviceName/{print $2}' | sed '/llvm/d'| sort -u | sed 's/^ //' | paste -sd '!')
LSPCI_VGA="$(lspci -k 2>/dev/null | grep -E 'VGA|3D' | tr -d '\n')"
export LSPCI_VGA VULKAN_DRIVER_NAME GET_GPU_NAMES
if command -v xrandr &>/dev/null ; then
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_screen_configuration"
if [[ $(xrandr | grep "primary" | awk '{print $1}') ]] ; then
PW_SCREEN_RESOLUTION="$(xrandr | sed -rn 's/^.*primary.* ([0-9]+x[0-9]+).*$/\1/p')"
PW_SCREEN_PRIMARY="$(xrandr | grep "primary" | awk '{print $1}')"
fi
export PW_SCREEN_PRIMARY PW_SCREEN_RESOLUTION
echo ""
print_var PW_SCREEN_RESOLUTION PW_SCREEN_PRIMARY
else
print_error "xrandr - not found!"
fi
echo ""
else
scripts_install_ver=$(head -n 1 "${PORT_WINE_TMP_PATH}/scripts_ver")
export scripts_install_ver
fi
unset SKIP_CHECK_UPDATES
pw_check_and_download_plugins
export PW_VULKANINFO_PORTABLE="$PW_PLUGINS_PATH/portable/bin/x86_64-linux-gnu-vulkaninfo"
VULKAN_DRIVER_NAME="$("$PW_VULKANINFO_PORTABLE" 2>/dev/null | grep driverName | awk '{print$3}' | head -1)"
export VULKAN_DRIVER_NAME
# create lock file
if [[ -f "/tmp/portproton.lock" ]] ; then
......@@ -219,25 +233,33 @@ fi
pw_init_db
if [[ ! -d "${HOME}/PortProton" ]] \
&& check_flatpak
then
ln -s "${PORT_WINE_PATH}" "${HOME}/PortProton"
fi
pw_check_and_download_dxvk_and_vkd3d
# shellcheck source=/dev/null
source "${USER_CONF}"
kill_portwine
killall -15 yad_v13_0 2>/dev/null
kill -TERM "$(pgrep -a yad | grep PortProton | head -n 1 | awk '{print $1}')" 2>/dev/null
if [[ "${SKIP_CHECK_UPDATES}" != 1 ]] ; then
kill_portwine
killall -15 yad_gui_pp 2>/dev/null
kill -TERM "$(pgrep -a yad | grep PortProton | head -n 1 | awk '{print $1}')" 2>/dev/null
if [[ -f "/usr/bin/portproton" ]] \
&& [[ -f "${HOME}/.local/share/applications/PortProton.desktop" ]]
then
rm -f "${HOME}/.local/share/applications/PortProton.desktop"
fi
if [[ -f "/usr/bin/portproton" ]] \
&& [[ -f "${HOME}/.local/share/applications/PortProton.desktop" ]]
then
rm -f "${HOME}/.local/share/applications/PortProton.desktop"
fi
if grep "SteamOS" "/etc/os-release" &>/dev/null \
&& [[ ! -f "${HOME}/.local/share/applications/PortProton.desktop" ]]
then
cp -f "${PORT_WINE_PATH}/PortProton.desktop" "${HOME}/.local/share/applications/"
update-desktop-database -q "${HOME}/.local/share/applications"
if grep "SteamOS" "/etc/os-release" &>/dev/null \
&& [[ ! -f "${HOME}/.local/share/applications/PortProton.desktop" ]]
then
cp -f "${PORT_WINE_PATH}/PortProton.desktop" "${HOME}/.local/share/applications/"
update-desktop-database -q "${HOME}/.local/share/applications"
fi
fi
[[ "$MISSING_DESKTOP_FILE" == 1 ]] && portwine_missing_shortcut
......@@ -247,7 +269,7 @@ if [[ ! -z $(basename "${portwine_exe}" | grep .ppack) ]] ; then
pw_init_runtime
if check_flatpak
then TMP_ALL_PATH=""
else TMP_ALL_PATH="env PATH=\"${PATH}\" LD_LIBRARY_PATH=\"${PW_LD_LIBRARY_PATH}\""
else TMP_ALL_PATH="LD_LIBRARY_PATH=\"${PW_LD_LIBRARY_PATH}\""
fi
PW_PREFIX_NAME=$(basename "$1" | awk -F'.' '{print $1}')
cat << EOF > "${PORT_WINE_TMP_PATH}"/pp_pfx_unpack.sh
......@@ -288,7 +310,10 @@ use: [--reinstall] [--autoinstall]
--autoinstall [script_frome_pw_autoinstall] autoinstall from the list below:
"
echo ${files_from_autoinstall}
echo ""
echo "
--generate-pot generated pot file
"
exit 0 ;;
'--reinstall' )
......@@ -335,14 +360,15 @@ for DAIG in ./* ; do
done
popd 1>/dev/null || fatal
check_nvidia_rtx && check_variables PW_VULKAN_USE "2"
# [[ "${PW_DGVOODOO2}" == "1" ]] && DGV2_TXT='<b>dgVoodoo2 </b>' || unset DGV2_TXT
# [[ "${PW_VKBASALT}" == "1" ]] && VKBASALT_TXT='<b>vkBasalt </b>' || unset VKBASALT_TXT
# [[ "${PW_MANGOHUD}" == "1" ]] && MANGOHUD_TXT='<b>MangoHud </b>' || unset MANGOHUD_TXT
[[ "${PW_USE_DGVOODOO2}" == "1" ]] && DGV_TXT="$(eval_gettext 'and dgVoodoo2 ')" || unset DGV_TXT
SORT_OPENGL="$(eval_gettext 'WineD3D OpenGL ${DGV_TXT}(For video cards without Vulkan)')"
SORT_VULKAN="$(eval_gettext 'WineD3D Vulkan ${DGV_TXT}(Damavand experimental)')"
SORT_LEGACY="$(eval_gettext 'Legacy DXVK ${DGV_TXT}(Vulkan v1.1)')"
SORT_STABLE="$(eval_gettext 'Stable DXVK, VKD3D ${DGV_TXT}(Vulkan v1.2)')"
SORT_NEWEST="$(eval_gettext 'Newest DXVK, VKD3D, D8VK ${DGV_TXT}(Vulkan v1.3+)')"
SORT_OPENGL="$(eval_gettext 'WineD3D OpenGL (For video cards without Vulkan)')"
SORT_VULKAN="$(eval_gettext 'WineD3D Vulkan (Damavand experimental)')"
SORT_LEGACY="$(eval_gettext 'Legacy DXVK (Vulkan v1.1)')"
SORT_STABLE="$(eval_gettext 'Stable DXVK, VKD3D (Vulkan v1.2)')"
SORT_NEWEST="$(eval_gettext 'Newest DXVK, VKD3D, D8VK (Vulkan v1.3+)')"
SORT_G_NINE="$(eval_gettext 'Gallium Nine (DirectX 9 for MESA)')"
SORT_G_ZINK="$(eval_gettext 'Gallium Zink (OpenGL to Vulkan)')"
......@@ -357,7 +383,7 @@ case "${PW_VULKAN_USE}" in
esac
if [[ ! -z "${PORTWINE_DB_FILE}" ]] ; then
[[ -z "${PW_COMMENT_DB}" ]] && PW_COMMENT_DB="$(eval_gettext "PortProton database file was found for") <b>${PORTWINE_DB}</b>."
[[ -z "${PW_COMMENT_DB}" ]] && PW_COMMENT_DB="$(eval_gettext "Launching") <b>${PORTWINE_DB}</b>."
if [[ ! -z $(echo "${PW_WINE_USE}" | grep "^PROTON_LG$") ]] ; then
PW_DEFAULT_WINE_USE="${PW_PROTON_LG_VER}!${PW_WINE_LG_VER}${DIST_ADD_TO_GUI}!GET-OTHER-WINE"
elif [[ ! -z $(echo "${PW_WINE_USE}" | grep "^PROTON_GE$") ]] ; then
......@@ -389,6 +415,7 @@ else
fi
unset PW_GUI_DISABLED_CS
fi
if [[ -f "${portwine_exe}" ]] ; then
if [[ "${PW_GUI_DISABLED_CS}" != 1 ]] ; then
pw_create_gui_png
......@@ -398,31 +425,85 @@ if [[ -f "${portwine_exe}" ]] ; then
else
PW_SHORTCUT="$(eval_gettext "DELETE SHORTCUT")!$PW_GUI_ICON_PATH/$BUTTON_SIZE.png!$(eval_gettext "Delete shortcut for select file..."):98"
fi
OUTPUT_START=$("${pw_yad}" --text-align=center --text "$PW_COMMENT_DB" --form \
--title "PortProton-${install_ver} (${scripts_install_ver})" \
--image "${PW_ICON_FOR_YAD}" --separator=";" \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
--field="3D API : :CB" "${PW_DEFAULT_VULKAN_USE}" \
--field=" WINE : :CB" "${PW_DEFAULT_WINE_USE}" \
--field="PREFIX : :CBE" "${PW_ADD_PREFIXES_TO_GUI}" \
--field=":LBL" "" \
--button="$(eval_gettext "VKBASALT")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Enable vkBasalt by default to improve graphics in games running on Vulkan. (The HOME hotkey disables vkbasalt)")":120 \
--button="$(eval_gettext "MANGOHUD")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Enable Mangohud by default (R_SHIFT + F12 keyboard shortcuts disable Mangohud)")":122 \
--button="$(eval_gettext "EDIT DB")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Edit database file for") ${PORTWINE_DB}":118 \
--button="${PW_SHORTCUT}" \
--button="$(eval_gettext "DEBUG")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Launch with the creation of a .log file at the root PortProton")":102 \
--button="$(eval_gettext "LAUNCH")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Run file ...")":106 2>/dev/null)
PW_YAD_SET="$?"
if [[ "$PW_YAD_SET" == "1" || "$PW_YAD_SET" == "252" ]] ; then exit 0 ; fi
VULKAN_MOD=$(echo "${OUTPUT_START}" | grep \;\; | awk -F";" '{print $1}')
PW_WINE_VER=$(echo "${OUTPUT_START}" | grep \;\; | awk -F";" '{print $2}')
PW_PREFIX_NAME=$(echo "${OUTPUT_START}" | grep \;\; | awk -F";" '{print $3}' | sed -e s/[[:blank:]]/_/g)
if [[ -z "${PW_PREFIX_NAME}" ]] || [[ ! -z "$(echo "${PW_PREFIX_NAME}" | grep -E '^_.*' )" ]] ; then
PW_PREFIX_NAME="DEFAULT"
else
PW_PREFIX_NAME="${PW_PREFIX_NAME^^}"
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_yad_form"
export KEY_START="$RANDOM"
if [[ "${PW_GUI_START}" = NOTEBOOK ]] ; then
"${pw_yad}" --plug=$KEY_START --tabnum=1 --form --separator=";" --gui-type=start-old \
--image="${PW_ICON_FOR_YAD}" --text-align="center" --text "$PW_COMMENT_DB" \
--field="3D API : :CB" "${PW_DEFAULT_VULKAN_USE}" \
--field=" WINE : :CB" "${PW_DEFAULT_WINE_USE}" \
--field="PREFIX : :CBE" "${PW_ADD_PREFIXES_TO_GUI}" \
1> "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" 2>/dev/null &
"${pw_yad}" --plug=$KEY_START --tabnum=2 --form --columns=3 --align-buttons --homogeneous-column \
--field=" $(eval_gettext "Base settings")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Edit database file for") ${PORTWINE_DB}":"FBTN" '@bash -c "button_click_start 118"' \
--field=" vkBasalt"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Enable vkBasalt by default to improve graphics in games running on Vulkan. (The HOME hotkey disables vkbasalt)")":"FBTN" '@bash -c "button_click_start 120"' \
--field=" MangoHud"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Enable Mangohud by default (R_SHIFT + F12 keyboard shortcuts disable Mangohud)")":"FBTN" '@bash -c "button_click_start 122"' \
--field=" dgVoodoo2"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Enable dgVoodoo2 by default (This wrapper fixes many compatibility and rendering issues when running old games)")":"FBTN" '@bash -c "button_click_start 124"' \
--field=" GameScope"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Enable GameScope by default (Wayland micro compositor)")":"FBTN" '@bash -c "button_click_start 126"' \
2>/dev/null &
if [[ -f "${PORT_WINE_TMP_PATH}/tmp_yad_form_tab" ]] \
&& [[ ! -z "$TAB_START" ]]
then
export TAB_START=2
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_yad_form_tab"
else
export TAB_START=1
fi
"${pw_yad}" --key=$KEY_START --notebook --active-tab=$TAB_START \
--width="${PW_START_SIZE_W}" --tab-pos="${PW_TAB_POSITON}" --center \
--title "PortProton-${install_ver} (${scripts_install_ver})" --expand \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
--tab="$(eval_gettext "GENERAL")"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" \
--tab="$(eval_gettext "SETTINGS")"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" \
--button="${PW_SHORTCUT}" \
--button="$(eval_gettext "DEBUG")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Launch with the creation of a .log file at the root PortProton")":102 \
--button="$(eval_gettext "LAUNCH")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Run file ...")":106 2>/dev/null
PW_YAD_SET="$?"
if [[ "$PW_YAD_SET" == "1" || "$PW_YAD_SET" == "252" ]] ; then exit 0 ; fi
if [[ -f "${PORT_WINE_TMP_PATH}/tmp_yad_form" ]]; then
PW_YAD_SET=$(head -n 1 "${PORT_WINE_TMP_PATH}/tmp_yad_form" | awk '{print $1}')
export PW_YAD_SET
touch "${PORT_WINE_TMP_PATH}/tmp_yad_form_tab"
fi
sed -i 's/$/\;/' "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan"
pw_yad_form_vulkan
elif [[ "${PW_GUI_START}" = PANED ]] ; then
"${pw_yad}" --plug=$KEY_START --tabnum=1 --form --separator=";" --gui-type=start-old \
--image="${PW_ICON_FOR_YAD}" --text-align="center" --text "$PW_COMMENT_DB" \
--field=" 3D API : :CB" "${PW_DEFAULT_VULKAN_USE}" \
--field=" WINE : :CB" "${PW_DEFAULT_WINE_USE}" \
--field=" PREFIX : :CBE" "${PW_ADD_PREFIXES_TO_GUI}" \
1> "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" 2>/dev/null &
"${pw_yad}" --plug=$KEY_START --tabnum=2 --form --columns=3 \
--align-buttons --homogeneous-row --homogeneous-column \
--field=" $(eval_gettext "Base settings")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Edit database file for") ${PORTWINE_DB}":"FBTN" '@bash -c "button_click_start 118"' \
--field=" vkBasalt"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Enable vkBasalt by default to improve graphics in games running on Vulkan. (The HOME hotkey disables vkbasalt)")":"FBTN" '@bash -c "button_click_start 120"' \
--field=" MangoHud"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Enable Mangohud by default (R_SHIFT + F12 keyboard shortcuts disable Mangohud)")":"FBTN" '@bash -c "button_click_start 122"' \
--field=" dgVoodoo2"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Enable dgVoodoo2 by default (This wrapper fixes many compatibility and rendering issues when running old games)")":"FBTN" '@bash -c "button_click_start 124"' \
--field=" GameScope"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Enable GameScope by default (Wayland micro compositor)")":"FBTN" '@bash -c "button_click_start 126"' \
2>/dev/null &
"${pw_yad}" --key=$KEY_START --paned --center --fixed \
--width="${PW_START_SIZE_W}" --tab-pos="${PW_TAB_POSITON}" \
--title "PortProton-${install_ver} (${scripts_install_ver})" \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
--button="${PW_SHORTCUT}" \
--button="$(eval_gettext "DEBUG")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Launch with the creation of a .log file at the root PortProton")":102 \
--button="$(eval_gettext "LAUNCH")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Run file ...")":106 2>/dev/null
PW_YAD_SET="$?"
if [[ "$PW_YAD_SET" == "1" || "$PW_YAD_SET" == "252" ]] ; then exit 0 ; fi
pw_yad_set_form
sed -i 's/$/\;/' "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan"
pw_yad_form_vulkan
fi
export PW_PREFIX_NAME PW_WINE_VER VULKAN_MOD
elif [[ -f "${PORTWINE_DB_FILE}" ]] ; then
portwine_launch
fi
......@@ -434,6 +515,11 @@ else
else NEW_MIRROR="CDN"
fi
if [[ "$PW_GUI_START" == "NOTEBOOK" ]]
then NEW_PW_GUI_START="PANED"
else NEW_PW_GUI_START="NOTEBOOK"
fi
orig_IFS="$IFS" && IFS=$'\n'
PW_ALL_DF="$(ls "${PORT_WINE_PATH}"/ | grep .desktop | grep -vE '(PortProton|readme)')"
if [[ -z "${PW_ALL_DF}" ]]
......@@ -455,11 +541,11 @@ else
IFS="$orig_IFS"
old_IFS=$IFS && IFS="%"
"${pw_yad_v13_0}" --plug=$KEY --tabnum="${PW_GUI_SORT_TABS[4]}" --form --columns="$MAIN_GUI_COLUMNS" \
"${pw_yad}" --plug=$KEY --tabnum="${PW_GUI_SORT_TABS[4]}" --form --columns="$MAIN_GUI_COLUMNS" --homogeneous-column \
--align-buttons --scroll --separator=" " ${PW_GENERATE_BUTTONS} 2>/dev/null &
IFS="$orig_IFS"
"${pw_yad_v13_0}" --plug=${KEY} --tabnum="${PW_GUI_SORT_TABS[3]}" --form --columns=3 --align-buttons --separator=";" \
"${pw_yad}" --plug=$KEY --tabnum="${PW_GUI_SORT_TABS[3]}" --form --columns=3 --align-buttons --separator=";" --homogeneous-column \
--field=" $(eval_gettext "Reinstall PortProton")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"":"FBTN" '@bash -c "button_click gui_pw_reinstall_pp"' \
--field=" $(eval_gettext "Remove PortProton")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"":"FBTN" '@bash -c "button_click gui_rm_portproton"' \
--field=" $(eval_gettext "Update PortProton")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"":"FBTN" '@bash -c "button_click gui_pw_update"' \
......@@ -470,13 +556,14 @@ else
--field=" Xterm"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"":"FBTN" '@bash -c "button_click pw_start_cont_xterm"' \
--field=" $(eval_gettext "Credits")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"":"FBTN" '@bash -c "button_click gui_credits"' \
--field=" $(eval_gettext "Change mirror to") $NEW_MIRROR"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"":"FBTN" '@bash -c "button_click change_mirror"' \
--field=" $(eval_gettext "Change start gui")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"":"FBTN" '@bash -c "button_click change_gui_start"' \
2>/dev/null &
"${pw_yad_v13_0}" --plug=${KEY} --tabnum="${PW_GUI_SORT_TABS[2]}" --form --columns=3 --align-buttons --separator=";" \
--field=" 3D API : :CB" "${PW_DEFAULT_VULKAN_USE}" \
--field=" PREFIX : :CBE" "${PW_ADD_PREFIXES_TO_GUI}" \
--field=" WINE : :CB" "${PW_DEFAULT_WINE_USE}" \
--field=" $(eval_gettext "Create prefix backup")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"":"FBTN" '@bash -c "button_click pw_create_prefix_backup"' \
"${pw_yad}" --plug=$KEY --tabnum="${PW_GUI_SORT_TABS[2]}" --form --columns=3 --align-buttons --separator=";" \
--field=" 3D API : :CB" "${PW_DEFAULT_VULKAN_USE}" \
--field=" PREFIX : :CBE" "${PW_ADD_PREFIXES_TO_GUI}" \
--field=" WINE : :CB" "${PW_DEFAULT_WINE_USE}" \
--field="$(eval_gettext "Create prefix backup")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"":"CFBTN" '@bash -c "button_click pw_create_prefix_backup"' \
--field=" Winetricks"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"$(eval_gettext "Run winetricks to install additional libraries to the selected prefix")":"FBTN" '@bash -c "button_click WINETRICKS"' \
--field=" $(eval_gettext "Clear prefix")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"$(eval_gettext "Clear the prefix to fix problems")":"FBTN" '@bash -c "button_click gui_clear_pfx"' \
--field=" $(eval_gettext "Get other Wine")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"$(eval_gettext "Open the menu to download other versions of WINE or PROTON")":"FBTN" '@bash -c "button_click gui_proton_downloader"' \
......@@ -484,9 +571,9 @@ else
--field=" $(eval_gettext "Prefix Manager") "!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"$(eval_gettext "Run winecfg to edit the settings of the selected prefix")":"FBTN" '@bash -c "button_click WINECFG"' \
--field=" $(eval_gettext "File Manager")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"$(eval_gettext "Run wine file manager")":"FBTN" '@bash -c "button_click WINEFILE"' \
--field=" $(eval_gettext "Command line")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"$(eval_gettext "Run wine cmd")":"FBTN" '@bash -c "button_click WINECMD"' \
--field=" $(eval_gettext "Regedit")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"$(eval_gettext "Run wine regedit")":"FBTN" '@bash -c "button_click WINEREG"' 2>/dev/null 1> "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" &
--field=" $(eval_gettext "Regedit")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"$(eval_gettext "Run wine regedit")":"FBTN" '@bash -c "button_click WINEREG"' 1> "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" 2>/dev/null &
"${pw_yad_v13_0}" --plug=$KEY --tabnum="${PW_GUI_SORT_TABS[1]}" --form --columns="$MAIN_GUI_COLUMNS" --align-buttons --scroll \
"${pw_yad}" --plug=$KEY --tabnum="${PW_GUI_SORT_TABS[1]}" --form --columns="$MAIN_GUI_COLUMNS" --align-buttons --scroll --homogeneous-column \
--field=" Dolphin 5.0"!"$PW_GUI_ICON_PATH/dolphin.png"!"$(eval_gettext "Emulator for Nintendo game consoles with high compatibility")":"FBTN" '@bash -c "button_click PW_DOLPHIN"' \
--field=" MAME"!"$PW_GUI_ICON_PATH/mame.png"!"$(eval_gettext "Multi-arcade emulator that allows you to play old arcade games")":"FBTN" '@bash -c "button_click PW_MAME"' \
--field=" RetroArch"!"$PW_GUI_ICON_PATH/retroarch.png"!"$(eval_gettext "Multi-platform frontend for emulators with extensive settings")":"FBTN" '@bash -c "button_click PW_RETROARCH"' \
......@@ -502,7 +589,7 @@ else
--field=" xemu"!"$PW_GUI_ICON_PATH/xemu.png"!"$(eval_gettext "Emulator for the Xbox game console")":"FBTN" '@bash -c "button_click PW_XEMU"' \
--field=" Demul"!"$PW_GUI_ICON_PATH/demul.png"!"$(eval_gettext "Emulator for the Sega Dreamcast game console")":"FBTN" '@bash -c "button_click PW_DEMUL"' 2>/dev/null &
"${pw_yad_v13_0}" --plug=$KEY --tabnum="${PW_GUI_SORT_TABS[0]}" --form --columns="$MAIN_GUI_COLUMNS" --align-buttons --scroll \
"${pw_yad}" --plug=$KEY --tabnum="${PW_GUI_SORT_TABS[0]}" --form --columns="$MAIN_GUI_COLUMNS" --align-buttons --scroll --homogeneous-column \
--field=" Lesta Game Center"!"$PW_GUI_ICON_PATH/lgc.png"!"":"FBTN" '@bash -c "button_click PW_LGC"' \
--field=" vkPlay Games Center"!"$PW_GUI_ICON_PATH/mygames.png"!"":"FBTN" '@bash -c "button_click PW_VKPLAY"' \
--field=" Battle.net Launcher"!"$PW_GUI_ICON_PATH/battle_net.png"!"":"FBTN" '@bash -c "button_click PW_BATTLE_NET"' \
......@@ -549,7 +636,7 @@ else
export START_FROM_PP_GUI=1
if [[ -z "${PW_ALL_DF}" ]] ; then
"${pw_yad_v13_0}" --key=$KEY --notebook --expand \
"${pw_yad}" --key=$KEY --notebook --expand \
--width="${PW_MAIN_SIZE_W}" --height="${PW_MAIN_SIZE_H}" --no-buttons \
--auto-close --window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
--title "PortProton-${install_ver} (${scripts_install_ver})" \
......@@ -561,7 +648,7 @@ else
--tab="$(eval_gettext "INSTALLED")"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" 2>/dev/null
YAD_STATUS="$?"
else
"${pw_yad_v13_0}" --key=$KEY --notebook --expand \
"${pw_yad}" --key=$KEY --notebook --expand \
--width="${PW_MAIN_SIZE_W}" --height="${PW_MAIN_SIZE_H}" --no-buttons \
--auto-close --window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
--title "PortProton-${install_ver} (${scripts_install_ver})" \
......@@ -575,11 +662,7 @@ else
fi
if [[ "$YAD_STATUS" == "1" || "$YAD_STATUS" == "252" ]] ; then exit 0 ; fi
if [[ -f "${PORT_WINE_TMP_PATH}/tmp_yad_form" ]]; then
PW_YAD_SET=$(head -n 1 "${PORT_WINE_TMP_PATH}/tmp_yad_form" | awk '{print $1}')
export PW_YAD_SET
fi
pw_yad_set_form
if [[ -f "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" ]] ; then
VULKAN_MOD="$(grep \;\; "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" | awk -F";" '{print $1}')"
PW_PREFIX_NAME="$(grep \;\; "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" | awk -F";" '{print $2}' | sed -e "s/[[:blank:]]/_/g" )"
......@@ -636,8 +719,11 @@ fi
open_changelog) open_changelog ;;
change_loc) change_loc ;;
change_mirror) change_mirror ;;
change_gui_start) change_gui_start ;;
120) gui_vkBasalt ;;
122) gui_MangoHud ;;
124) gui_dgVoodoo2 ;;
126) gui_gamescope ;;
pw_create_prefix_backup) pw_create_prefix_backup ;;
gui_credits) gui_credits ;;
pw_start_cont_xterm) pw_start_cont_xterm ;;
......
#!/usr/bin/env bash
#Author: Castro-Fidel (linux-gaming.ru)
#SCRIPTS_NEXT_VERSION=2303
#SCRIPTS_NEXT_VERSION=2305
########################################################################
export LANGUAGES_LIST="ru es"
export PW_MANGOHUD="0"
......@@ -42,7 +42,7 @@ export PW_DINPUT_PROTOCOL="0"
# export GTK_THEME="Adwaita:dark"
###DEFAULT_WINE###
export PW_WINE_USE="PROTON_LG"
export PW_PLUGINS_VER="_v15"
export PW_PLUGINS_VER="_v16"
export PW_FAKE_DLSS_VER="230506"
export PW_FAKE_DLSS_3_VER="090"
export PW_GALLIUM_NINE_VER="0.9"
......@@ -55,13 +55,16 @@ export WINE_FULLSCREEN_FSR_MODE="ultra"
export PW_VULKAN_USE="2"
export VKD3D_LIMIT_TESS_FACTORS="64"
export D8VK_VER="1.7.1-2367"
export DGV2_VER="2.81.3"
export DXVK_LEGACY_VER="1.6.1"
export DXVK_STABLE_VER="1.10.3-28"
export DXVK_GIT_VER="2.3.1-37"
export DXVK_GIT_VER="2.3.1-72"
export VKD3D_STABLE_VER="1.1-2602"
export VKD3D_GIT_VER="1.1-4051"
###DGVOODOO2###
export DGV2_VER="2.81.3"
export VKD3D_DGV2_VER="1.1-3622"
export VKD3D_GIT_VER="1.1-4022"
export PW_DGV2_ANTIALIASING="disabled"
export PW_DGV2_FILTERING="disabled"
###PREFIX_VERSION###
export DOTPFX_VER="48v7"
export DEFPFX_VER="v1"
......
......@@ -8,10 +8,12 @@ export YAD_OPTIONS="--css=$THEME_PATH/style.css \
--borders=5 \
--tab-borders=3 \
--keep-icon-size \
--class=PortProton \
"
export THEME_CHKBOX=CHK
export CHKBOX_SPACE=" "
export PW_YAD_CENTER=""
export BUTTON_SIZE_MM=32
export BUTTON_SIZE=24
......@@ -20,7 +22,13 @@ export TAB_SIZE=28
export PW_MAIN_SIZE_W=1100
export PW_MAIN_SIZE_H=350
export PW_START_SIZE_W=600
export PW_START_SIZE_H=350
export PW_TAB_POSITON=top
export MAIN_GUI_COLUMNS=3
export START_NOTEBOOK_GUI_COLUMNS=3
export START_PANED_GUI_COLUMNS=3
export PROGRESS_BAR_BORDERS_SIZE=20
export PROGRESS_BAR_WIDTH_SIZE=500
arrow {margin: 0px 5px}
window>box>image {margin: 15px 10px 0px 5px}
box>box>label {margin: 1px 0px 0px 0px}
switch {margin: 5px 20px 0px 0px}
box>box>grid>switch>slider {min-height: 0px; min-width: 22px}
scale>contents>trough>slider {min-height: 24px; min-width: 24px}
box>box>grid>label {margin: 0px 10px 0px 0px}
separator {margin-bottom:0px; background-size:0px}
#!/usr/bin/env bash
# export GTK_DEBUG=interactive
export THEME_NAME=compact
export THEME_PATH="$PW_GUI_THEMES_PATH/$THEME_NAME"
export COVERS_PATH="$PW_GUI_THEMES_PATH/classic"
export YAD_OPTIONS="--css=$THEME_PATH/style.css \
--borders=3 \
--tab-borders=0 \
--keep-icon-size \
--buttons-layout=expand \
--class=PortProton \
"
export THEME_CHKBOX=SW
export CHKBOX_SPACE=" "
export PW_YAD_CENTER="--center"
export BUTTON_SIZE_MM=32 # 24, 28, 32, 36, 40
export BUTTON_SIZE=32 # 24, 28, 32, 36, 40
export TAB_SIZE=32 # 24, 28, 32, 36, 40
export PW_MAIN_SIZE_W=1
export PW_MAIN_SIZE_H=350
export PW_START_SIZE_W=1
export PW_START_SIZE_H=350
export PW_START_TAB_POSITON=top
export MAIN_GUI_COLUMNS=3
export START_GUI_NOTEBOOK_COLUMNS=3
export START_GUI_PANED_COLUMNS=3
export PROGRESS_BAR_BORDERS_SIZE=20
export PROGRESS_BAR_WIDTH_SIZE=500
arrow {margin: 0px 5px}
window>box>image {margin: 15px 10px 0px 5px}
box>box>label {margin: 1px 0px 0px 0px}
switch {margin: 5px 20px 0px 0px}
box>box>grid>switch>slider {min-height: 0px; min-width: 22px}
scale>contents>trough>slider {min-height: 24px; min-width: 24px}
box>box>grid>label {margin: 0px 10px 0px 0px}
separator {margin-bottom:0px; background-size:0px}
window>box>box>image {margin: 5px 5px 0px 5px}
check {padding: 3px}
box>grid>entry {margin: 0px 10px 0px 0px}
checkbutton {margin: 0px 10px 0px 0px}
......@@ -11,11 +11,14 @@ export YAD_OPTIONS="--css=$THEME_PATH/style.css \
--borders=3 \
--tab-borders=0 \
--keep-icon-size \
--buttons-layout=expand \
--class=PortProton \
"
# настройка переключателей
export THEME_CHKBOX=SW # CHK - галки, SW - слайдер
export CHKBOX_SPACE=" " # растояние перед текстом
export CHKBOX_SPACE=" " # расстояние перед текстом у CHKBOX
export PW_YAD_CENTER="" # окно yad по центру, нужно добавить "--center"
# размер кнопок в главном меню
export BUTTON_SIZE_MM=36 # 24, 28, 32, 36, 40
......@@ -27,11 +30,18 @@ export BUTTON_SIZE=28 # 24, 28, 32, 36, 40
export TAB_SIZE=32 # 24, 28, 32, 36, 40
# размер главного меню
export PW_MAIN_SIZE_W=1100
export PW_MAIN_SIZE_H=350
export PW_MAIN_SIZE_W=1
export PW_MAIN_SIZE_H=330
# размер меню запуска и положения табов
export PW_START_SIZE_W=800
export PW_START_SIZE_H=330
export PW_TAB_POSITON=top
# количество столбцов в главном меню
export MAIN_GUI_COLUMNS=4
export MAIN_GUI_COLUMNS=3
export START_GUI_NOTEBOOK_COLUMNS=3
export START_GUI_PANED_COLUMNS=3
# настройки индикатора прогресса
export PROGRESS_BAR_BORDERS_SIZE=20
......
arrow {margin: 0px 5px}
window>box>image {margin: 15px 10px 0px 5px}
box>box>label {margin: 1px 0px 0px 0px}
switch {margin: 5px 20px 0px 0px}
box>box>grid>switch>slider {min-height: 0px; min-width: 22px}
scale>contents>trough>slider {min-height: 24px; min-width: 24px}
box>box>grid>label {margin: 0px 10px 0px 0px}
separator {margin-bottom:0px; background-size:0px}
window>box>box>image {margin: 5px 5px 0px 5px}
check {padding: 3px}
box>grid>entry {margin: 0px 10px 0px 0px}
checkbutton {margin: 0px 10px 0px 0px}
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
https://github.com/Castro-Fidel/yad_portproton
#!/usr/bin/env bash
# Author: Mikhail Tergoev (linux-gaming.ru)
# License MIT
########################################################################
unset PW_AUTOPLAY PW_SET_LANG PW_SILENT_INSTALL
export portname="PortProton"
export port_ver=1.5
########################################################################
cd "$(dirname "$(readlink -f "$0")")"
script_path="$(pwd)"
def_path="${HOME}/PortProton"
########################################################################
fatal () {
echo -e "\n${1}\n"
exit 1
}
########################################################################
if [ "$(id -u)" == "0" ] ; then
$yad_gui --error --text "\nDo not run PortProton from the superuser!" 2>/dev/null
fatal "Do not run the script from the superuser!"
fi
########################################################################
[ -z "${XDG_DATA_HOME}" ] && export XDG_DATA_HOME="$HOME/.local/share"
PP_CONFIG_FILE="${HOME}/.config/PortProton.conf"
if [ -f "${XDG_DATA_HOME}/PortWINE/PortProton/data/scripts/start.sh" ] ; then
echo "${XDG_DATA_HOME}/PortWINE/PortProton" > "${PP_CONFIG_FILE}"
elif [ -f "${HOME}/PortWINE/PortProton/data/scripts/start.sh" ] ; then
echo "${XDG_DATA_HOME}/PortWINE/PortProton" > "${PP_CONFIG_FILE}"
fi
if [ "$script_path" == "/usr/bin" ] && [ -f "${PP_CONFIG_FILE}" ] ; then
export PORT_WINE_PATH="$(cat "${PP_CONFIG_FILE}" | head -n 1)"
if [ -f "${PORT_WINE_PATH}/data/scripts/start.sh" ] ; then
echo "${port_ver}" > "${PORT_WINE_PATH}/data/tmp/PortProton_ver"
/usr/bin/env bash "${PORT_WINE_PATH}/data/scripts/start.sh" "$@"
exit 0
else
rm -f "${PP_CONFIG_FILE}"
fi
fi
if [[ "${LANG}" == "ru_RU.UTF-8" ]]
then PW_SET_LANG="Russian"
else PW_SET_LANG="English"
fi
########################################################################
pw_notify_send () {
if command -v notify-send &>/dev/null ; then
if [[ -f "/usr/share/icons/hicolor/scalable/apps/portproton.svg" ]]
then notify-send -u normal -a PortProton -i "/usr/share/icons/hicolor/scalable/apps/portproton.svg" $@ "${PW_NOTIFY_TEXT}"
else notify-send -u normal -a PortProton $@ "${PW_NOTIFY_TEXT}"
fi
fi
}
########################################################################
unset PW_USE_NS
YAD_PORTABLE_VER="12_3"
if command -v yad &>/dev/null ; then
yad_gui="yad --window-icon=portproton.svg --borders=10 --center --text-align=center"
elif curl -f -# -A "Mozilla/5.0 (compatible; Konqueror/2.1.1; X11)" \
-H 'Cache-Control: no-cache, no-store' -H 'Pragma: no-cache' \
-L "https://github.com/Castro-Fidel/PortWINE/releases/download/yad_portable_v${YAD_PORTABLE_VER}/yad_portable_v${YAD_PORTABLE_VER}.tar.xz" \
-o "${HOME}/yad_portable_v${YAD_PORTABLE_VER}.tar.xz"
then
mkdir -p "${HOME}/.local/bin/" &>/dev/null
tar -Jxhvf "${HOME}/yad_portable_v${YAD_PORTABLE_VER}.tar.xz" -C "${HOME}/.local/bin/"
if [[ -f "${HOME}/.local/bin/yad_portable_v${YAD_PORTABLE_VER}" ]]
then yad_gui="${HOME}/.local/bin/yad_portable_v${YAD_PORTABLE_VER} --borders=10 --center --text-align=center"
else PW_USE_NS=1
fi
else
PW_USE_NS=1
fi
########################################################################
export PW_SILENT_INSTALL=1
export PW_AUTOPLAY=1
export INSTALLING_PORT=1
########################################################################
if [[ "${PW_USE_NS}" != "1" ]] ; then
case $PW_SET_LANG in
"Russian")
inst1=$($yad_gui --title "Install PortProton" --text "Выберите путь для установки (обновления) PortProton,\nили оставьте его по умолчанию.\n\nВнимание:\nУстанавливать необходимо на файловую систему Linux (ext4, btrfs и прочие)." --list --radiolist --width=600 --height=200 \
--column="Выбор" --column "Путь:" \
TRUE "${def_path}" \
FALSE "Другой путь...")
[ "$?" != "0" ] && exit 1
inst1="$(echo $inst1 | awk -F'|' '{print $2}')"
case $inst1 in
"${def_path}")
D_PATH="${def_path}" ;;
"Другой путь...")
D_PATH="$($yad_gui --file --directory --title="Выберите путь..." --width=800 --height=800)" ;;
esac ;;
"English")
inst1=$($yad_gui --title "Install PortProton" --text "Select the installation path (update) port,\nor leave it in default." --list --radiolist --width=600 --height=200 \
--column="Set..." --column "Path:" \
TRUE "${def_path}" \
FALSE "Other path...")
inst1="$(echo $inst1 | awk -F'|' '{print $2}')"
[ "$?" != "0" ] && exit 1
case $inst1 in
"${def_path}")
D_PATH="${def_path}" ;;
"Other path...")
D_PATH="$($yad_gui --file --directory --title="Select the path...")" ;;
esac ;;
esac
[[ -z "${D_PATH}" ]] && fatal
echo "${D_PATH}" | grep -i "PortProton" 2>/dev/null || D_PATH="${D_PATH}/PortProton"
case $PW_SET_LANG in
"Russian")
progress_bar() {
$yad_gui --progress --title="Установка..." --text="Настройка PortProton" --pulsate --auto-close --auto-kill --width=500
} ;;
"English")
progress_bar() {
$yad_gui --progress --title="Install..." --text="Install PortProton" --pulsate --auto-close --auto-kill --width=500
} ;;
esac
else
D_PATH="${def_path}"
PW_NOTIFY_TEXT="Installing PortProton..."
pw_notify_send
fi
########################################################################
export PORT_WINE_PATH="${D_PATH}"
echo "${PORT_WINE_PATH}" > "${PP_CONFIG_FILE}"
if [ ! -d "${PORT_WINE_PATH}" ] ; then
mkdir -p "$PORT_WINE_PATH" || fatal "Cannot create a directory: $PORT_WINE_PATH"
else
rm -fr "${PORT_WINE_PATH}/data/tmp"
rm -f "${PORT_WINE_PATH}/data/scripts/"* 2>/dev/null
fi
########################################################################
mkdir -p "${PORT_WINE_PATH}/data/tmp"
echo "${port_ver}" > "${PORT_WINE_PATH}/data/tmp/PortProton_ver"
case "${PW_SET_LANG}" in
"Russian") echo "RUS" > "${PORT_WINE_PATH}/data/tmp/PortProton_loc" ;;
"English") echo "ENG" > "${PORT_WINE_PATH}/data/tmp/PortProton_loc" ;;
esac
########################################################################
if [[ "${PW_USE_NS}" != "1" ]] ; then
PW_NOTIFY_TEXT="Installing PortProton..."
pw_notify_send
fi
export PORT_WINE_TMP_PATH="${PORT_WINE_PATH}/data/tmp"
cd "${PORT_WINE_PATH}"
echo -e "\nTry download scripts from gitlab.eterfund.ru..."
if ! curl -f -# -A "Mozilla/5.0 (compatible; Konqueror/2.1.1; X11)" -H 'Cache-Control: no-cache, no-store' -H 'Pragma: no-cache' \
-L "https://gitlab.eterfund.ru/Castro-Fidel/PortWINE/-/archive/master/PortWINE-master.tar.gz" \
-o "${PORT_WINE_TMP_PATH}/PortWINE-master.tar.gz"
then
echo -e "\nError.\nTry download scripts from github.com..."
curl -f -# -A "Mozilla/5.0 (compatible; Konqueror/2.1.1; X11)" -H 'Cache-Control: no-cache, no-store' -H 'Pragma: no-cache' \
-L "https://github.com/Castro-Fidel/PortWINE/archive/refs/heads/master.tar.gz" \
-o "${PORT_WINE_TMP_PATH}/PortWINE-master.tar.gz"
[ "$?" != "0" ] && fatal "Critical error during file download!"
fi
echo "Try unpacking scripts..."
tar -xvzf "${PORT_WINE_TMP_PATH}/PortWINE-master.tar.gz" -C "${PORT_WINE_TMP_PATH}"
if [ "$?" = "0" ] ; then
[ ! -d "${PORT_WINE_PATH}/data/" ] && mkdir "${PORT_WINE_PATH}/data/"
cp -fr "${PORT_WINE_TMP_PATH}/PortWINE-master/data_from_portwine/"* "${PORT_WINE_PATH}/data/"
rm -f "${PORT_WINE_TMP_PATH}/PortWINE-master.tar.gz"
rm -fr "${PORT_WINE_TMP_PATH}/PortWINE-master/"
export scripts_current_ver=$(cat "${PORT_WINE_PATH}/data/scripts/var" | grep SCRIPTS_NEXT_VERSION | awk -F "=" '{print $2}')
echo "${scripts_current_ver}" > "${PORT_WINE_TMP_PATH}/scripts_ver"
else
rm -f "${PORT_WINE_TMP_PATH}/PortWINE-master.tar.gz"
[ "$?" != "0" ] && fatal "Critical error during file unpacking!"
fi
########################################################################
cd "${PORT_WINE_PATH}/data/scripts"
/usr/bin/env bash "${PORT_WINE_PATH}/data/scripts/setup.sh" && exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment