Compare commits
	
		
			5 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 936c27e919 | ||
|  | aa6db372fe | ||
|  | 9af583e10e | ||
|  | 137abea953 | ||
|  | c4cab73dbb | 
| @@ -1,34 +1,140 @@ | ||||
| История изменений и дальнейшие планы: | ||||
| ----------------------------------------- | ||||
| В планах: | ||||
| * вывод changlog после обновления | ||||
| * перепроверить KILL_WINESERVER | ||||
| * исправить работу windows steam | ||||
| * создать defaut префик и сделать авто симлинки в другие префиксы (games, programm files, users) | ||||
| * добавить кнопку отчистки префикса без затрагивания игр и программ | ||||
| * удалить старые mono и gecko из .PortWINE | ||||
| * добавить вопрос перед обновлением скриптов | ||||
| * добавить автоматическое обновление при выходе нового порта | ||||
| * добавить вывод ошибки при скачивании файла при автоматической установки | ||||
| * добавить фикс установки dotnet | ||||
| * добавить кнопку очистки префикса в PortProton | ||||
| * проверка версий и обновления скриптов из https://github.com/Castro-Fidel/PortWINE/archive/refs/heads/master.zip | ||||
| * добавить условие: если установлен vcrun2019, то не устанавливать vcrun2015-2017 | ||||
| * EDIT DB открывается не у всех | ||||
| * пересоздать удаление PortProton (чистка ярлыков в меню с помощью grep "путь до порта") | ||||
| * проверить windows steam под PortProton | ||||
| * убрать все *_vars | ||||
| * выкачка либов из серверов кроссовера? | ||||
| * создать defaut префикс и сделать авто симлинки в другие префиксы (games, programm files, users) | ||||
| * иконка в трей для PortProton | ||||
| * пофиксить выхлоп debug | ||||
| * сменить цвет url | ||||
| * добавить контроль за окнами для правильного отключения прогресс бара | ||||
| * проверка версий dxvk на github: curl -s https://github.com/doitsujin/dxvk/releases | grep Version | awk {'print $3'} | sed 's%</a>%%g' | ||||
| * проверка версий vkd3d на github: curl -s https://github.com/HansKristian-Work/vkd3d-proton/releases | grep Version | awk {'print $3'} | sed 's%</a>%%g' | ||||
| * зарабатывать на жизнь развитием проекта с помощью вашей подписки на https://boosty.to/portwine-linux.ru | ||||
| ----------------------------------------- | ||||
| ###Scripts version 1053### | ||||
| * HOTFIX - перенос всех функций в скрипте runlib (наверх) | ||||
| * добавлена переменная в default ##export PW_WINE_ALLOW_XIM=1, которая отключает XIM (X input manager) | ||||
| * в функции PW_INIT_PFX добавлено копирование всех dll из библиотек wine/lib(64) в префикс (если префикса не существует) | ||||
|  | ||||
| ###Scripts version 1034### | ||||
| ###Scripts version 1052### | ||||
| * отключена автоотчистка ~/.PortWINE | ||||
| * отключение сервиса OriginWebHelperService.exe (правкой реестра) перенесена в скрипт var | ||||
| * в AUTOINSTALL добавлена установка EVE Online | ||||
|  | ||||
| ###Scripts version 1051### | ||||
| * изменён db файл Origin для отключение сервиса OriginWebHelperService.exe (правкой реестра) | ||||
|  | ||||
| ###Scripts version 1050### | ||||
| * добавлен фикc установки Epic Games Launcher | ||||
| * принудительно отключен сервис OriginWebHelperService.exe | ||||
| * в AUTOINSTALL добавлена установка GoG Galaxy | ||||
|  | ||||
| ###PortProton-76### 29.04.2021 ###Scripts version 1049### | ||||
| * обновить Proton Experimental (2021/04/27) | ||||
| * добавлен вывод changelog и debug во встроенном YAD (gui) | ||||
| * в AUTOINSTALL добавлена установка Epic Games Launcher | ||||
| * исправлена ошибка: 00bc:err:winediag:load_dxvk_config Couldn't load dxvk_config.dll | ||||
|  | ||||
| ###Scripts version 1048### | ||||
| * реализовано обновление скриптов "налету" (без необходимости перезапускать порт) | ||||
|  | ||||
| ###Scripts version 1047### | ||||
| * в AUTOINSTALL добавлены установки "Origin" и "Battle.net Launcher" | ||||
| * увеличено время ожидания ответа при проверки связи с интернетом (ping -w5 -c1 github.com) | ||||
| * увеличено количество попыток скачивания для неустойчивого интернет соединения (wget -c -t 10 -T 1) | ||||
| * в GUI PortProton добавлена кнопка F.A.Q. для открытия справочной страницы portwine-linux.ru | ||||
|  | ||||
| ###Scripts version 1046### | ||||
| * обновлена верси VKD3D используемая по умолчанию до версии 2.3.1 (скрипт var, переменная export PW_DEF_VKD3D_VER=2.3.1) | ||||
| * HOTFIX сохранение выбраного режима запуска в существующий файл db при создании ярлыка | ||||
|  | ||||
| ###Scripts version 1045### | ||||
| * HOTFIX установка компонентов при отсутствии winetricks.log | ||||
|  | ||||
| ###Scripts version 1044### | ||||
| * переработано основное диалоговое окно при запуске PortProton и добавлена вкладка AUTOINSTALL | ||||
| * выбор debug снова есть при запуска с ярлыка PortProton | ||||
| * минимальный набор библиотек для установки с winetricks перенесен в default db | ||||
| * проверка уже установленных библиотек с помощью winetricks повторно не производится | ||||
| * после создания нового префикса, требование перезапуска порта больше нет  | ||||
| * обновление префикса происходит в фоновом режиме | ||||
| * улучшена работа прогресс-бара | ||||
|  | ||||
| ###Scripts version 1043### | ||||
| * HOTFIX создания ярлыка (использование png вместо ico) | ||||
|  | ||||
| ###Scripts version 1042### | ||||
| * при запуске PortProton.desktop добавлена кнопка AUTOINSTALL | ||||
| * в AUTOINSTALL добавлена автоматическая установка WGC | ||||
| * исправлено отображение иконок на DE GNOME | ||||
|  | ||||
| ###Scripts version 1041### | ||||
| * wine-mono обновлен до версии 6.1.2 | ||||
|  | ||||
| ###PortProton-75### 24.04.2021 ###Scripts version 1040### | ||||
| * обновлен wine Proton experimental 6.3 от 23.04.2021 | ||||
| * добавлена функция pw_clear_pfx для отчистки префикса порта во время обновления без затрагивания игр и программ  | ||||
| * проверка и настройка переменных для MANGOHUD добавлены функцию pw_mangohud_check  | ||||
| * версия VKD3D по умолчанию = 2.3 | ||||
| * добавлена поддержка DXR (RTX) в режиме VKD3D, при условии использования переменной PW_DXR_ON=1 | ||||
| * переменная PW_DXR_ON добавлена в default db | ||||
| * переменная PW_DXVK_NO_ASYNC переименованна в PW_VULKAN_NO_ASYNC и теперь отключает асинхронные вызовы как в DXVK, так и в VKD3D | ||||
|  | ||||
| ###Scripts version 1039### | ||||
| * фикс выбора режима запуска (dxvk, vkd3d, opengl) | ||||
|  | ||||
| ###Scripts version 1038### | ||||
| * распаковка tar.xz вынесена в отдельную функцию unpack_tar_xz | ||||
| * добавлена проверка связи с серверами для автономной работы порта | ||||
| * ускорена работа reset скрипта останавливающая все процессы порта | ||||
| * исправлены ошибки связанные с остановкой отсутствующих pid-оф yad и процессов wine. | ||||
| * удалено использование wineserver -k в функции KILL_PORTWINE (влияло на инициализацию префикса) | ||||
| * добавлена отчистка ~/.PortWINE, при условии установки новой версии порта | ||||
| * добавлена вся информация из db файла и winetricks.log в debug | ||||
| * удален каталог vars (из за db файлоа больше в нем нет необходимости) | ||||
| * скрипт PortProton_vars перенесен в каталог scripts и переименован в var | ||||
| * добавлена проверка установки mangohud в систему | ||||
| * уменьшина ширина индикатора загрузки на 100px  | ||||
| * улучшено определение необходимого db файла для запуска | ||||
|  | ||||
| ###PortProton-74### 20.04.2021 ###Scripts version 1037### | ||||
| * обновлен wine до версии Proton 6.3-2 next | ||||
| * в setup db изменен список библиотек (фикс  для "xatab") "vcrun6 mfc42 vcrun6sp6 mfc120 vcrun2013"  | ||||
| * добавить выбор версий dxvk и vkd3d в db файле, с последующей закачкой с github при отсутствии в ~/.PortWINE/vulkan | ||||
| * обновлены libs до v9 (добавлен пакет zstd для реализация функции смены vkd3d) | ||||
| * произведена частичная чистка и оптимизация кода | ||||
| * добавлен вывод changlog после обновления | ||||
|  | ||||
| ###PortProton-73### 18.04.2021 ###Scripts version 1036### | ||||
| * фикс для StarCraft (db) | ||||
| * фикс работы порта в solus (отключение xterm) | ||||
| * фикс создания циклической ссылки drive_c внутри drive_c | ||||
| * удален &>>/dev/null из PW_RUN (ломает запуск неторорых игр и приложений) | ||||
| * очистищен код функции PW_RUN (убрано условие optirun_on за ненадобностью) | ||||
| * исправлен минимальный набор библиотек в default db (vcrun6 vcrun6sp6 mfc42 d3dcompiler_42 d3dcompiler_43 d3dcompiler_47 d3dx9) | ||||
|  | ||||
|  | ||||
| ###PortProton-72###   17.04.2021   ###Scripts version 1035### | ||||
| * обновлен wine до версии Proton experimental-6.3-20210407b (совместно с dxvk и vkd3d) | ||||
| * добавлен фикс работы 32-битных игр в режиме DXVK (export PW_FORCE_LARGE_ADDRESS_AWARE=1) | ||||
| * изменен список библиотек для запуска неизвестных игр (для которых еще нет db файлов) | ||||
| * добавлен dxvk.conf в каталог data | ||||
| * обновлеы libs до v.8 | ||||
| * hotfix для EGS | ||||
| * в dxvk и opengl режиме, по умолчанию выбран win7 | ||||
|  | ||||
| ###Scripts version 1033### | ||||
| * убран xterm из debug (иначе ломает шрифты) | ||||
| * добавлена кнопка редактирования найденного db файла | ||||
| * ТЕСТ: автоудаление PINNED_LIBS и отключение setup.sh --force | ||||
|  | ||||
| ###Scripts version 1032### | ||||
| * изменение сравнения версий скриптов и портов "$(curl -s --list-only "https://portwine-linux.ru/ftp/current_version/blabla_ver")"  | ||||
| * автоматическая установка в префикс порта PW_DLL_INSTALL="vcrun2017 vcrun6 vcrun6sp6 mfc42" | ||||
| * по умолчанию под dxvk и opengl используется win10 | ||||
| * исправлено создание db файла при создании ярлыков, в именах которых присутствует одниковвые названия запускаемого файла | ||||
|  | ||||
| ###Scripts version 1031### | ||||
| * исправили создания префикса на некоторых системах при использования встроенного xterm из ~/PortWINE/libs  | ||||
|  | ||||
| ###PortProton-71###    11.04.2021   | ||||
|   | ||||
							
								
								
									
										516
									
								
								data_from_portwine/dxvk.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										516
									
								
								data_from_portwine/dxvk.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,516 @@ | ||||
|  # Create the VkSurface on the first call to IDXGISwapChain::Present, | ||||
| # rather than when creating the swap chain. Some games that start | ||||
| # rendering with a different graphics API may require this option, | ||||
| # or otherwise the window may stay black. | ||||
| #  | ||||
| # Supported values: True, False | ||||
|  | ||||
| # dxgi.deferSurfaceCreation = False | ||||
| # d3d9.deferSurfaceCreation = False | ||||
|  | ||||
|  | ||||
| # Enforce a stricter maximum frame latency. Overrides the application | ||||
| # setting specified by calling IDXGIDevice::SetMaximumFrameLatency. | ||||
| # Setting this to 0 will have no effect. | ||||
| #  | ||||
| # Supported values : 0 - 16 | ||||
|  | ||||
| # dxgi.maxFrameLatency = 0 | ||||
| # d3d9.maxFrameLatency = 0 | ||||
|  | ||||
|  | ||||
| # Override PCI vendor and device IDs reported to the application. Can | ||||
| # cause the app to adjust behaviour depending on the selected values. | ||||
| # | ||||
| # Supported values: Any four-digit hex number. | ||||
|  | ||||
| # dxgi.customDeviceId = 0000 | ||||
| # dxgi.customVendorId = 0000 | ||||
|  | ||||
| # d3d9.customDeviceId = 0000 | ||||
| # d3d9.customVendorId = 0000 | ||||
|  | ||||
|  | ||||
| # Report Nvidia GPUs as AMD GPUs by default. This is enabled by default | ||||
| # to work around issues with NVAPI, but may cause issues in some games. | ||||
| # | ||||
| # Supported values: True, False | ||||
|  | ||||
| # dxgi.nvapiHack = True | ||||
|  | ||||
|  | ||||
|  | ||||
| # Override maximum amount of device memory and shared system memory | ||||
| # reported to the application. This may fix texture streaming issues | ||||
| # in games that do not support cards with large amounts of VRAM. | ||||
| # | ||||
| # Supported values: Any number in Megabytes. | ||||
|  | ||||
| # dxgi.maxDeviceMemory = 0 | ||||
| # dxgi.maxSharedMemory = 0 | ||||
|  | ||||
|  | ||||
| # Override back buffer count for the Vulkan swap chain. | ||||
| # Setting this to 0 or less will have no effect. | ||||
| # | ||||
| # Supported values: Any number greater than or equal to 2. | ||||
|  | ||||
| # dxgi.numBackBuffers = 0 | ||||
| # d3d9.numBackBuffers = 0 | ||||
|  | ||||
|  | ||||
| # Overrides synchronization interval (Vsync) for presentation. | ||||
| # Setting this to 0 disables vertical synchronization entirely. | ||||
| # A positive value 'n' will enable Vsync and repeat the same | ||||
| # image n times, and a negative value will have no effect. | ||||
| # | ||||
| # Supported values: Any non-negative number | ||||
|  | ||||
| # dxgi.syncInterval = -1 | ||||
| # d3d9.presentInterval = -1 | ||||
|  | ||||
|  | ||||
| # True enables the mailbox present mode in case regular Vsync is disabled. | ||||
| # This should avoid tearing, but may be unsupported on some systems | ||||
| # or require setting dxgi.numBackBuffers to a higher value in order | ||||
| # to work properly.  | ||||
| # | ||||
| # False enables the relaxed fifo present mode in case regular Vsync is enabled. | ||||
| # This should result in tearing but reduce stutter if FPS are too low, | ||||
| # but may be unsupported on some systems. | ||||
| # | ||||
| # Please do not report issues with this option. | ||||
| # | ||||
| # Supported values: Auto, True, False | ||||
|  | ||||
| # dxgi.tearFree = Auto | ||||
| # d3d9.tearFree = Auto | ||||
|  | ||||
|  | ||||
| # Performs range check on dynamically indexed constant buffers in shaders. | ||||
| # This may be needed to work around a certain type of game bug, but may | ||||
| # also introduce incorrect behaviour. | ||||
| # | ||||
| # Supported values: True, False | ||||
|  | ||||
| # d3d11.constantBufferRangeCheck = False | ||||
|  | ||||
|  | ||||
| # Assume single-use mode for command lists created on deferred contexts. | ||||
| # This may need to be disabled for some applications to avoid rendering | ||||
| # issues, which may come at a significant performance cost. | ||||
| # | ||||
| # Supported values: True, False | ||||
|  | ||||
| # d3d11.dcSingleUseMode = True | ||||
|  | ||||
|  | ||||
| # Override the maximum feature level that a D3D11 device can be created | ||||
| # with. Setting this to a higher value may allow some applications to run | ||||
| # that would otherwise fail to create a D3D11 device. | ||||
| # | ||||
| # Supported values: 9_1, 9_2, 9_3, 10_0, 10_1, 11_0, 11_1 | ||||
|  | ||||
| # d3d11.maxFeatureLevel = 11_1 | ||||
|  | ||||
|  | ||||
| # Overrides the maximum allowed tessellation factor. This can be used to | ||||
| # improve performance in titles which overuse tessellation. | ||||
| #  | ||||
| # Supported values: Any number between 8 and 64 | ||||
|  | ||||
| # d3d11.maxTessFactor = 0 | ||||
|  | ||||
|  | ||||
| # Enables relaxed pipeline barriers around UAV writes. | ||||
| #  | ||||
| # This may improve performance in some games, but may also introduce | ||||
| # rendering issues. Please don't report bugs with the option enabled. | ||||
| # | ||||
| # Supported values: True, False | ||||
|  | ||||
| # d3d11.relaxedBarriers = False | ||||
|  | ||||
|  | ||||
| # Overrides anisotropic filtering for all samplers. Set this to a positive | ||||
| # value to enable AF for all samplers in the game, or to 0 in order to | ||||
| # disable AF entirely. Negative values will have no effect. | ||||
| #  | ||||
| # Supported values: Any number between 0 and 16 | ||||
|  | ||||
| # d3d11.samplerAnisotropy = -1 | ||||
| # d3d9.samplerAnisotropy = -1 | ||||
|  | ||||
|  | ||||
| # Declares vertex positions as invariant in order to solve | ||||
| # potential Z-fighting issues at a small performance cost. | ||||
| # | ||||
| # Supported values: True, False | ||||
|  | ||||
| # d3d11.invariantPosition = True | ||||
| # d3d9.invariantPosition = False | ||||
|  | ||||
|  | ||||
| # Replaces NaN outputs from fragment shaders with zeroes for floating | ||||
| # point render target. Used in some games to prevent artifacting. | ||||
| # | ||||
| # Supported values: True, False | ||||
|  | ||||
| # d3d11.enableRtOutputNanFixup = False | ||||
|  | ||||
|  | ||||
| # Clears workgroup memory in compute shaders to zero. Some games don't do | ||||
| # this and rely on undefined behaviour. Enabling may reduce performance. | ||||
| # | ||||
| # Supported values: True, False | ||||
|  | ||||
| # d3d11.zeroWorkgroupMemory = False | ||||
|  | ||||
|  | ||||
| # Sets number of pipeline compiler threads. | ||||
| #  | ||||
| # Supported values: | ||||
| # - 0 to automatically determine the number of threads to use | ||||
| # - any positive number to enforce the thread count | ||||
|  | ||||
| # dxvk.numCompilerThreads = 0 | ||||
|  | ||||
|  | ||||
| # Toggles raw SSBO usage. | ||||
| #  | ||||
| # Uses storage buffers to implement raw and structured buffer | ||||
| # views. Enabled by default on hardware which has a storage | ||||
| # buffer offset alignment requirement of 4 Bytes (e.g. AMD). | ||||
| # Enabling this may improve performance, but is not safe on | ||||
| # hardware with higher alignment requirements. | ||||
| #  | ||||
| # Supported values: | ||||
| # - Auto: Don't change the default | ||||
| # - True, False: Always enable / disable | ||||
|  | ||||
| # dxvk.useRawSsbo = Auto | ||||
|  | ||||
|  | ||||
| # Toggles early discard. | ||||
| #  | ||||
| # Uses subgroup operations to determine whether it is safe to | ||||
| # discard fragments before the end of a fragment shader. This | ||||
| # is enabled by default on all drivers except RADV and Nvidia. | ||||
| # Enabling this may improve or degrade performance depending | ||||
| # on the game and hardware, or cause other issues. | ||||
| #  | ||||
| # Supported values: | ||||
| # - Auto: Don't change the default | ||||
| # - True, False: Always enable / disable | ||||
|  | ||||
| # dxvk.useEarlyDiscard = Auto | ||||
|  | ||||
|  | ||||
| # Controls workaround for NVIDIA HVV Heap bug. | ||||
| # | ||||
| # Limits the budget of NVIDIA's HVV (host-visible, | ||||
| # device-local) heap to be half of the reported size. This is | ||||
| # needed to avoid NVIDIA driver bug 3114283, and defaults to | ||||
| # being enabled on all affected drivers. | ||||
| # | ||||
| # Supported values: | ||||
| # - Auto: Don't change the default | ||||
| # - True, False: Always enable / disable | ||||
|  | ||||
| # dxvk.halveNvidiaHVVHeap = Auto | ||||
|  | ||||
|  | ||||
| # Sets enabled HUD elements | ||||
| #  | ||||
| # Behaves like the DXVK_HUD environment variable if the | ||||
| # environment variable is not set, otherwise it will be | ||||
| # ignored. The syntax is identical. | ||||
|  | ||||
| # dxvk.hud =  | ||||
|  | ||||
|  | ||||
| # Reported shader model | ||||
| # | ||||
| # The shader model to state that we support in the device | ||||
| # capabilities that the applicatation queries. | ||||
| #  | ||||
| # Supported values: | ||||
| # - 1: Shader Model 1 | ||||
| # - 2: Shader Model 2 | ||||
| # - 3: Shader Model 3 | ||||
|  | ||||
| # d3d9.shaderModel = 3 | ||||
|  | ||||
|  | ||||
| # Evict Managed on Unlock | ||||
| #  | ||||
| # Decides whether we should evict managed resources from | ||||
| # system memory when they are unlocked entirely. | ||||
| # | ||||
| # Supported values: | ||||
| # - True, False: Always enable / disable | ||||
|  | ||||
| #  d3d9.evictManagedOnUnlock = False | ||||
|  | ||||
|  | ||||
| # DPI Awareness | ||||
| #  | ||||
| # Decides whether we should call SetProcessDPIAware on device | ||||
| # creation. Helps avoid upscaling blur in modern Windows on | ||||
| # Hi-DPI screens/devices. | ||||
| # | ||||
| # Supported values: | ||||
| # - True, False: Always enable / disable | ||||
|  | ||||
| # d3d9.dpiAware = True | ||||
|  | ||||
|  | ||||
| # Strict Constant Copies | ||||
| #  | ||||
| # Decides whether we should always copy defined constants to | ||||
| # the UBO when relative addressing is used, or only when the | ||||
| # relative addressing starts a defined constant. | ||||
| # | ||||
| # Supported values: | ||||
| # - True, False: Always enable / disable | ||||
|  | ||||
| # d3d9.strictConstantCopies = False | ||||
|  | ||||
|  | ||||
| # Strict Pow | ||||
| #  | ||||
| # Decides whether we have an opSelect for handling pow(0,0) = 0 | ||||
| # otherwise it becomes undefined. | ||||
| # | ||||
| # Supported values: | ||||
| # - True, False: Always enable / disable | ||||
|  | ||||
| # d3d9.strictPow = True | ||||
|  | ||||
|  | ||||
| # Lenient Clear | ||||
| # | ||||
| # Decides whether or not we fastpath clear anyway if we are close enough to | ||||
| # clearing a full render target. | ||||
| # | ||||
| # Supported values: | ||||
| # - True, False: Always enable / disable | ||||
|  | ||||
| # d3d9.lenientClear = False | ||||
|  | ||||
|  | ||||
| # Max available memory | ||||
| # | ||||
| # Changes the max initial value used in tracking and GetAvailableTextureMem | ||||
| # Value in Megabytes | ||||
| # | ||||
| # Supported values: | ||||
| # - Max Available Memory: Any int32_t | ||||
| # - Memory Tracking Testing: True, False | ||||
|  | ||||
| # d3d9.maxAvailableMemory = 1024 | ||||
| d3d9.memoryTrackTest = False | ||||
|  | ||||
|  | ||||
| # Force enable/disable floating point quirk emulation | ||||
| #  | ||||
| # Force toggle anything * 0 emulation | ||||
| # Tristate | ||||
| # Supported values: | ||||
| # - True/False | ||||
|  | ||||
| # d3d9.floatEmulation =  | ||||
|  | ||||
|  | ||||
| # Enable dialog box mode | ||||
| # | ||||
| # Changes the default state of dialog box mode. | ||||
| # *Disables* exclusive fullscreen when enabled. | ||||
| # | ||||
| # Supported values: | ||||
| # - True, False: Always enable / disable | ||||
|  | ||||
| # d3d9.enableDialogMode = False | ||||
|  | ||||
| # Overrides the application's MSAA level on the swapchain | ||||
| #  | ||||
| # Supported values: -1 (application) and 0 to 16 (user override) | ||||
|  | ||||
| # d3d9.forceSwapchainMSAA = -1 | ||||
|  | ||||
|  | ||||
| # Long Mad | ||||
| # | ||||
| # Should we make our Mads a FFma or do it the long way with an FMul and an FAdd? | ||||
| # This solves some rendering bugs in games that have z-pass shaders which | ||||
| # don't match entirely to the regular vertex shader in this way. | ||||
| # | ||||
| # Supported values: | ||||
| # - True/False | ||||
|  | ||||
| # d3d9.longMad = False | ||||
|  | ||||
| # Alpha Test Wiggle Room | ||||
| # | ||||
| # Workaround for games using alpha test == 1.0, etc due to wonky interpolation or | ||||
| # misc. imprecision on some vendors | ||||
| # | ||||
| # Supported values: | ||||
| # - True/False | ||||
|  | ||||
| # d3d9.alphaTestWiggleRoom = False | ||||
|  | ||||
| # Device Local Constant Buffers | ||||
| # | ||||
| # Enables using device local, host accessible memory for constant buffers in D3D9. | ||||
| # This tends to actually be slower for some reason on AMD, | ||||
| # and the exact same performance on NVIDIA. | ||||
| # | ||||
| # Supported values: | ||||
| # - True/False | ||||
|  | ||||
| # d3d9.deviceLocalConstantBuffers = False | ||||
|  | ||||
| # Allow Read Only | ||||
| # | ||||
| # Enables using the D3DLOCK_READONLY flag. Some apps use this | ||||
| # incorrectly, and write when they should be reading. | ||||
| # | ||||
| # Supported values: | ||||
| # - True/False | ||||
|  | ||||
| # d3d9.allowLockFlagReadonly = True | ||||
|  | ||||
| # No Explicit Front Buffer | ||||
| # | ||||
| # Disables the front buffer | ||||
| # | ||||
| # Supported values: | ||||
| # - True/False | ||||
|  | ||||
| # d3d9.noExplicitFrontBuffer = False | ||||
|  | ||||
| # Support DF formats | ||||
| # | ||||
| # Support the vendor extension DF floating point depth formats | ||||
| # | ||||
| # Supported values: | ||||
| # - True/False | ||||
|  | ||||
| # d3d9.supportDFFormats = True | ||||
|  | ||||
| # Support X4R4G4B4 | ||||
| # | ||||
| # Support the X4R4G4B4 format. | ||||
| # The Sims 2 is a horrible game made by complete morons. | ||||
| # | ||||
| # Supported values: | ||||
| # - True/False | ||||
|  | ||||
| # d3d9.supportX4R4G4B4 = True | ||||
|  | ||||
| # Support D32 | ||||
| # | ||||
| # Support the D32 format. | ||||
| # | ||||
| # Supported values: | ||||
| # - True/False | ||||
|  | ||||
| # d3d9.supportD32 = True | ||||
|  | ||||
| # SWVP Constant Counts | ||||
| # | ||||
| # The number of constants available when using Software Vertex Processing. | ||||
| # | ||||
| # Supported values: | ||||
| # - Integers | ||||
|  | ||||
| # d3d9.swvpFloatCount = 8192 | ||||
| # d3d9.swvpIntCount = 2048 | ||||
| # d3d9.swvpBoolCount = 2048 | ||||
|  | ||||
| # Disable A8 as a Render Target | ||||
| # | ||||
| # Disable support for A8 format render targets | ||||
| # Once again, The Sims 2 is a horrible game made by complete morons. | ||||
| # | ||||
| # Supported values: | ||||
| # - True/False | ||||
|  | ||||
| # d3d9.disableA8RT = False | ||||
|  | ||||
| # Support for VCache Query | ||||
| # | ||||
| # Support for the vcache query | ||||
| # Not very important as a user config. | ||||
| # Used internally. | ||||
| # | ||||
| # Supported values: | ||||
| # - True/False | ||||
|  | ||||
| # Defaults to True if vendorId == 0x10de | ||||
| # d3d9.supportVCache = True | ||||
|  | ||||
| # Force Sampler Type Spec Constants | ||||
| # | ||||
| # Useful if games use the wrong image and sampler | ||||
| # type combo like Halo: CE or Spellforce. | ||||
| # Can fix rendering in older, broken games in some instances. | ||||
| # | ||||
| # Supported values: | ||||
| # - True/False | ||||
|  | ||||
| # d3d9.forceSamplerTypeSpecConstants = False | ||||
|  | ||||
| # Force Aspect Ratio | ||||
| # | ||||
| # Only exposes modes with a given aspect ratio. | ||||
| # Useful for titles that break if they see ultra-wide. | ||||
| # | ||||
| # Supported values: | ||||
| # - Any ratio, ie. "16:9", "4:3" | ||||
|  | ||||
| # d3d9.forceAspectRatio = "" | ||||
|  | ||||
| # Allow Do Not Wait | ||||
| # | ||||
| # Allow the do not wait lock flag to be used | ||||
| # Useful if some apps use this incorrectly. | ||||
| # | ||||
| # Supported values: | ||||
| # - True/False | ||||
|  | ||||
| # d3d9.allowDoNotWait = True | ||||
|  | ||||
| # Allow Discard | ||||
| # | ||||
| # Allow the discard lock flag to be used | ||||
| # Useful if some apps use this incorrectly. | ||||
| # | ||||
| # Supported values: | ||||
| # - True/False | ||||
|  | ||||
| # d3d9.allowDiscard = True | ||||
|  | ||||
| # Enumerate by Displays | ||||
| # | ||||
| # Whether we should enumerate D3D9 adapters by display (windows behaviour) | ||||
| # or by physical adapter. | ||||
| # May be useful in PRIME setups. | ||||
| # | ||||
| # Supported values: | ||||
| # - True/False | ||||
|  | ||||
| # d3d9.enumerateByDisplays = True | ||||
|  | ||||
| # APITrace Mode | ||||
| # | ||||
| # Makes all host visible buffers cached and coherent | ||||
| # Improves performance when apitracing, but also can impact | ||||
| # some dumb games. | ||||
| # | ||||
| # Supported values: | ||||
| # - True/False | ||||
|  | ||||
| # d3d9.apitraceMode = False | ||||
| # d3d11.apitraceMode = False | ||||
							
								
								
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/battle_net.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/battle_net.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 2.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/epicgames.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/epicgames.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 1.7 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/eve.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/eve.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 9.1 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/gog.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/gog.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 6.5 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/origin.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/origin.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 1.8 KiB | 
							
								
								
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/wgc.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								data_from_portwine/img/gui/wgc.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 2.7 KiB | 
							
								
								
									
										123
									
								
								data_from_portwine/scripts/autoinstall
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										123
									
								
								data_from_portwine/scripts/autoinstall
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,123 @@ | ||||
| #!/bin/bash | ||||
| # Author: Castro-Fidel (PortWINE-Linux.ru) | ||||
| ######################################################################## | ||||
| export PW_USER_TEMP="$WINEPREFIX/drive_c/users/${USER}/Temp" | ||||
| export PW_FORCE_LARGE_ADDRESS_AWARE=0   | ||||
| export PW_FORCE_DISABLED_GAMEMOD=1  | ||||
| export PW_CHECK_AUTOINSTAL=1 | ||||
| export PW_WINEDBG_DISABLE=1 | ||||
| export PW_NO_WRITE_WATCH=0           | ||||
| export PW_VULKAN_USE=0      | ||||
| export PW_NO_FSYNC=1                          | ||||
| export PW_NO_ESYNC=1  | ||||
|  | ||||
| PW_WGC () { | ||||
|     export LAUNCH_PARAMETERS=("/SILENT" "/SP-")    | ||||
|     [ "${update_loc}" = "RUS" ] && export WGC_LOC=RU || export WGC_LOC=EU | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/Wargaming_Game_Center_Install_WoT_RU.exe" | ||||
|     START_PORTWINE | ||||
|     if try_download "https://redirect.wargaming.net/WGC/Wargaming_Game_Center_Install_WoT_${WGC_LOC}.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         PW_START_PROGRESS_BAR_CS "Starting WGC installation..." | ||||
|         PW_RUN "${PW_AUTOINSTALL_EXE}" | ||||
|         portwine_exe="$WINEPREFIX/drive_c/ProgramData/Wargaming.net/GameCenter/wgc.exe" | ||||
|         try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|         KILL_PORTWINE | ||||
|         PORTWINE_CREATE_SHORTCUT | ||||
|     fi | ||||
|     STOP_PORTWINE | ||||
| } | ||||
|  | ||||
| PW_ORIGIN () { | ||||
|     export LAUNCH_PARAMETERS=("/silent" ) | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/OriginSetup.exe" | ||||
|     START_PORTWINE | ||||
|     if try_download "https://download.dm.origin.com/origin/live/OriginSetup.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         PW_START_PROGRESS_BAR_BLOCK "Installing the Origin. Please wait..." | ||||
|         PW_RUN "${PW_AUTOINSTALL_EXE}" | ||||
|         portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/Origin/Origin.exe" | ||||
|         PW_STOP_PROGRESS_BAR | ||||
|         try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|         KILL_PORTWINE | ||||
|         PORTWINE_CREATE_SHORTCUT | ||||
|     fi | ||||
|     STOP_PORTWINE | ||||
| } | ||||
|  | ||||
| PW_BATTLE_NET () { | ||||
|     [ "${update_loc}" = "RUS" ] && export BN_LOC=ruRU || export BN_LOC=enUS | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/Battle.net-Setup-${BN_LOC}.exe" | ||||
|     START_PORTWINE | ||||
|     if try_download "http://dist.blizzard.com/downloads/bna-installers/322d5bb9ae0318de3d4cde7641c96425/retail.1/Battle.net-Setup-${BN_LOC}.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         PW_START_PROGRESS_BAR "Installing the Battle Net. Please wait..." | ||||
|         PW_RUN "${PW_AUTOINSTALL_EXE}" | ||||
|         while [ ! -z `pgrep Battle.net* | head -n 1` ] && [ -z `pgrep Battle.net.exe | head -n 1` ] ; do sleep 2 ; done | ||||
|         KILL_PORTWINE       | ||||
|         portwine_exe=`find "$WINEPREFIX/drive_c/" -type f -name "Battle.net.exe"` | ||||
|         PW_STOP_PROGRESS | ||||
|         PORTWINE_CREATE_SHORTCUT | ||||
|         try_remove_file "${PW_AUTOINSTALL_EXE}"     | ||||
|     fi | ||||
|     STOP_PORTWINE | ||||
| } | ||||
|  | ||||
| PW_EPIC () { | ||||
|     export LAUNCH_PARAMETERS=("/q" ) | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/EpicGamesLauncherInstaller.msi" | ||||
|     START_PORTWINE | ||||
|     if try_download "https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         PW_START_PROGRESS_BAR_BLOCK "Installing Epic Games Launcher. Please wait..." | ||||
|         PW_RUN msiexec /i "${PW_AUTOINSTALL_EXE}" & | ||||
|         sleep 10 | ||||
|         if [ ! -z `pgrep msiexec* | head -n 1` ] ; then  | ||||
|             while [ ! -z `pgrep msiexec* | head -n 1` ] || [ ! -z `pgrep rundll32* | head -n 1` ] ; do  | ||||
|                 [ ! -z `pgrep rundll32* | head -n 1` ] && kill -n 9 `pgrep rundll32* | head -n 1` && echo "Kill rundll32.exe" | ||||
|                 sleep 5 | ||||
|             done | ||||
|         fi | ||||
|         portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe" | ||||
|         try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|         KILL_PORTWINE | ||||
|         PW_STOP_PROGRESS_BAR | ||||
|         PORTWINE_CREATE_SHORTCUT | ||||
|     fi | ||||
|     STOP_PORTWINE | ||||
| } | ||||
|  | ||||
| PW_GOG () { | ||||
|     export LAUNCH_PARAMETERS=("/runWithoutUpdating" "/deelevated" ) | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/OriginSetup.exe" | ||||
|     START_PORTWINE | ||||
|     if try_download "https://content-system.gog.com/open_link/download?path=/open/galaxy/client/2.0.35.19/setup_galaxy_2.0.35.19a.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         PW_START_PROGRESS_BAR_CS "Installing the GOG Galaxy. Please wait..." | ||||
|         PW_RUN "${PW_AUTOINSTALL_EXE}" | ||||
|         portwine_exe=`find "$WINEPREFIX/drive_c/" -type f -name "GalaxyClient.exe"` | ||||
|         try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|         KILL_PORTWINE | ||||
|         PW_STOP_PROGRESS_BAR | ||||
|         PORTWINE_CREATE_SHORTCUT | ||||
|     fi | ||||
|     STOP_PORTWINE | ||||
| } | ||||
|  | ||||
| PW_EVE () { | ||||
|     export PW_WINDOWS_VER=10 | ||||
|     export PW_DLL_INSTALL="vcrun2017" | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/EveLauncher-1602194.exe" | ||||
|     START_PORTWINE | ||||
|     if try_download "https://binaries.eveonline.com/EveLauncher-1602194.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         PW_START_PROGRESS_BAR_CS "Installing the EVE Launcher. Please wait..." | ||||
|         PW_RUN "${PW_AUTOINSTALL_EXE}" | ||||
|         portwine_exe=`find "$WINEPREFIX/drive_c/" -type f -name "evelauncher.exe"` | ||||
|         try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|         KILL_PORTWINE | ||||
|         PW_STOP_PROGRESS_BAR | ||||
|         PORTWINE_CREATE_SHORTCUT | ||||
|     fi | ||||
|     STOP_PORTWINE | ||||
| } | ||||
| @@ -37,7 +37,7 @@ then | ||||
| 	export port_del6="был удален." | ||||
|  | ||||
| 	export port_deb1="PortWINE был запущен в режиме создания ${portname}.log и он успешно сохранен в корне каталога порта" | ||||
| 	export port_deb2="Для диагностики проблемы, скопируйте ВЕСЬ лог в соответствующий канал у нас на сервере дискорда: https://discord.gg/jfXkZW7F" | ||||
| 	export port_deb2="Для диагностики проблемы, скопируйте ВЕСЬ лог в соответствующий канал у нас на сервере дискорда: https://discord.gg/FTaheP99wE" | ||||
|  | ||||
| 	export port_start1="Запуск PortWINE" | ||||
| 	export port_start2="В каком режиме вы хотите запустить PortWINE?" | ||||
| @@ -124,7 +124,7 @@ then | ||||
| 	export port_del6="was deleted." | ||||
| 	export port_deb1="PortWINE was launched in creation mode ${portname}.log and it is successfully stored in the root directory of the port" | ||||
|  | ||||
| 	export port_deb2="To diagnose the problem, copy ALL of the log to discord server: https://discord.gg/jfXkZW7F" | ||||
| 	export port_deb2="To diagnose the problem, copy ALL of the log to discord server: https://discord.gg/FTaheP99wE" | ||||
|  | ||||
| 	export port_start1="Starting the PortWINE" | ||||
| 	export port_start2="In what mode you want to start the PortWINE?" | ||||
|   | ||||
							
								
								
									
										39
									
								
								data_from_portwine/scripts/portwine_db/ACIII
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								data_from_portwine/scripts/portwine_db/ACIII
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,39 @@ | ||||
| #!/bin/bash | ||||
|     #Author: xuser | ||||
|     #ACIII.exe  | ||||
|     #ACLiberation.exe      | ||||
|     #Rating=1-5 | ||||
|     ################################################ | ||||
| #    export PW_VULKAN_USE=dxvk | ||||
| #####################examples########################### | ||||
| ##export PW_COMMENT_DB="blablabla" | ||||
| ##export PW_DXVK_VER=1.8.1  | ||||
| ##export PW_VKD3D_VER=2.2 | ||||
| export WINEDLLOVERRIDES="xinput1_3,d3dcompiler_43=n,b" | ||||
| ##export PW_DLL_INSTALL="d3dcompiler_43"        # Install DDL in port prefix (used winetricks)  | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
| ##export PW_VKD3D_FEATURE_LEVEL=0 | ||||
| ##export PW_NO_WRITE_WATCH=0                      # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games). | ||||
| ##export PW_HIDE_NVIDIA_GPU=0 | ||||
| ##export PW_FORCE_USE_VSYNC=2                     # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT | ||||
| ##export PW_WINEDBG_DISABLE=1                     # Disabled WINEDBG | ||||
| ##export PW_FORCE_DISABLED_GAMEMOD=0              # Force disabele gamemod | ||||
| ##export PW_FORCE_LARGE_ADDRESS_AWARE=1           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | ||||
| ##export PULSE_LATENCY_MSEC=60                    # Fix crackling audio in games | ||||
| ##export LAUNCH_PARAMETERS="('"+com_skipIntroVideo 1"' '"+com_skipSignInManager 1"')"                # Additional launch options | ||||
| ##export PW_GUI_DISABLED_CS=1                     # 1 = disabled GUI  | ||||
| ##export VKD3D_CONFIG=force_bindless_texel_buffer,multi_queue,dxr | ||||
| ##export PW_WINDOWS_VER=10                        # Set windows version 10, 7 or XP | ||||
| ##export PW_VIRTUAL_DESKTOP=1 | ||||
| ##export DXVK_HUD=fps,devinfo | ||||
| ##export PW_HEAP_DELAY_FREE=0 | ||||
| ##export PW_DXGI_FROM_DXVK=0 | ||||
| ##export WINEARCH=win32                           # defaut = win64 | ||||
| ##export WINEPREFIX= | ||||
| ##ADD_IN_START_PORTWINE () { commands ; } | ||||
| @@ -4,14 +4,16 @@ | ||||
| #Battle.net-Setup.exe | ||||
| #Rating=5 | ||||
| ################################################ | ||||
| export PW_VULKAN_USE=dxvk | ||||
| ##export PW_VULKAN_USE=dxvk | ||||
| export LAUNCH_PARAMETERS="" | ||||
| export WINEDLLOVERRIDES="locationapi=" | ||||
| export PW_DLL_INSTALL="vcrun2017 d3dx11_42 d3dx11_43" | ||||
| export PW_WINDOWS_VER=10 | ||||
| export PW_NVAPI_DISABLE=1 | ||||
|  | ||||
| ADD_IN_START_PORTWINE () {  | ||||
|     rm -fr "${PORT_WINE_PATH}/data/pfx/drive_c/ProgramData/Agent/data" | ||||
|     rm -fr "${PORT_WINE_PATH}/data/pfx/drive_c/users/steamuser/Blizzard Entertainment/Battle.net/Cache" | ||||
|     rm -fr "${PORT_WINE_PATH}/data/pfx/drive_c/users/${USER}/Blizzard Entertainment/Battle.net/Cache" | ||||
|     rm -fr "${PORT_WINE_PATH}/data/pfx/drive_c/users/Public/Blizzard Entertainment/Battle.net/Cache" | ||||
|     try_remove_file "${PORT_WINE_PATH}/data/pfx/drive_c/windows/Fonts/sourcehansans.ttc" | ||||
| } | ||||
| @@ -1,9 +1,35 @@ | ||||
| #!/bin/bash | ||||
| #Author: PortWINE | ||||
| #Author: xuser | ||||
| #Cyberpunk2077.exe  | ||||
| #Rating=4 | ||||
| ################################################ | ||||
| #Rating=1-5 | ||||
| #####################examples########################### | ||||
| export PW_VULKAN_USE=vkd3d | ||||
| export LAUNCH_PARAMETERS="" | ||||
| export PULSE_LATENCY_MSEC=60 | ||||
|  | ||||
| ##export PW_COMMENT_DB="blablabla" | ||||
| export WINEDLLOVERRIDES="Crash*,REDEngineErrorReporter.exe=" | ||||
| ##export PW_DLL_INSTALL="d3dcompiler_47"        # Install DDL in port prefix (used winetricks)  | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
| ##export PW_VKD3D_FEATURE_LEVEL=1 | ||||
| ##export PW_NO_WRITE_WATCH=0                      # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games). | ||||
| ##export PW_HIDE_NVIDIA_GPU=0 | ||||
| ##export PW_FORCE_USE_VSYNC=0                     # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT | ||||
| ##export PW_WINEDBG_DISABLE=1                     # Disabled WINEDBG | ||||
| ##export PW_FORCE_DISABLED_GAMEMOD=1              # Force disabele gamemod | ||||
| ##export PW_FORCE_LARGE_ADDRESS_AWARE=1           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | ||||
| export PULSE_LATENCY_MSEC=40                    # Fix crackling audio in games | ||||
| export LAUNCH_PARAMETERS=("--launcher-skip")                # Additional launch options | ||||
| ##export PW_GUI_DISABLED_CS=1                     # 1 = disabled GUI  | ||||
| ##export VKD3D_CONFIG=force_bindless_texel_buffer | ||||
| export PW_WINDOWS_VER=10                        # Set windows version 10, 7 or XP | ||||
| ##export PW_VIRTUAL_DESKTOP=1 | ||||
| ##export DXVK_HUD=fps,devinfo | ||||
| export PW_HEAP_DELAY_FREE=0 | ||||
| ##export PW_DXGI_FROM_DXVK=0 | ||||
| ##export WINEARCH=win32                           # defaut = win64 | ||||
| ##export WINEPREFIX= | ||||
| #ADD_IN_START_PORTWINE () { "${PW_RUNTIME}" "$WINESERVER" -w } | ||||
|   | ||||
| @@ -8,7 +8,7 @@ export PW_VULKAN_USE=vkd3d | ||||
| #export PW_LOG=0             # Enable debug mode fo terminal  | ||||
| #export PW_NO_FSYNC=1        # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| export PW_NO_ESYNC=1        # Do not use eventfd-based in-process synchronization primitives | ||||
| #export PW_DXVK_NO_ASYNC=1 | ||||
| #export PW_VULKAN_NO_ASYNC=1 | ||||
| #export PW_USE_TERMINAL=1 | ||||
| #export PW_OLD_GL_STRING=0 | ||||
| #export PW_NVAPI_DISABLE=1 | ||||
|   | ||||
| @@ -6,4 +6,4 @@ | ||||
| export PW_VULKAN_USE=dxvk | ||||
| export PW_FORCE_USE_VSYNC=0   | ||||
| export PW_WINDOWS_VER="10" | ||||
| export PW_VIRTUAL_DESKTOP=1 | ||||
| #export PW_VIRTUAL_DESKTOP=1 | ||||
|   | ||||
| @@ -11,7 +11,7 @@ export PW_VULKAN_USE=0 | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_DXVK_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
|   | ||||
| @@ -11,7 +11,7 @@ | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_DXVK_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
|   | ||||
| @@ -7,10 +7,10 @@ | ||||
| export PW_VULKAN_USE=dxvk | ||||
| export WINEDLLOVERRIDES="galaxycommunication.exe=n" | ||||
| export LAUNCH_PARAMETERS="/runWithoutUpdating /deelevated" | ||||
| export PW_DLL_INSTALL="vcrun2019 vcrun6 mfc140" | ||||
| export PW_DLL_INSTALL="vcrun2017 vcrun6 mfc140" | ||||
| ADD_IN_START_PORTWINE () | ||||
| { | ||||
| if [ -e "${WINEPREFIX}/drive_c/users/steamuser/Local Settings/Application Data/GOG.com/Galaxy/Configuration/config.json" ] ; then | ||||
|     sed -i 's/"featureOverlay" : true,/"featureOverlay" : false,/' "${WINEPREFIX}/drive_c/users/steamuser/Local Settings/Application Data/GOG.com/Galaxy/Configuration/config.json" | ||||
| if [ -e "${WINEPREFIX}/drive_c/users/${USER}/Local Settings/Application Data/GOG.com/Galaxy/Configuration/config.json" ] ; then | ||||
|     sed -i 's/"featureOverlay" : true,/"featureOverlay" : false,/' "${WINEPREFIX}/drive_c/${USER}/steamuser/Local Settings/Application Data/GOG.com/Galaxy/Configuration/config.json" | ||||
| fi | ||||
| }  | ||||
| @@ -9,7 +9,7 @@ export PW_VULKAN_USE=dxvk #dxvk or vkd3d | ||||
| #export PW_LOG=0             # Enable debug mode fo terminal  | ||||
| #export PW_NO_FSYNC=1        # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| #export PW_NO_ESYNC=1        # Do not use eventfd-based in-process synchronization primitives | ||||
| #export PW_DXVK_NO_ASYNC=1 | ||||
| #export PW_VULKAN_NO_ASYNC=1 | ||||
| #export PW_USE_TERMINAL=0 | ||||
| #export PW_OLD_GL_STRING=0 | ||||
| #export PW_NVAPI_DISABLE=1 | ||||
|   | ||||
| @@ -11,7 +11,7 @@ export PW_VULKAN_USE=dxvk | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_DXVK_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
|   | ||||
							
								
								
									
										9
									
								
								data_from_portwine/scripts/portwine_db/Larry
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								data_from_portwine/scripts/portwine_db/Larry
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| #!/bin/bash | ||||
| #Author: Garrett-42 | ||||
| #Larry.exe | ||||
| #Rating=5 | ||||
| ################################################ | ||||
| export PW_NO_FSYNC=1 | ||||
| export PW_NO_ESYNC=1 | ||||
| export PW_WINDOWS_VER=7 | ||||
|  | ||||
							
								
								
									
										15
									
								
								data_from_portwine/scripts/portwine_db/League of Legends
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								data_from_portwine/scripts/portwine_db/League of Legends
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| export LAUNCH_PARAMETERS="--launch-product=league_of_legends --launch-patchline=live" | ||||
| cd "${PATH_TO_GAME}" | ||||
|  | ||||
| if [ "$(cat /proc/sys/abi/vsyscall32)" -ne 0 ] | ||||
| then | ||||
|     zenity --question --title="Fix for LoL anti-cheat" \ | ||||
|            --text='Root rights are required to execute the command:           \n"sysctl -w abi.vsyscall32=0" and "sysctl -p"' --no-wrap | ||||
|     if [ "$?" = 1 ] | ||||
|     then | ||||
|         exit 0 | ||||
|     fi | ||||
|     pkexec sh -c 'sysctl -w abi.vsyscall32=0 && sysctl -p' | ||||
| fi | ||||
| sh "${PORT_SCRIPTS_PATH}"/fix_start_lol.sh | zenity --progress --title="Start PortLoL" --text="Please wait, launch is in progress, it may take few minutes" --pulsate --auto-close --auto-kill --width=450 & | ||||
| } | ||||
							
								
								
									
										37
									
								
								data_from_portwine/scripts/portwine_db/LostEmber
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								data_from_portwine/scripts/portwine_db/LostEmber
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| #!/bin/bash | ||||
|     #Author: xuser | ||||
|     #LostEmber-Win64-Shipping.exe  | ||||
|     #Rating=1-5 | ||||
|     ################################################ | ||||
|     export PW_VULKAN_USE=vkd3d | ||||
| #####################examples########################### | ||||
| ##export PW_COMMENT_DB="blablabla" | ||||
| ##export PW_VULKAN_USE=dxvk                       # dxvk, vkd3d or 0 for OpenGL | ||||
| ##export WINEDLLOVERRIDES="blabla=n,b" | ||||
| ##export PW_DLL_INSTALL="vcrun2019 vcrun6"        # Install DDL in port prefix (used winetricks)  | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| export PW_NVAPI_DISABLE=1 | ||||
| ##export PW_VKD3D_FEATURE_LEVEL=0 | ||||
| ##export PW_NO_WRITE_WATCH=0                      # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games). | ||||
| ##export PW_HIDE_NVIDIA_GPU=0 | ||||
| ##export PW_FORCE_USE_VSYNC=2                     # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT | ||||
| ##export PW_WINEDBG_DISABLE=1                     # Disabled WINEDBG | ||||
| ##export PW_FORCE_DISABLED_GAMEMOD=0              # Force disabele gamemod | ||||
| ##export PW_FORCE_LARGE_ADDRESS_AWARE=1           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | ||||
| ##export PULSE_LATENCY_MSEC=60                    # Fix crackling audio in games | ||||
| ##export LAUNCH_PARAMETERS="('"+com_skipIntroVideo 1"' '"+com_skipSignInManager 1"')"                # Additional launch options | ||||
| ##export PW_GUI_DISABLED_CS=1                     # 1 = disabled GUI  | ||||
| ##export VKD3D_CONFIG=force_bindless_texel_buffer,multi_queue,dxr | ||||
| ##export PW_WINDOWS_VER=10                        # Set windows version 10, 7 or XP | ||||
| ##export PW_VIRTUAL_DESKTOP=1 | ||||
| ##export DXVK_HUD=fps,devinfo | ||||
| export PW_HEAP_DELAY_FREE=1 | ||||
| ##export PW_DXGI_FROM_DXVK=1 | ||||
| ##export WINEARCH=win32                           # defaut = win64 | ||||
| ##export WINEPREFIX= | ||||
| ##ADD_IN_START_PORTWINE () { commands ; } | ||||
| @@ -9,7 +9,7 @@ export PW_DLL_INSTALL="physx d3dx9"                  # Install DDL in port prefi | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_DXVK_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
|   | ||||
| @@ -9,7 +9,7 @@ export PW_DLL_INSTALL="physx d3dx9"                  # Install DDL in port prefi | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_DXVK_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
|   | ||||
| @@ -0,0 +1,37 @@ | ||||
| #!/bin/bash | ||||
|     #Author: akeshi | ||||
|     #Need For Speed The Run.exe  | ||||
|     #Rating=1-5 | ||||
|     ################################################ | ||||
|     export PW_VULKAN_USE=dxvk | ||||
| #####################examples########################### | ||||
| ##export PW_COMMENT_DB="blablabla" | ||||
| ##export PW_VULKAN_USE=dxvk                       # dxvk, vkd3d or 0 for OpenGL | ||||
| ##export WINEDLLOVERRIDES="blabla=n,b" | ||||
| ##export PW_DLL_INSTALL="vcrun2019 vcrun6"        # Install DDL in port prefix (used winetricks)  | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
| ##export PW_VKD3D_FEATURE_LEVEL=0 | ||||
| ##export PW_NO_WRITE_WATCH=0                      # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games). | ||||
| ##export PW_HIDE_NVIDIA_GPU=0 | ||||
| ##export PW_FORCE_USE_VSYNC=2                     # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT | ||||
| ##export PW_WINEDBG_DISABLE=1                     # Disabled WINEDBG | ||||
| ##export PW_FORCE_DISABLED_GAMEMOD=0              # Force disabele gamemod | ||||
| ##export PW_FORCE_LARGE_ADDRESS_AWARE=1           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | ||||
| ##export PULSE_LATENCY_MSEC=60                    # Fix crackling audio in games | ||||
| ##export LAUNCH_PARAMETERS="('"+com_skipIntroVideo 1"' '"+com_skipSignInManager 1"')"                # Additional launch options | ||||
| ##export PW_GUI_DISABLED_CS=1                     # 1 = disabled GUI  | ||||
| ##export VKD3D_CONFIG=force_bindless_texel_buffer,multi_queue,dxr | ||||
| ##export PW_WINDOWS_VER=7                        # Set windows version 10, 7 or XP | ||||
| ##export PW_VIRTUAL_DESKTOP=1 | ||||
| ##export DXVK_HUD=fps,devinfo | ||||
| ##export PW_HEAP_DELAY_FREE=0 | ||||
| ##export PW_DXGI_FROM_DXVK=0 | ||||
| ##export WINEARCH=win32                           # defaut = win64 | ||||
| ##export WINEPREFIX= | ||||
| ##ADD_IN_START_PORTWINE () { commands ; } | ||||
| @@ -2,6 +2,77 @@ | ||||
| #Author: PortWINE | ||||
| #Origin.exe  | ||||
| #Rating=? | ||||
| ################################################ | ||||
| export LAUNCH_PARAMETERS="" | ||||
| sed -i 's%key="EnableIgo" value="true"%key="EnableIgo" value="false"%g' "${WINEPREFIX}/drive_c/users/steamuser/Application Data/Origin/local_"*".xml" | ||||
| #####################examples########################### | ||||
| ##export PW_COMMENT_DB="blablabla" | ||||
|  | ||||
| ##export PW_WINDOWS_VER=10                        # Set windows version 10, 7 or XP | ||||
| export PW_DLL_INSTALL="vcrun2010 vcrun2012 vcrun2017 d3dcompiler_43 d3dcompiler_47 d3dx9"               # Install DDL in port prefix (used winetricks)  | ||||
| ##export WINEDLLOVERRIDES="blabla=n,b" | ||||
| ##export LAUNCH_PARAMETERS="('"+com_skipIntroVideo 1"' '"+com_skipSignInManager 1"')"                # Additional launch options | ||||
|  | ||||
| ##export PW_VULKAN_USE=dxvk                       # dxvk, vkd3d or 0 for OpenGL | ||||
| ##export PW_DXVK_VER=1.8.1  | ||||
| ##export PW_VKD3D_VER=2.2 | ||||
| ##export PW_DXR_ON=1 | ||||
| ##export PW_VULKAN_NO_ASYNC=1                     # Disabled ASYNC for VULKAN | ||||
| export PW_NVAPI_DISABLE=1 | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_HIDE_NVIDIA_GPU=0 | ||||
| ##export PW_FORCE_USE_VSYNC=2                     # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT | ||||
| ##export PW_VKD3D_FEATURE_LEVEL=0 | ||||
| ##export PW_DXGI_FROM_DXVK=0 | ||||
| ##export PW_VIRTUAL_DESKTOP=1 | ||||
| ##export VKD3D_CONFIG=force_bindless_texel_buffer,multi_queue | ||||
|  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
|  | ||||
| ##export PULSE_LATENCY_MSEC=60                    # Fix crackling audio in games | ||||
|  | ||||
| ##export PW_FORCE_DISABLED_GAMEMOD=0              # Force disabele gamemod | ||||
| ##export PW_FORCE_LARGE_ADDRESS_AWARE=1           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | ||||
| ##export PW_NO_WRITE_WATCH=0                      # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games). | ||||
| ##export PW_HEAP_DELAY_FREE=0 | ||||
|  | ||||
| ##export WINEARCH=win32                           # defaut = win64 | ||||
| ##export WINEPREFIX= | ||||
|  | ||||
| ##export PW_WINEDBG_DISABLE=1                     # Disabled WINEDBG | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_GUI_DISABLED_CS=1                     # 1 = disabled GUI  | ||||
|  | ||||
| export STAGING_SHARED_MEMORY=0 | ||||
|  | ||||
| #ADD_IN_START_PORTWINE () { | ||||
| #     export PW_USER_TEMP="$WINEPREFIX/drive_c/users/${USER}/Temp"     | ||||
| #     if try_download "https://download.dm.origin.com/origin/live/OriginSetup.exe" "${PW_USER_TEMP}/OriginSetup.exe" ; then | ||||
| #         PW_START_PROGRESS_BAR_BLOCK "Extracting files for update the Origin..." | ||||
| #         unzip "${PW_USER_TEMP}/OriginSetup.exe" 'update/*.zip' -d "${PW_USER_TEMP}/"  | ||||
| #         unzip -o "${PW_USER_TEMP}/update/"*.zip -d "$WINEPREFIX/drive_c/Program Files (x86)/Origin/" | ||||
| #         try_remove_dir "${PW_USER_TEMP}/update" | ||||
| #         try_remove_file "${PW_USER_TEMP}/OriginSetup.exe" | ||||
| #         PW_STOP_PROGRESS_BAR | ||||
| #         PW_START_PROGRESS_BAR_CS "Starting the Origin..." | ||||
|          | ||||
| #         check_origin_update () { | ||||
| #             while :  | ||||
| #             do   | ||||
| #                 sleep 3 | ||||
| #                 if [ ! -z `pgrep Origin.exe | head -n 1` ] ; then  | ||||
| #                     sleep 1 | ||||
| #                 else | ||||
| #                     if [ ! -z `pgrep OriginSetup* | head -n 1` ] ; then | ||||
| #                         kill -n 9 `pgrep OriginSetup* | head -n 1` | ||||
| #                     fi | ||||
| #                     if [ ! -z `pgrep OriginThin* | head -n 1` ] ; then | ||||
| #                         kill -n 9 `pgrep OriginThin* | head -n 1` | ||||
| #                     fi | ||||
| #                     break | ||||
| #                 fi | ||||
| #             done | ||||
| #         } | ||||
| #         check_origin_update & | ||||
| #     fi | ||||
| #} | ||||
|  | ||||
|   | ||||
| @@ -12,7 +12,7 @@ export PW_WINDOWS_VER=7                      # Set windows version 10, 7 or XP | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_DXVK_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
|   | ||||
							
								
								
									
										37
									
								
								data_from_portwine/scripts/portwine_db/StarCraft
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								data_from_portwine/scripts/portwine_db/StarCraft
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| #!/bin/bash | ||||
|     #Author: dez | ||||
|     #StarCraft.exe  | ||||
|     #Rating=1-5 | ||||
|     ################################################ | ||||
|     export WINEDLLOVERRIDES="ddraw=n,b" | ||||
| #####################examples########################### | ||||
| ##export PW_COMMENT_DB="blablabla" | ||||
| ##export PW_VULKAN_USE=dxvk                       # dxvk, vkd3d or 0 for OpenGL | ||||
| ##export WINEDLLOVERRIDES="blabla=n,b" | ||||
| ##export PW_DLL_INSTALL="vcrun2019 vcrun6"        # Install DDL in port prefix (used winetricks)  | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
| ##export PW_VKD3D_FEATURE_LEVEL=0 | ||||
| ##export PW_NO_WRITE_WATCH=0                      # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games). | ||||
| ##export PW_HIDE_NVIDIA_GPU=0 | ||||
| ##export PW_FORCE_USE_VSYNC=2                     # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT | ||||
| ##export PW_WINEDBG_DISABLE=1                     # Disabled WINEDBG | ||||
| ##export PW_FORCE_DISABLED_GAMEMOD=0              # Force disabele gamemod | ||||
| ##export PW_FORCE_LARGE_ADDRESS_AWARE=1           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | ||||
| ##export PULSE_LATENCY_MSEC=60                    # Fix crackling audio in games | ||||
| ##export LAUNCH_PARAMETERS="('"+com_skipIntroVideo 1"' '"+com_skipSignInManager 1"')"                # Additional launch options | ||||
| ##export PW_GUI_DISABLED_CS=1                     # 1 = disabled GUI  | ||||
| ##export VKD3D_CONFIG=force_bindless_texel_buffer,multi_queue,dxr | ||||
| ##export PW_WINDOWS_VER=10                        # Set windows version 10, 7 or XP | ||||
| ##export PW_VIRTUAL_DESKTOP=1 | ||||
| ##export DXVK_HUD=fps,devinfo | ||||
| ##export PW_HEAP_DELAY_FREE=0 | ||||
| ##export PW_DXGI_FROM_DXVK=0 | ||||
| ##export WINEARCH=win32                           # defaut = win64 | ||||
| ##export WINEPREFIX= | ||||
| ##ADD_IN_START_PORTWINE () { commands ; } | ||||
| @@ -9,7 +9,7 @@ export PW_DLL_INSTALL="corefonts"        # Install DDL in port prefix (used wine | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_DXVK_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
|   | ||||
							
								
								
									
										36
									
								
								data_from_portwine/scripts/portwine_db/UbisoftConnect
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								data_from_portwine/scripts/portwine_db/UbisoftConnect
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,36 @@ | ||||
| #!/bin/bash | ||||
|     #Author: chal55rus | ||||
|     #UbisoftConnect.exe  | ||||
|     #Rating=1-5 | ||||
|     ################################################ | ||||
|     #export PW_VULKAN_USE=dxvk | ||||
|     export PW_DLL_INSTALL="arial corefonts d3dcompiler_43 d3dcompiler_47 d3dx9"  | ||||
| #####################examples########################### | ||||
| ##export PW_COMMENT_DB="blablabla" | ||||
| ##export PW_VULKAN_USE=dxvk                       # dxvk, vkd3d or 0 for OpenGL | ||||
| ##export WINEDLLOVERRIDES="blabla=n,b" | ||||
| ##export PW_DLL_INSTALL="vcrun2019 vcrun6"        # Install DDL in port prefix (used winetricks)  | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
| ##export PW_VKD3D_FEATURE_LEVEL=0 | ||||
| ##export PW_NO_WRITE_WATCH=0                      # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games). | ||||
| ##export PW_HIDE_NVIDIA_GPU=0 | ||||
| ##export PW_FORCE_USE_VSYNC=2                     # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT | ||||
| ##export PW_WINEDBG_DISABLE=1                     # Disabled WINEDBG | ||||
| ##export PW_FORCE_DISABLED_GAMEMOD=0              # Force disabele gamemod | ||||
| ##export PW_FORCE_LARGE_ADDRESS_AWARE=1           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | ||||
| ##export PULSE_LATENCY_MSEC=60                    # Fix crackling audio in games | ||||
| ##export LAUNCH_PARAMETERS="('"+com_skipIntroVideo 1"' '"+com_skipSignInManager 1"')"                # Additional launch options | ||||
| ##export PW_GUI_DISABLED_CS=1                     # 1 = disabled GUI  | ||||
| ##export VKD3D_CONFIG=force_bindless_texel_buffer,multi_queue,dxr | ||||
| ##export PW_WINDOWS_VER=10                      # Set windows version 10, 7 or XP | ||||
| ##export PW_VIRTUAL_DESKTOP=1 | ||||
| ##export DXVK_HUD=fps,devinfo | ||||
| ##export PW_HEAP_DELAY_FREE=0 | ||||
| ##export PW_DXGI_FROM_DXVK=0 | ||||
| ##ADD_IN_START_PORTWINE () { commands ; } | ||||
| @@ -12,7 +12,7 @@ | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_DXVK_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
|   | ||||
							
								
								
									
										35
									
								
								data_from_portwine/scripts/portwine_db/alanwake
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										35
									
								
								data_from_portwine/scripts/portwine_db/alanwake
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,35 @@ | ||||
| #!/bin/bash | ||||
|     #Author: xuser | ||||
|     #alanwake.exe  | ||||
|     #Rating=1-5 | ||||
| #####################examples########################### | ||||
| ##export PW_COMMENT_DB="blablabla" | ||||
| ##export PW_VULKAN_USE=dxvk                       # dxvk, vkd3d or 0 for OpenGL | ||||
| ##export WINEDLLOVERRIDES="blabla=n,b" | ||||
| export PW_DLL_INSTALL="d3dx9 d3dcompiler_43"        # Install DDL in port prefix (used winetricks)  | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| #export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| #export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
| ##export PW_VKD3D_FEATURE_LEVEL=0 | ||||
| ##export PW_NO_WRITE_WATCH=0                      # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games). | ||||
| ##export PW_HIDE_NVIDIA_GPU=0 | ||||
| ##export PW_FORCE_USE_VSYNC=2                     # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT | ||||
| ##export PW_WINEDBG_DISABLE=1                     # Disabled WINEDBG | ||||
| ##export PW_FORCE_DISABLED_GAMEMOD=1              # Force disabele gamemod | ||||
| ##export PW_FORCE_LARGE_ADDRESS_AWARE=1           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | ||||
| ##export PULSE_LATENCY_MSEC=60                    # Fix crackling audio in games | ||||
| ##export LAUNCH_PARAMETERS="('"+com_skipIntroVideo 1"' '"+com_skipSignInManager 1"')"                # Additional launch options | ||||
| ##export PW_GUI_DISABLED_CS=1                     # 1 = disabled GUI  | ||||
| ##export VKD3D_CONFIG=force_bindless_texel_buffer,multi_queue,dxr | ||||
| export PW_WINDOWS_VER=7                        # Set windows version 10, 7 or XP | ||||
| ##export PW_VIRTUAL_DESKTOP=1 | ||||
| ##export DXVK_HUD=fps,devinfo | ||||
| ##export PW_HEAP_DELAY_FREE=0 | ||||
| ##export PW_DXGI_FROM_DXVK=0 | ||||
| ##export WINEARCH=win32                           # defaut = win64 | ||||
| ##export WINEPREFIX= | ||||
| ##ADD_IN_START_PORTWINE () { commands ; } | ||||
| @@ -11,7 +11,7 @@ | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_DXVK_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
|   | ||||
| @@ -3,6 +3,9 @@ | ||||
| #avengers.exe  | ||||
| #Rating=? | ||||
| ################################################ | ||||
| export PW_VULKAN_USE=vkd3d | ||||
| export PW_VULKAN_USE=dxvk | ||||
| export LAUNCH_PARAMETERS="" | ||||
| #export WINEDLLOVERRIDES="amd_ags_x64=b" | ||||
| export WINEDLLOVERRIDES="atiadlxx=n" | ||||
| export PW_WINDOWS_VER=10                        # Set windows version 10, 7 or XP | ||||
| export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| @@ -2,35 +2,48 @@ | ||||
| #Author: PortWINE-Linux.ru | ||||
| #name_exe_file.exe | ||||
| #Rating=1-5 | ||||
| export PW_DLL_INSTALL="vcrun2017 vcrun6 vcrun6sp6 mfc42"  # Install DDL in port prefix (used winetricks)  | ||||
| #####################examples########################### | ||||
| ##export PW_COMMENT_DB="blablabla" | ||||
| ##export PW_VULKAN_USE=dxvk                       # dxvk, vkd3d or 0 for OpenGL | ||||
|  | ||||
| ##export PW_WINDOWS_VER=10                        # Set windows version 10, 7 or XP | ||||
| ##export PW_DLL_INSTALL="vcrun2017"               # Install DDL in port prefix (used winetricks)  | ||||
| ##export WINEDLLOVERRIDES="blabla=n,b" | ||||
| ##export PW_DLL_INSTALL="vcrun2019 vcrun6"        # Install DDL in port prefix (used winetricks)  | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export LAUNCH_PARAMETERS="('"+com_skipIntroVideo 1"' '"+com_skipSignInManager 1"')"                # Additional launch options | ||||
|  | ||||
| ##export PW_VULKAN_USE=dxvk                       # dxvk, vkd3d or 0 for OpenGL | ||||
| ##export PW_DXVK_VER=1.8.1  | ||||
| ##export PW_VKD3D_VER=2.2 | ||||
| ##export PW_DXR_ON=1 | ||||
| ##export PW_VULKAN_NO_ASYNC=1                     # Disabled ASYNC for VULKAN | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
| ##export PW_OLD_GL_STRING=1 | ||||
| ##export PW_HIDE_NVIDIA_GPU=1 | ||||
| ##export PW_FORCE_USE_VSYNC=0                     # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT | ||||
| ##export PW_VKD3D_FEATURE_LEVEL=1 | ||||
| ##export PW_DXGI_FROM_DXVK=1 | ||||
| ##export PW_VIRTUAL_DESKTOP=1 | ||||
| ##export VKD3D_CONFIG=force_bindless_texel_buffer,multi_queue | ||||
| ##export ENABLE_VKBASALT=1 | ||||
|  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_DXVK_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
| ##export PW_VKD3D_FEATURE_LEVEL=0 | ||||
| ##export PW_NO_WRITE_WATCH=0                      # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games). | ||||
| ##export PW_HIDE_NVIDIA_GPU=0 | ||||
| ##export PW_FORCE_USE_VSYNC=2                     # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT | ||||
| ##export PW_WINEDBG_DISABLE=1                     # Disabled WINEDBG | ||||
| ##export PW_FORCE_DISABLED_GAMEMOD=0              # Force disabele gamemod | ||||
| ##export PW_FORCE_LARGE_ADDRESS_AWARE=1           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | ||||
|  | ||||
| ##export PULSE_LATENCY_MSEC=60                    # Fix crackling audio in games | ||||
| ##export LAUNCH_PARAMETERS="('"+com_skipIntroVideo 1"' '"+com_skipSignInManager 1"')"                # Additional launch options | ||||
| ##export PW_GUI_DISABLED_CS=1                     # 1 = disabled GUI  | ||||
| ##export VKD3D_CONFIG=force_bindless_texel_buffer,multi_queue,dxr | ||||
| ##export PW_WINDOWS_VER=10                        # Set windows version 10, 7 or XP | ||||
| ##export PW_VIRTUAL_DESKTOP=1 | ||||
| ##export DXVK_HUD=fps,devinfo | ||||
| ##export PW_HEAP_DELAY_FREE=0 | ||||
| ##export PW_DXGI_FROM_DXVK=0 | ||||
|  | ||||
| ##export PW_FORCE_DISABLED_GAMEMOD=1              # Force disabele gamemod | ||||
| ##export PW_FORCE_LARGE_ADDRESS_AWARE=1           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | ||||
| ##export PW_NO_WRITE_WATCH=1                      # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games). | ||||
| ##export PW_HEAP_DELAY_FREE=1 | ||||
| ##export PW_WINE_ALLOW_XIM=1                      # Disable XIM support until libx11 >= 1.7 is widespread | ||||
|  | ||||
| ##export WINEARCH=win32                           # defaut = win64 | ||||
| ##export WINEPREFIX= | ||||
|  | ||||
| ##export PW_WINEDBG_DISABLE=1                     # Disabled WINEDBG | ||||
| ##export PW_USE_TERMINAL=1                        # Force run in terminal | ||||
| ##export PW_LOG=1                                 # Enable debug mode fo terminal  | ||||
| ##export PW_GUI_DISABLED_CS=1                     # 1 = disabled GUI  | ||||
|  | ||||
| ##ADD_IN_START_PORTWINE () { commands ; } | ||||
|  | ||||
| export PW_DLL_INSTALL="vcrun6 vcrun6sp6 mfc42 d3dcompiler_42 d3dcompiler_43 d3dcompiler_47 d3dx9"  | ||||
|   | ||||
| @@ -3,16 +3,16 @@ | ||||
| #dontstarve.exe  | ||||
| #Rating=1-5 | ||||
| ################################################ | ||||
|     export PW_VULKAN_USE=vkd3d | ||||
| export PW_VULKAN_USE=0 | ||||
| #####################examples########################### | ||||
| ##export PW_COMMENT_DB="blablabla" | ||||
| ##export PW_VULKAN_USE=dxvk                       # dxvk, vkd3d or 0 for OpenGL | ||||
| ##export WINEDLLOVERRIDES="blabla=n,b" | ||||
| ##export PW_DLL_INSTALL="vcrun2017 d3dcompiler_43"        # Install DDL in port prefix (used winetricks)  | ||||
| export PW_DLL_INSTALL="d3dx9 d3dcompiler_43"        # Install DDL in port prefix (used winetricks)  | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_DXVK_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
|   | ||||
							
								
								
									
										46
									
								
								data_from_portwine/scripts/portwine_db/eve
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								data_from_portwine/scripts/portwine_db/eve
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,46 @@ | ||||
| #!/bin/bash | ||||
| #Author: PortWINE-Linux.ru | ||||
| #eve.exe | ||||
| #evelauncher.exe | ||||
| #Rating=5 | ||||
| #####################examples########################### | ||||
| ##export PW_COMMENT_DB="blablabla" | ||||
|  | ||||
| export PW_WINDOWS_VER=10                        # Set windows version 10, 7 or XP | ||||
| export PW_DLL_INSTALL="vcrun2017 d3dcompiler_47"               # Install DDL in port prefix (used winetricks)  | ||||
| export WINEDLLOVERRIDES="concrt140,msvcp140,msvcp140_1,msvcp140_2,d3dcompiler_47=n" | ||||
| ##export LAUNCH_PARAMETERS="('"+com_skipIntroVideo 1"' '"+com_skipSignInManager 1"')"                # Additional launch options | ||||
|  | ||||
| ##export PW_DXVK_VER=1.8.1  | ||||
| ##export PW_VKD3D_VER=2.2 | ||||
| ##export PW_DXR_ON=1 | ||||
| ##export PW_VULKAN_NO_ASYNC=1                     # Disabled ASYNC for VULKAN | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_HIDE_NVIDIA_GPU=0 | ||||
| ##export PW_FORCE_USE_VSYNC=2                     # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT | ||||
| ##export PW_VKD3D_FEATURE_LEVEL=0 | ||||
| ##export PW_DXGI_FROM_DXVK=0 | ||||
| ##export PW_VIRTUAL_DESKTOP=1 | ||||
| ##export VKD3D_CONFIG=force_bindless_texel_buffer,multi_queue | ||||
| ##export ENABLE_VKBASALT=1 | ||||
|  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
|  | ||||
| ##export PULSE_LATENCY_MSEC=60                    # Fix crackling audio in games | ||||
|  | ||||
| ##export PW_FORCE_DISABLED_GAMEMOD=0              # Force disabele gamemod | ||||
| ##export PW_FORCE_LARGE_ADDRESS_AWARE=1           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | ||||
| ##export PW_NO_WRITE_WATCH=0                      # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games). | ||||
| ##export PW_HEAP_DELAY_FREE=0 | ||||
|  | ||||
| ##export WINEARCH=win32                           # defaut = win64 | ||||
| ##export WINEPREFIX= | ||||
|  | ||||
| ##export PW_WINEDBG_DISABLE=1                     # Disabled WINEDBG | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_GUI_DISABLED_CS=1                     # 1 = disabled GUI  | ||||
|  | ||||
| ##ADD_IN_START_PORTWINE () { commands ; } | ||||
| @@ -9,7 +9,7 @@ export PW_DLL_INSTALL="physx d3dx9"        # Install DDL in port prefix (used wi | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_DXVK_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
|   | ||||
| @@ -12,7 +12,7 @@ export PW_VULKAN_USE=0 #dxvk or vkd3d | ||||
| #export PW_LOG=0             # Enable debug mode fo terminal  | ||||
| export PW_NO_FSYNC=1        # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| export PW_NO_ESYNC=1        # Do not use eventfd-based in-process synchronization primitives | ||||
| #export PW_DXVK_NO_ASYNC=1 | ||||
| #export PW_VULKAN_NO_ASYNC=1 | ||||
| #export PW_USE_TERMINAL=0 | ||||
| #export PW_OLD_GL_STRING=0 | ||||
| #export PW_NVAPI_DISABLE=1 | ||||
| @@ -24,7 +24,7 @@ export PW_WINEDBG_DISABLE=1 | ||||
| export PW_FORCE_DISABLED_GAMEMOD=1             # Force disabele gamemod | ||||
| export PW_FORCE_LARGE_ADDRESS_AWARE=0          # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | ||||
| #export PULSE_LATENCY_MSEC=60 | ||||
| export PW_DLL_INSTALL="vcrun6 mfc42 vcrun6sp6" | ||||
| export PW_DLL_INSTALL="vcrun6 mfc42 vcrun6sp6 mfc120 vcrun2013" | ||||
| #export LAUNCH_PARAMETERS="-d3d9" | ||||
| export PW_GUI_DISABLED_CS=1 | ||||
| #export PW_WINDOWS_VER=XP                      # Set windows version 10, 7 or XP | ||||
| @@ -3,10 +3,15 @@ | ||||
| #wgc.exe  | ||||
| #Rating=5 | ||||
| ################################################ | ||||
| export PW_VULKAN_USE=dxvk                       #dxvk, vkd3d or 0 for OpenGL | ||||
| #export PW_DLL_INSTALL=""     # Install DDL in port prefix (used winetricks)  | ||||
| #export PW_VULKAN_USE=dxvk                       #dxvk, vkd3d or 0 for OpenGL | ||||
| export LAUNCH_PARAMETERS="--disable-gpu"            # Additional launch options | ||||
| export PW_USE_TERMINAL=1 | ||||
| export PW_WINDOWS_VER=7                        # Set windows version 10, 7 or XP | ||||
| export PW_NVAPI_DISABLE=1 | ||||
| export WINEDLLOVERRIDES="ucrtbase=b,n" | ||||
| ##export PW_GUI_DISABLED_CS=1 | ||||
|  | ||||
| ADD_IN_START_PORTWINE () {  | ||||
|     sed -i 's/true/false/g' "${PORT_WINE_PATH}/data/pfx/drive_c/Games/WGC/preferences.xml" | ||||
|     sed -i 's/true/false/g' "$WINEPREFIX/drive_c/ProgramData/Wargaming.net/GameCenter/preferences.xml" | ||||
| } | ||||
|    | ||||
							
								
								
									
										41
									
								
								data_from_portwine/scripts/portwine_db/wot_encore_install_ru
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								data_from_portwine/scripts/portwine_db/wot_encore_install_ru
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,41 @@ | ||||
| #!/bin/bash | ||||
|     #Author: user | ||||
|     #wot_encore_install_ru.exe  | ||||
|     #Rating=1-5 | ||||
|     ################################################ | ||||
|     export PW_VULKAN_USE=dxvk | ||||
|     export PW_USE_TERMINAL=1 | ||||
|     export WINEPREFIX="${PORT_WINE_PATH}/data/pfx_dotnet" | ||||
|     export PW_DLL_INSTALL="dotnet40 vcrun2017 vcrun6 mfc42 vb6run physx" | ||||
|     export PW_COMMENT_DB="World Of Tanks EnCore Installer" | ||||
|     ## export DXVK_HUD=fps,devinfo | ||||
|     ## export PW_MANGOHUD=1 | ||||
| #####################examples########################### | ||||
| PW_INSTALL_DOTNET40 () { | ||||
|     export DN=dotNetFx40_Full_x86_x64.exe | ||||
|     export mscor=mscorsvw.exe | ||||
|     export KILL_MSCOR=0 | ||||
|     export DN_INST_SUCC=0 | ||||
|  | ||||
|     while [ ! -z "`ps -ax | grep PortProton | grep -m1 'start.sh' | awk '{print $1}'`" ] ; do | ||||
|         echo "PID parrent start.sh was found" | ||||
|         sleep 5 | ||||
|         while [ ! -z `pidof -s $DN` ] ; do | ||||
|             echo "$DN is runing.. Wait..." | ||||
|             sleep 5 | ||||
|             export DN_INST_SUCC=1 | ||||
|         done | ||||
|         while [ ! -z `pgrep "${mscor}" | head -n 1` ] && [ -z `pidof -s $DN` ] ; do | ||||
|             echo "$mscor was found. Kill it..." | ||||
|             kill -n 9 `pgrep "${mscor}" | head -n 1` | ||||
|             sleep 1 | ||||
|             export KILL_MSCOR=1 | ||||
|         done | ||||
|         if [ "$KILL_MSCOR" != 0 ] && [ "$DN_INST_SUCC" != 0 ] && [ -z `pidof -s $DN` ] && [ -z `pgrep "${mscor}" | head -n 1` ]; then | ||||
|             echo "All $mscor killed"  | ||||
|             break | ||||
|         fi | ||||
|     done | ||||
| } | ||||
| PW_INSTALL_DOTNET40 & | ||||
|  | ||||
| @@ -12,7 +12,7 @@ export PW_DLL_INSTALL="vcrun2013 vcrun2017 dotnet472" | ||||
| ##export PW_LOG=0                                 # Enable debug mode fo terminal  | ||||
| ##export PW_NO_FSYNC=1                            # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| ##export PW_NO_ESYNC=1                            # Do not use eventfd-based in-process synchronization primitives | ||||
| ##export PW_DXVK_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_VULKAN_NO_ASYNC=1                       # Disabled ASYNC for VULKAN | ||||
| ##export PW_USE_TERMINAL=0                        # Force run in terminal | ||||
| ##export PW_OLD_GL_STRING=0 | ||||
| ##export PW_NVAPI_DISABLE=1 | ||||
|   | ||||
| @@ -5,5 +5,3 @@ KILL_PORTWINE | ||||
| if [ -e "${PORT_WINE_TMP_PATH}/pw_vulkan" ]; then | ||||
|     rm -f "${PORT_WINE_TMP_PATH}/pw_vulkan" | ||||
| fi | ||||
| START_PORTWINE | ||||
| STOP_PORTWINE | sszen | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| #!/bin/bash | ||||
| # Author: Castro-Fidel (PortWINE-Linux.ru) | ||||
| # Development assistants: Cefeiko; Rus_Nor; gavr; RidBowt; | ||||
| # Development assistants: Cefeiko; Rus_Nor; gavr; RidBowt; Dezert1r | ||||
| ######################################################################## | ||||
| echo ' | ||||
| ████─████─████─███─█───█─███─█──█─███ | ||||
| @@ -15,6 +15,10 @@ if [ "${s_install}" != "1" ] && [ ! -x "`which "zenity" 2>/dev/null`" ];then | ||||
|     echo "You will need to install: zenity, and restart the port."  | ||||
|     xdg-open "http://portwine-linux.ru/portwine-faq/" > /dev/null 2>&1 & exit 0 | ||||
| fi | ||||
| pw_ping_test () { | ||||
|     ping -w5 -c1 github.com &> /dev/null | ||||
|     [ "$?" == "0" ] && return 0 || return 1 | ||||
| }   | ||||
| print_error () { | ||||
|     echo "ERROR: $@" | ||||
| } | ||||
| @@ -77,10 +81,10 @@ try_force_link_dir () { | ||||
| } | ||||
| try_download () { | ||||
|     set -o pipefail | ||||
|     wget -c -t 3 -T 2 "$1" --output-document="$2" 2>&1 | \ | ||||
|     wget -c -t 10 -T 1 "$1" --output-document="$2" 2>&1 | \ | ||||
|     sed -u 's/^[a-zA-Z\-].*//; s/.* \{1,2\}\([0-9]\{1,3\}\)%.*/\1\n#Downloading... \1%/; s/^20[0-9][0-9].*/#Done./' | \ | ||||
|     zenity --progress --percentage=0 --title="Download $(basename $1)" --text=Starting... --auto-close --auto-kill --width=500 --height=90 | ||||
|     [ "${PIPESTATUS[0]}" != 0 ] && print_error "failed to download $1. Scipping." && export DOWNLOAD_ERROR=1 && return 1 || export DOWNLOAD_ERROR=0 && return 0  | ||||
|     [ "${PIPESTATUS[0]}" != 0 ] && print_error "failed to download $1. Scipping." && return 1 || return 0  | ||||
| } | ||||
| create_new_dir () { | ||||
|     if [ ! -d "$1" ] ; then | ||||
| @@ -93,264 +97,109 @@ var_winedlloverride_update () { | ||||
|     else export WINEDLLOVERRIDES="${1}" | ||||
|     fi  | ||||
| } | ||||
| var_vkd3d_config_update () { | ||||
|     if [ ! -z "${VKD3D_CONFIG}" ]  | ||||
|     then export VKD3D_CONFIG="${1};${VKD3D_CONFIG}" | ||||
|     else export VKD3D_CONFIG="${1}"  | ||||
|     fi  | ||||
| } | ||||
| unpack_tar_xz () { | ||||
|     set -o pipefail | ||||
|     tar -Jxvf "$1" -C "$2" | sszen  | ||||
|     [ "${PIPESTATUS[0]}" != 0 ] && print_error "File unpacking error." && return 1 || return 0  | ||||
| } | ||||
| pw_mangohud_check () { | ||||
|     export RUN_MANGOHUD="" | ||||
|     export MANGOHUD=0 | ||||
|     export MANGOHUD_DLSYM=0 | ||||
|     if [ -x "`which mangohud 2>/dev/null`" ] && [ "${PW_MANGOHUD}" == "1" ] ; then | ||||
|         if [ "${PW_VULKAN_USE}" = "0" ]; then  | ||||
|             export MANGOHUD_DLSYM=1 | ||||
|             export RUN_MANGOHUD=mangohud | ||||
|         else | ||||
|             export MANGOHUD=1 | ||||
|         fi | ||||
|     fi  | ||||
| } | ||||
| pw_clear_pfx () { | ||||
|     try_remove_file "${WINEPREFIX}/system.reg" | ||||
|     try_remove_file "${WINEPREFIX}/user.reg" | ||||
|     try_remove_file "${WINEPREFIX}/userdef.reg" | ||||
|     try_remove_file "${WINEPREFIX}/winetricks.log" | ||||
|     try_remove_dir "${WINEPREFIX}/drive_c/windows/" | ||||
| } | ||||
| sszen() { | ||||
|     zenity --progress --title="Settings..." --text="Updating parameters" --pulsate --auto-close --width=500 --height=90 --no-cancel | ||||
| }  | ||||
| PW_START_PROGRESS_BAR () { | ||||
|     "${pw_yad}" --progress --progress-text="Start ${portname}... Please wait..." --pulsate --close-on-unfocus \ | ||||
|     --no-buttons --undecorated --center --skip-taskbar --width=600 --wrap-width=500 & | ||||
|     export start_progress_yad_pid=$(echo $!)  | ||||
| PW_START_PROGRESS_BAR_CS () { | ||||
|     "${pw_yad}" --progress --progress-text="$@" --pulsate --close-on-unfocus \ | ||||
|     --no-buttons --undecorated --center --skip-taskbar --width=500 --wrap-width=500 & | ||||
|     echo "" | ||||
| } | ||||
| PW_START_PROGRESS_BAR_BLOCK () { | ||||
|     "${pw_yad}" --progress --progress-text="$@" --pulsate \ | ||||
|     --no-buttons --undecorated --center --skip-taskbar --width=500 --wrap-width=500 & | ||||
|     echo "" | ||||
| } | ||||
| PW_STOP_PROGRESS_BAR () { | ||||
|     if [ ! -z "${start_progress_yad_pid}" ] ; then | ||||
|         kill "${start_progress_yad_pid}" | ||||
|     fi  | ||||
| } | ||||
| cd "$(dirname "`readlink -f "$0"`")" && export PORT_SCRIPTS_PATH="$(pwd)" | ||||
| cd "${PORT_SCRIPTS_PATH}/../../" && export PORT_WINE_PATH="$(pwd)" | ||||
| export PORT_WINE_TMP_PATH="${PORT_WINE_PATH}/data/tmp" | ||||
| read "portname" < "${PORT_WINE_TMP_PATH}/portname" && export portname | ||||
| cd "${PORT_SCRIPTS_PATH}"  | ||||
| . "${PORT_SCRIPTS_PATH}/vars/${portname}_vars" | ||||
| create_new_dir "${PORT_WINE_TMP_PATH}" | ||||
| create_new_dir "${HOME}/.PortWINE/tmp" | ||||
|  | ||||
| if [ ! -e "${PORT_WINE_TMP_PATH}/${portname}_loc" ]; then | ||||
| 	SET_LANG=`zenity --title  "Install $portname" --text "Select the language" --list --radiolist \ | ||||
| 	--column="Set:" --column "Language:" \ | ||||
| 	TRUE "RUS" \ | ||||
| 	FALSE "ENG" ` | ||||
| 	echo "${SET_LANG}" > "${PORT_WINE_TMP_PATH}/${portname}_loc" | ||||
| fi | ||||
| if [ "${portname}" = "PortProton" ]; then | ||||
|     if [ -e "${PORT_WINE_TMP_PATH}/pw_vulkan" ]; then | ||||
|         rm -f "${PORT_WINE_TMP_PATH}/pw_vulkan" | ||||
|     fi | ||||
| fi | ||||
| . "${PORT_SCRIPTS_PATH}"/lang | ||||
| if [ ! -e "${PORT_WINE_TMP_PATH}/${portname}_ver" ]; then | ||||
| 	echo "10" > "${PORT_WINE_TMP_PATH}/${portname}_ver" | ||||
| fi | ||||
|  | ||||
| export pw_libs_ver="_v7" | ||||
| export mono_ver="6.1.1" | ||||
| export gecko_ver="2.47.2" | ||||
| export url_mono="https://github.com/madewokherd/wine-mono/releases/download/wine-mono-${mono_ver}/wine-mono-${mono_ver}-x86.tar.xz" | ||||
| export url_gecko_x86="https://dl.winehq.org/wine/wine-gecko/${gecko_ver}/wine-gecko-${gecko_ver}-x86.tar.xz" | ||||
| export url_gecko_x86_64="https://dl.winehq.org/wine/wine-gecko/${gecko_ver}/wine-gecko-${gecko_ver}-x86_64.tar.xz" | ||||
| export WINEARCH=win64 | ||||
| export PW_VULKAN_DLL="${PORT_WINE_PATH}"/data/vulkan | ||||
| export WINEDIR="${PORT_WINE_PATH}"/data/dist | ||||
| export WINELIB="${HOME}/.PortWINE/libs${pw_libs_ver}" | ||||
| export WINEPREFIX="${PORT_WINE_PATH}/data/pfx/" | ||||
| export PW_COMPAT_MEDIA_PATH="${PORT_WINE_TMP_PATH}/" | ||||
| export PW_RUNTIME="$WINELIB/run.sh" | ||||
| export PW_GUI_ICON_PATH="${PORT_WINE_PATH}/data/img/gui" | ||||
| export urlg="https://portwine-linux.ru/portwine-faq/" | ||||
| export PW_FTP_URL="https://portwine-linux.ru/ftp" | ||||
| export PW_TERM="" | ||||
| export PW_WINE_VER_DXVK="" | ||||
| export PW_WINDOWS_VER="7" | ||||
| export PW_LOG=0 | ||||
| var_winedlloverride_update "winemenubuilder.exe=" | ||||
|  | ||||
| zen_width=500 | ||||
| if [ -f "${WINEDIR}"_dxvk/version ]; then | ||||
|     read PW_WINE_VER_DXVK < "${WINEDIR}"_dxvk/version | ||||
|     PW_WINE_VER_DXVK="( wine: $PW_WINE_VER_DXVK )" | ||||
|     zen_width=1000 | ||||
| fi | ||||
| export PW_WINE_VER_VKD3D="" | ||||
| if [ -f "${WINEDIR}"_vkd3d/version ]; then | ||||
|     read PW_WINE_VER_VKD3D < "${WINEDIR}"_vkd3d/version | ||||
|     PW_WINE_VER_VKD3D="( wine: $PW_WINE_VER_VKD3D )" | ||||
|     zen_width=1000 | ||||
| fi | ||||
| if [ -z "${INSTALLING_PORT}" ] ; then | ||||
|     if [ ! -e "${WINELIB}/run.sh" ] || [ ! -e "${WINELIB}/usr/bin/yad" ] || [ ! -e "${WINELIB}/amd64/usr/bin/vkcube" ] || [ ! -e "${WINELIB}/amd64/usr/bin/xterm" ] || [ -e "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" ] ; then  | ||||
|         echo "Download and install libraries..." | ||||
|         try_download "https://github.com/Castro-Fidel/PortWINE/releases/download/libs${pw_libs_ver}/libs${pw_libs_ver}.tar.xz" "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" | ||||
|         [ "${DOWNLOAD_ERROR}" != 1 ] && tar -Jxvf "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" -C "${HOME}/.PortWINE/" | sszen && | ||||
|         [ "${DOWNLOAD_ERROR}" != 1 ] && rm -f "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" | ||||
|         #[ "${DOWNLOAD_ERROR}" != 1 ] && "${WINELIB}"/setup.sh --force | ||||
|     fi | ||||
|     if [ -e "${WINELIB}/run.sh" ]; then  | ||||
|         echo "######################################################" | ||||
|         echo "Runtime libraries is enabled" | ||||
|         try_remove_dir "${WINELIB}/pinned_libs_32" | ||||
|         try_remove_dir "${WINELIB}/pinned_libs_64" | ||||
|         export pw_yad="${WINELIB}/usr/bin/yad" | ||||
|         if [ -x "`which xterm 2>/dev/null`" ]; then | ||||
|             export PW_XTERM="xterm -geometry 159x37 -e"  | ||||
|         else | ||||
|             export PW_XTERM="${WINELIB}/amd64/usr/bin/xterm -geometry 159x37 -e"         | ||||
|         fi | ||||
|     else | ||||
|         echo "######################################################" | ||||
|         echo "Runtime libraries is disabled" | ||||
|     fi | ||||
|     if [ ! -d "${HOME}/.PortWINE/mono/wine-mono-${mono_ver}" ] ; then  | ||||
|         echo "######################################################" | ||||
|         echo "Download and install wine mono..." | ||||
|         try_download "${url_mono}" "${HOME}/.PortWINE/tmp/wine-mono-${mono_ver}-x86.tar.xz"  | ||||
|         [ "${DOWNLOAD_ERROR}" != 1 ] && create_new_dir "${HOME}/.PortWINE/mono" | ||||
|         [ "${DOWNLOAD_ERROR}" != 1 ] && tar -Jxvf "${HOME}/.PortWINE/tmp/wine-mono-${mono_ver}-x86.tar.xz" -C "${HOME}/.PortWINE/mono/" | sszen && | ||||
|         [ "${DOWNLOAD_ERROR}" != 1 ] && try_remove_file "${HOME}/.PortWINE/tmp/wine-mono-${mono_ver}-x86.tar.xz" | ||||
|     fi | ||||
|     if [ ! -d "${HOME}/.PortWINE/gecko/wine-gecko-${gecko_ver}-x86" ] ; then  | ||||
|         echo "######################################################" | ||||
|         echo "Download and install wine gecko x86..." | ||||
|         try_download "${url_gecko_x86}" "${HOME}/.PortWINE/tmp/wine-gecko-${gecko_ver}-x86.tar.xz" | ||||
|         [ "${DOWNLOAD_ERROR}" != 1 ] && create_new_dir "${HOME}/.PortWINE/gecko" | ||||
|         [ "${DOWNLOAD_ERROR}" != 1 ] && tar -Jxvf "${HOME}/.PortWINE/tmp/wine-gecko-${gecko_ver}-x86.tar.xz" -C "${HOME}/.PortWINE/gecko/" | sszen && | ||||
|         [ "${DOWNLOAD_ERROR}" != 1 ] && try_remove_file "${HOME}/.PortWINE/tmp/wine-gecko-${gecko_ver}-x86.tar.xz" | ||||
|     fi | ||||
|         if [ ! -d "${HOME}/.PortWINE/gecko/wine-gecko-${gecko_ver}-x86_64" ] ; then  | ||||
|         echo "######################################################" | ||||
|         echo "Download and install wine gecko x86_64..." | ||||
|         try_download "${url_gecko_x86_64}" "${HOME}/.PortWINE/tmp/wine-gecko-${gecko_ver}-x86_64.tar.xz"  | ||||
|         [ "${DOWNLOAD_ERROR}" != 1 ] && create_new_dir "${HOME}/.PortWINE/gecko" | ||||
|         [ "${DOWNLOAD_ERROR}" != 1 ] && tar -Jxvf "${HOME}/.PortWINE/tmp/wine-gecko-${gecko_ver}-x86_64.tar.xz" -C "${HOME}/.PortWINE/gecko/" | sszen && | ||||
|         [ "${DOWNLOAD_ERROR}" != 1 ] && try_remove_file "${HOME}/.PortWINE/tmp/wine-gecko-${gecko_ver}-x86_64.tar.xz" | ||||
|     fi | ||||
|     create_new_dir "${WINEDIR}/share/wine/" | ||||
|     try_force_link_dir "${HOME}/.PortWINE/gecko" "${WINEDIR}"/share/wine/       | ||||
|     try_force_link_dir "${HOME}/.PortWINE/mono" "${WINEDIR}"/share/wine/  | ||||
|  | ||||
|     for pw_dist in "dxvk" "vkd3d" | ||||
|     do | ||||
|         if [ -d "${WINEDIR}"_"${pw_dist}"/share/wine/ ]; then | ||||
|             try_force_link_dir "${WINEDIR}"/share/wine/gecko "${WINEDIR}"_"${pw_dist}"/share/wine/  | ||||
|             try_force_link_dir "${WINEDIR}"/share/wine/mono "${WINEDIR}"_"${pw_dist}"/share/wine/      | ||||
|         fi | ||||
|     while [ ! -z "`pgrep -a yad | grep "\-\-progress" | awk '{print $1}'`" ]  | ||||
|     do kill -n 9 `pgrep -a yad | grep "\-\-progress" | awk '{print $1}' | head -n 1` | ||||
|     done | ||||
|     if [ ! -z "${gamestart}" ]; then | ||||
|         export PORTWINE_DB=`echo "${gamestart}" | awk -F '/' 'NF>1{print $NF}' | sed s/".exe"/""/gi` | ||||
|     elif [ ! -z "${portwine_exe}" ]; then | ||||
|         export PORTWINE_DB=`echo "${portwine_exe}" | awk -F '/' 'NF>1{print $NF}' | sed s/".exe"/""/gi` | ||||
|         export PATH_TO_GAME="$( cd "$( dirname "${portwine_exe}" )" >/dev/null 2>&1 && pwd )" | ||||
|         export WIN_PATH_TO_GAME=`echo "C:${PATH_TO_GAME}" | sed "s%$WINEPREFIX%%g" | sed "s/drive_c//g" | sed 's#/#\\\#g'`            | ||||
|     fi | ||||
|     if [ ! -z "${PORTWINE_DB}" ]; then | ||||
|         PORTWINE_DB_FILE=`grep -il "#${PORTWINE_DB}" "${PORT_SCRIPTS_PATH}/portwine_db"/* | sed s/".exe"/""/gi` | ||||
|         if [ ! -z "${PORTWINE_DB_FILE}" ]; then | ||||
|             . "${PORTWINE_DB_FILE}" | ||||
|             echo "Use ${PORTWINE_DB_FILE} db file." | ||||
|         else | ||||
|             . "${PORT_SCRIPTS_PATH}/portwine_db/default" | ||||
|             echo "Use default db file." | ||||
|         fi | ||||
|     fi | ||||
| fi | ||||
| } | ||||
| START_PORTWINE () | ||||
|     { | ||||
|     if [ "${PW_USE_TERMINAL}" = "1"  ]; then | ||||
|         if [ -x "`which konsole 2>/dev/null`" ]; then | ||||
|             export PW_TERM="konsole -e" | ||||
|         elif [ -x "`which xterm 2>/dev/null`" ]; then | ||||
|             export PW_TERM="xterm -e" | ||||
|         elif [ -x "`which gnome-terminal 2>/dev/null`" ]; then | ||||
|             export PW_TERM="gnome-terminal -- $SHELL -c"  | ||||
|         elif [ -x "`which lxterminal 2>/dev/null`" ]; then | ||||
|             export PW_TERM="lxterminal -e"  | ||||
|     if [ -x "`which konsole 2>/dev/null`" ]; then export PW_TERM="konsole --nofork -e" | ||||
|     elif [ -x "`which xterm 2>/dev/null`" ]; then export PW_TERM="${PW_XTERM}" | ||||
|     elif [ -x "`which gnome-terminal 2>/dev/null`" ]; then export PW_TERM="gnome-terminal -- $SHELL -c"  | ||||
|     elif [ -x "`which lxterminal 2>/dev/null`" ]; then export PW_TERM="lxterminal -e" | ||||
|     else export PW_TERM="${PW_XTERM}" | ||||
|     fi | ||||
|  | ||||
|     try_remove_dir "${PORT_WINE_PATH}/data/vulkan" | ||||
|     create_new_dir "${PW_VULKAN_DLL}" | ||||
|  | ||||
|     export url_dxvk="https://github.com/doitsujin/dxvk/releases/download/v${PW_DXVK_VER}/dxvk-${PW_DXVK_VER}.tar.gz" | ||||
|     if [ ! -d "${PW_VULKAN_DLL}/dxvk-${PW_DXVK_VER}" ] ; then | ||||
|         if  pw_ping_test ; then | ||||
|             if try_download "${url_dxvk}" "${PW_VULKAN_DLL}/dxvk-${PW_DXVK_VER}.tar.gz" ; then | ||||
|                 tar -zxvf "${PW_VULKAN_DLL}/dxvk-${PW_DXVK_VER}.tar.gz" -C "${PW_VULKAN_DLL}/" | ||||
|                 try_remove_file "${PW_VULKAN_DLL}/dxvk-${PW_DXVK_VER}.tar.gz" | ||||
|             else | ||||
|             export PW_TERM="${PW_XTERM}" | ||||
|                 try_remove_file "${PW_VULKAN_DLL}/dxvk-${PW_DXVK_VER}.tar.gz"                 | ||||
|                 `zenity --error --title "Error..." --text "You will need to change DXVK version in db file!" --no-wrap ` > /dev/null 2>&1 | ||||
|                 PW_EDIT_DB & exit 1 | ||||
|             fi | ||||
|     fi | ||||
|     if [ -z "${INSTALLING_PORT}" ] ; then | ||||
|         PW_UPDATE | ||||
|     fi | ||||
|     if [ ! -z "${PW_VULKAN_USE}" ]; then | ||||
|         export var_pw_vulkan="${PW_VULKAN_USE}" | ||||
|         echo "${var_pw_vulkan}" > "${PORT_WINE_TMP_PATH}/pw_vulkan" | ||||
|         else  | ||||
|         read "var_pw_vulkan" < "${PORT_WINE_TMP_PATH}/pw_vulkan" && export var_pw_vulkan | ||||
|             export PW_DXVK_VER="${PW_DEF_DXVK_VER}" | ||||
|         fi | ||||
|     PW_START_PROGRESS_BAR  | ||||
|     if [ "${var_pw_vulkan}" = "0" ]; then | ||||
|         if [ -d "${WINEDIR}_dxvk" ]; then | ||||
|             export WINEDIR="${WINEDIR}_dxvk" | ||||
|     fi | ||||
|         export MESA_GLSL_CACHE_DIR="${PORT_WINE_TMP_PATH}" | ||||
|         export GL_NO_DSO_FINALIZER=1  | ||||
|         export GL_YIELD="NOTHING"  | ||||
|         export GL_SHARPEN_IGNORE_FILM_GRAIN=0  | ||||
|         export GL_SHARPEN_ENABLE=1  | ||||
|         export __GL_SHARPEN_VALUE=0  | ||||
|         for wine_build_dll in d3d11 d3d10 d3d10core d3d10_1 d3d9 ; do | ||||
|             try_copy_file "${WINEDIR}/lib/wine/${wine_build_dll}.dll" "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|             try_copy_file "${WINEDIR}/lib64/wine/${wine_build_dll}.dll" "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|         done | ||||
|         try_copy_file "${WINEDIR}"/lib/wine/fakedlls/dxgi.dll "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|         try_copy_file "${WINEDIR}"/lib64/wine/fakedlls/dxgi.dll "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|         var_winedlloverride_update "dxgi=b" | ||||
|         export PW_FORCE_LARGE_ADDRESS_AWARE=0 | ||||
|         [ "${PW_MANGOHUD}" == "1" ] && export MANGOHUD_DLSYM=1 | ||||
|         echo "Use OpenGL" | ||||
|     elif [ "${var_pw_vulkan}" = "dxvk" ]; then | ||||
|         if [ -d "${WINEDIR}_dxvk" ]; then | ||||
|             export WINEDIR="${WINEDIR}_dxvk" | ||||
|         fi | ||||
|         for wine_dxvk_dll in d3d11 d3d10 d3d10core d3d10_1 d3d9 dxgi ; do | ||||
|             try_copy_file "${PW_VULKAN_DLL}/dxvk/x32/${wine_dxvk_dll}.dll" "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|             try_copy_file "${PW_VULKAN_DLL}/dxvk/x64/${wine_dxvk_dll}.dll" "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|             [ "$?" == 0 ] && var_winedlloverride_update "${wine_dxvk_dll}=n" | ||||
|         done | ||||
|         [ "${PW_MANGOHUD}" == "1" ] && export MANGOHUD=1 | ||||
|         echo "Use DXVK (DX9-DX11 to Vulkan)" | ||||
|  | ||||
|     export url_vkd3d="https://github.com/HansKristian-Work/vkd3d-proton/releases/download/v${PW_VKD3D_VER}/vkd3d-proton-${PW_VKD3D_VER}.tar.zst" | ||||
|     if [ ! -d "${PW_VULKAN_DLL}/vkd3d-proton-${PW_VKD3D_VER}" ] ; then | ||||
|         if  pw_ping_test ; then | ||||
|             if try_download "${url_vkd3d}" "${PW_VULKAN_DLL}/vkd3d-proton-${PW_VKD3D_VER}.tar.zst" ; then | ||||
|                 tar -C "${PW_VULKAN_DLL}/" -I "${pw_zstd}" -xvf "${PW_VULKAN_DLL}/vkd3d-proton-${PW_VKD3D_VER}.tar.zst"  | ||||
|                 try_remove_file "${PW_VULKAN_DLL}/vkd3d-proton-${PW_VKD3D_VER}.tar.zst" | ||||
|             else | ||||
|         if [ -d "${WINEDIR}_vkd3d" ]; then | ||||
|             export WINEDIR="${WINEDIR}_vkd3d" | ||||
|                 try_remove_file "${PW_VULKAN_DLL}/vkd3d-proton-${PW_VKD3D_VER}.tar.zst" | ||||
|                 `zenity --error --title "Error..." --text "You will need to change VKD3D version in db file!" --no-wrap ` > /dev/null 2>&1 | ||||
|                 PW_EDIT_DB & exit 1 | ||||
|             fi | ||||
|         for wine_vkd3d_dll in d3d12 libvkd3d-proton-utils-2 ; do | ||||
|             try_copy_file "${PW_VULKAN_DLL}/vkd3d-proton/x86/${wine_vkd3d_dll}.dll" "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|             try_copy_file "${PW_VULKAN_DLL}/vkd3d-proton/x64/${wine_vkd3d_dll}.dll" "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|             [ "$?" == 0 ] && var_winedlloverride_update "${wine_vkd3d_dll}=n" | ||||
|         done | ||||
|         if [ ! -z "${PW_DXGI_FROM_DXVK}" ] && [ "${PW_DXGI_FROM_DXVK}" != 0 ] ; then | ||||
|             try_copy_file "${PW_VULKAN_DLL}/dxvk/x32/dxgi.dll" "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|             try_copy_file "${PW_VULKAN_DLL}/dxvk/x64/dxgi.dll" "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|             var_winedlloverride_update "dxgi=n" | ||||
|         else | ||||
|             try_copy_file "${WINEDIR}/lib/wine/fakedlls/dxgi.dll" "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|             try_copy_file "${WINEDIR}/lib64/wine/fakedlls/dxgi.dll" "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|             var_winedlloverride_update "dxgi=b" | ||||
|             export PW_VKD3D_VER="${PW_DEF_VKD3D_VER}"  | ||||
|         fi | ||||
|         [ "${PW_MANGOHUD}" == "1" ] && export MANGOHUD=1 | ||||
|         export PW_WINDOWS_VER="10" | ||||
|         echo "Use VKD3D (DX12 to vulkan)" | ||||
|     fi | ||||
|     try_copy_file "${PW_VULKAN_DLL}/dxvk/x32/dxvk_config.dll" "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|     try_copy_file "${PW_VULKAN_DLL}/dxvk/x64/dxvk_config.dll" "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|     [ "$?" == 0 ] && var_winedlloverride_update "dxvk_config.dll=n" | ||||
|  | ||||
|     PW_START_PROGRESS_BAR_CS "Start ${portname}... Please wait..." | ||||
|  | ||||
|     export WINELOADER="${WINEDIR}/bin/wine" | ||||
|     export WINEDLLPATH="${WINEDIR}/lib64/wine:${WINEDIR}/lib/wine" | ||||
|     export WINEDLLPATH="${WINEDIR}/lib64/wine:${WINEDIR}/lib/wine:${PATH_TO_GAME}" | ||||
|     export WINESERVER="${WINEDIR}/bin/wineserver" | ||||
|     if [ ! -z "${PATH}" ]  | ||||
|     then export PATH="${WINEDIR}/bin:${PATH}" | ||||
|     else export PATH="${WINEDIR}/bin" | ||||
|     fi | ||||
|     export WINE="${WINELOADER}" | ||||
|  | ||||
|     rm -f  "${WINEDIR}"*/lib*/*steam*  | ||||
|     rm -f  "${WINEDIR}"*/lib*/wine/*steam*  | ||||
|     rm -f  "${WINEDIR}"*/lib*/wine/fakedlls/*steam*  | ||||
|     rm -f "${WINEPREFIX}/drive_c/windows/system32"/steam*  | ||||
|     rm -f "${WINEPREFIX}/drive_c/windows/syswow64"/steam*  | ||||
|  | ||||
|     try_copy_file "${WINEDIR}/share/fonts/"LiberationSans-Regular.ttf "${WINEPREFIX}/drive_c/windows/Fonts/"arial.ttf | ||||
|     try_copy_file "${WINEDIR}/share/fonts/"LiberationSans-Bold.ttf "${WINEPREFIX}/drive_c/windows/Fonts/"arialbd.ttf | ||||
|     try_copy_file "${WINEDIR}/share/fonts/"LiberationSerif-Regular.ttf "${WINEPREFIX}/drive_c/windows/Fonts/"times.ttf | ||||
|     try_copy_file "${WINEDIR}/share/fonts/"LiberationMono-Regular.ttf "${WINEPREFIX}/drive_c/windows/Fonts/"cour.ttf | ||||
|     try_copy_file "${WINEDIR}/share/fonts/"SourceHanSansSCRegular.otf "${WINEPREFIX}/drive_c/windows/Fonts/"msyh.ttf | ||||
|  | ||||
|     for wine_build_dll in ntdll mf mf3216 mferror mfmediaengine mfplat mfplay mfreadwrite vulkan-1 ; do #sqmapi msmpeg2vdec msmpeg2adec colorcnv | ||||
|         try_copy_file "${WINEDIR}/lib/wine/${wine_build_dll}.dll" "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|         try_copy_file "${WINEDIR}/lib64/wine/${wine_build_dll}.dll" "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|         [ "$?" == 0 ] && var_winedlloverride_update "${wine_build_dll}=b" | ||||
|     done | ||||
|     var_winedlloverride_update "steam_api,steam_api64,steamclient,steamclient64=n" | ||||
| #    export GST_PLUGIN_SYSTEM_PATH_1_0="${WINEDIR}/lib64/gstreamer-1.0:${WINEDIR}/gstreamer-1.0" | ||||
|     export WINE_GST_REGISTRY_DIR="${PORT_WINE_TMP_PATH}" | ||||
|     export MEDIACONV_AUDIO_DUMP_FILE="${PORT_WINE_TMP_PATH}"/audio.foz | ||||
| @@ -374,11 +223,11 @@ START_PORTWINE () | ||||
|     export WINE_MONO_OVERRIDES="Microsoft.Xna.Framework.*,Gac=n" | ||||
|  | ||||
|     if [ ! -z "${PW_NO_ESYNC}" ] && [ "${PW_NO_ESYNC}" != 0 ]  | ||||
|     then export WINEESYNC="" | ||||
|     then export WINEESYNC="0" | ||||
|     else export WINEESYNC="1" | ||||
|     fi | ||||
|     if [ ! -z "${PW_NO_FSYNC}" ] && [ "${PW_NO_FSYNC}" != 0 ] ; then | ||||
|         export WINEFSYNC="" | ||||
|         export WINEFSYNC="0" | ||||
|         export WINEFSYNC_FUTEX2="0" | ||||
|     else | ||||
|         export WINEFSYNC="1" | ||||
| @@ -395,8 +244,9 @@ START_PORTWINE () | ||||
|     if [ ! -z "${PW_NO_WRITE_WATCH}" ] && [ "${PW_NO_WRITE_WATCH}" != 0 ] ; then | ||||
|         export WINE_DISABLE_WRITE_WATCH="1" | ||||
|     fi | ||||
|     if [ ! -z "${PW_DXVK_NO_ASYNC}" ] && [ "${PW_DXVK_NO_ASYNC}" != 0 ] ; then | ||||
|     if [ ! -z "${PW_VULKAN_NO_ASYNC}" ] && [ "${PW_VULKAN_NO_ASYNC}" != 0 ] ; then | ||||
|         export RADV_DEBUG="llvm" | ||||
|         var_vkd3d_config_update single_queue | ||||
|     fi | ||||
|     if [ ! -z "${PW_NVAPI_DISABLE}" ] && [ "${PW_NVAPI_DISABLE}" != 0 ] ; then | ||||
|         var_winedlloverride_update "nvapi,nvapi64=" | ||||
| @@ -410,15 +260,22 @@ START_PORTWINE () | ||||
|     if [ ! -z "${PW_VKD3D_FEATURE_LEVEL}" ] && [ "${PW_VKD3D_FEATURE_LEVEL}" != 0 ] ; then | ||||
|         export VKD3D_FEATURE_LEVEL="12_0" | ||||
|     fi | ||||
|     if [ ! -z "${PW_HEAP_DELAY_FREE}" ] && [ "${PW_HEAP_DELAY_FREE}" != 0 ] ; then | ||||
|         export WINE_HEAP_DELAY_FREE="1" | ||||
|     if [ ! -z "${PW_HEAP_DELAY_FREE}" ] && [ "${PW_HEAP_DELAY_FREE}" != 0 ] | ||||
|     then export WINE_HEAP_DELAY_FREE="1" | ||||
|     else export WINE_HEAP_DELAY_FREE="0" | ||||
|     fi | ||||
|     if [ ! -z "${PW_WINE_ALLOW_XIM}" ] && [ "${PW_WINE_ALLOW_XIM}" != 0 ] | ||||
|     then export WINE_ALLOW_XIM="1" | ||||
|     else export WINE_ALLOW_XIM="0" | ||||
|     fi | ||||
|     if [ ! -z "${PW_DXR_ON}" ] && [ "${PW_DXR_ON}" != 0 ] ; then | ||||
|         var_vkd3d_config_update dxr | ||||
|     fi  | ||||
|  | ||||
|     create_new_dir "${PORT_WINE_TMP_PATH}/dxvk_cache" | ||||
|     export DXVK_STATE_CACHE_PATH="${PORT_WINE_TMP_PATH}"/dxvk_cache | ||||
|     export DXVK_STATE_CACHE=1 | ||||
|     export STAGING_SHARED_MEMORY=1 | ||||
|     export optirun_on= | ||||
|     export optirun_on="" | ||||
|     export check_optimus_manager= | ||||
|     export PW_NVIDIA="$(lspci | grep NVIDIA)"  | ||||
|     if [ -x "`which optimus-manager 2>/dev/null`" ]; then | ||||
| @@ -457,7 +314,7 @@ START_PORTWINE () | ||||
|         export vblank_mode=1 | ||||
|         export __GL_SYNC_TO_VBLANK=1 ;;   | ||||
|     esac | ||||
|     #export DXVK_CONFIG_FILE="${PORT_WINE_PATH}/data/" | ||||
|     export DXVK_CONFIG_FILE="${PORT_WINE_PATH}/data/dxvk.conf" | ||||
|     export int_xneur=0 | ||||
|     if [ $(pgrep xneur)>'0' ]; then | ||||
|         killall xneur | ||||
| @@ -474,7 +331,7 @@ START_PORTWINE () | ||||
|         export PW_GAMEMODERUN=0 | ||||
|         echo "Gamemod is not installed or disabled in vars script: PW_FORCE_DISABLED_GAMEMOD=$PW_FORCE_DISABLED_GAMEMOD" | ||||
|     fi | ||||
|     PW_CREATE_PFX | ||||
|     PW_INIT_PFX | ||||
|     RUN_WINETRICKS_FROM_DB  | ||||
|     ADD_IN_START_PORTWINE | ||||
| }  | ||||
| @@ -487,10 +344,13 @@ WAIT_WINESERVER () { | ||||
| } | ||||
|  | ||||
| KILL_PORTWINE () { | ||||
|     wine_pids=$(ls -l /proc/*/exe 2>/dev/null | grep -ie ${portname} | grep -E 'wine(64)?-preloader|wineserver' | awk -F/ '{print $3}')  | ||||
|     wine_pids=`ls -l /proc/*/exe 2>/dev/null | grep -ie ${portname} | grep -E 'wine(64)?-preloader| ' | awk -F/ '{print $3}'` | ||||
|     if  [ ! -z "${wine_pids}" ] ; then  | ||||
|         "${WINESERVER}" -k | ||||
|         kill -9 ${wine_pids}  | ||||
|         for pw_kill_pids in ${wine_pids} ; do | ||||
|             if [ "`ps cax | grep ${pw_kill_pids}`" ] ; then  | ||||
|                 kill -n 9 ${pw_kill_pids}  | ||||
|             fi | ||||
|         done | ||||
|     fi | ||||
| } | ||||
|  | ||||
| @@ -504,6 +364,8 @@ STOP_PORTWINE () { | ||||
|         setxkbmap ${PW_XKBD} | ||||
|     fi  | ||||
|     PW_STOP_PROGRESS_BAR | ||||
|     try_remove_file "${PORT_SCRIPTS_PATH}/0" | ||||
|     try_remove_file "${PORT_SCRIPTS_PATH}/1" | ||||
| } | ||||
|  | ||||
| UPDATE_WINETRICKS () { | ||||
| @@ -517,37 +379,43 @@ UPDATE_WINETRICKS () { | ||||
|         W_TRX_INT_VER="$(cat "${PORT_WINE_TMP_PATH}/winetricks" | grep -i 'WINETRICKS_VERSION=' | sed 's/WINETRICKS_VERSION=//')" | ||||
|         print_info "Version winetricks in port: ${W_TRX_INT_VER}" | ||||
|         if [ "$W_TRX_INT_VER" != "$W_TRX_EXT_VER" ] ; then | ||||
|             try_download "${W_TRX_URL}" "${PORT_WINE_TMP_PATH}/winetricks_new" | ||||
|             [ "$DOWNLOAD_ERROR" != "1" ] && mv -f "${PORT_WINE_TMP_PATH}/winetricks_new" "${PORT_WINE_TMP_PATH}/winetricks" | ||||
|             [ "$DOWNLOAD_ERROR" != "1" ] && W_TRX_INT_VER="$(cat "${PORT_WINE_TMP_PATH}/winetricks" | grep -i 'WINETRICKS_VERSION=' | sed 's/WINETRICKS_VERSION=//')" && print_info "Winetricks version in port has been updated (${W_TRX_INT_VER})"  | ||||
|             if try_download "${W_TRX_URL}" "${PORT_WINE_TMP_PATH}/winetricks_new" ; then | ||||
|                 mv -f "${PORT_WINE_TMP_PATH}/winetricks_new" "${PORT_WINE_TMP_PATH}/winetricks" | ||||
|                 W_TRX_INT_VER="$(cat "${PORT_WINE_TMP_PATH}/winetricks" | grep -i 'WINETRICKS_VERSION=' | sed 's/WINETRICKS_VERSION=//')" && print_info "Winetricks version in port has been updated (${W_TRX_INT_VER})"  | ||||
|                 chmod u+x "${PORT_WINE_TMP_PATH}/winetricks" | ||||
|             fi | ||||
|     fi #modded by Cefeiko | ||||
|         fi | ||||
|     fi | ||||
| } | ||||
|  | ||||
| RUN_WINETRICKS_FROM_DB () { | ||||
|     UPDATE_WINETRICKS | ||||
|     if [ ! -z "${PW_DLL_INSTALL}" ]; then | ||||
|         PW_STOP_PROGRESS_BAR | ||||
|         export PW_DLL_NEED_INSTALL="" | ||||
|         export USE_WT_FROM_DB=0 | ||||
|         if [ -e "${WINEPREFIX}/winetricks.log" ] ; then | ||||
|             for need_install_dll_to_pfx in ${PW_DLL_INSTALL} ; do | ||||
|                 grep "${need_install_dll_to_pfx}" "${WINEPREFIX}/winetricks.log" | ||||
|                 if [ "$?" == "1" ] ; then | ||||
|                     if [ -z "${PW_DLL_NEED_INSTALL}" ] | ||||
|                     then export PW_DLL_NEED_INSTALL="${need_install_dll_to_pfx}" | ||||
|                     else export PW_DLL_NEED_INSTALL="${need_install_dll_to_pfx} ${PW_DLL_NEED_INSTALL}" | ||||
|                     fi | ||||
|                     export USE_WT_FROM_DB=1 | ||||
|                     break | ||||
|                 fi   | ||||
|             done | ||||
|         else | ||||
|             export PW_DLL_NEED_INSTALL="${PW_DLL_INSTALL}" | ||||
|             export USE_WT_FROM_DB=1  | ||||
|         fi | ||||
|         if [ "${USE_WT_FROM_DB}" == "1" ] ; then | ||||
|             UPDATE_WINETRICKS | ||||
|             PW_STOP_PROGRESS_BAR | ||||
|             ${PW_XTERM} "${PW_RUNTIME}" "${PORT_WINE_TMP_PATH}/winetricks" -q ${PW_DLL_INSTALL} | ||||
|             PW_START_PROGRESS_BAR | ||||
|             print_info "Need to install DLL in prefix: ${PW_DLL_NEED_INSTALL}" | ||||
|             ${PW_TERM} "${PW_RUNTIME}" "${PORT_WINE_TMP_PATH}/winetricks" -q --force ${PW_DLL_NEED_INSTALL} | ||||
|         fi | ||||
|         PW_START_PROGRESS_BAR | ||||
|         PW_START_PROGRESS_BAR_CS "Start ${portname}... Please wait..." | ||||
|     fi | ||||
|     if [[ -z `cat "${WINEPREFIX}/system.reg" | grep "Windows $PW_WINDOWS_VER"` ]] ; then | ||||
|         if [ ! -z "${PW_WINDOWS_VER}" ] && [ `echo "$PW_WINDOWS_VER" | sed 's/.*/\L&/'` == "xp" ] ; then | ||||
| @@ -570,7 +438,6 @@ PW_UPDATE () { | ||||
|         echo `curl -s --list-only "${PW_FTP_URL}/current_version/${portname}_ver"` > "${PORT_WINE_TMP_PATH}/${portname}_cur_ver"    | ||||
|         if [ -f "${PORT_WINE_TMP_PATH}/${portname}_ver" ] ; then | ||||
|             read current_ver < "${PORT_WINE_TMP_PATH}/${portname}_cur_ver" | ||||
|             read install_ver < "${PORT_WINE_TMP_PATH}/${portname}_ver" | ||||
|             try_remove_file "${PORT_WINE_TMP_PATH}/${portname}_cur_ver" | ||||
|             if  [ ! -z "${current_ver}" ] && [ "${current_ver}" -gt "${install_ver}" ] ; then	 | ||||
|                 xsd=`zenity --title  "${port_upd1}" --text "${port_upd2}" --list --radiolist --height=220 --column="${inst_set}" --column "${port_upd3}" \ | ||||
| @@ -579,7 +446,7 @@ PW_UPDATE () { | ||||
|                 FALSE "${port_upd6}" ` | ||||
|                 case $xsd in | ||||
|                     "${port_upd4}") | ||||
|                         "${WINESERVER}" -k | ||||
|                         KILL_PORTWINE | ||||
|                         xdg-open $porturl  | ||||
|                         exit 0 ;; | ||||
|                     "${port_upd5}") | ||||
| @@ -607,17 +474,8 @@ PW_UPDATE () { | ||||
|         else | ||||
|             case $xsd2 in | ||||
|                 "${port_time4}") | ||||
|                         if [ ! -z "$(command -v sensible-browser)" ]; then | ||||
|                             sensible-browser "$urlg" & | ||||
|                         elif [ ! -z "$(command -v xdg-open)" ]; then | ||||
|                     xdg-open "$urlg" & | ||||
|                         elif [ ! -z "$(command -v gnome-open)" ]; then | ||||
|                             gnome-open "$urlg" & | ||||
|                         elif [ ! -z "$(command -v python)" ]; then | ||||
|                             python -m webbrowser "$urlg"  | ||||
|                         fi & | ||||
|                     echo "300" > "${HOME}/.config/.PortTime"  | ||||
|                         sleep 5 | ||||
|                     exit 0 ;; | ||||
|                 "${port_time5}") | ||||
|                     echo "75" > "${HOME}/.config/.PortTime" ;; | ||||
| @@ -628,22 +486,98 @@ PW_UPDATE () { | ||||
|     fi  | ||||
| } | ||||
|  | ||||
| PW_CREATE_PFX () { | ||||
| PW_INIT_PFX () { | ||||
|     rm -f  "${WINEDIR}"*/lib*/*steam*  | ||||
|     rm -f  "${WINEDIR}"*/lib*/wine/*steam*  | ||||
|     rm -f  "${WINEDIR}"*/lib*/wine/fakedlls/*steam*  | ||||
|     #sed -i '/HKCU,Software\\Valve\\Steam/d' "${WINEDIR}"*/share/wine/wine.inf  | ||||
|     #sed -i '/HKLM,Software\\Wow6432Node\\Valve\\Steam/d' "${WINEDIR}"*/share/wine/wine.inf  | ||||
|     #sed -i '/HKLM,Software\\Wow6432Node\\Valve\\Steam/d' "${WINEDIR}"*/share/wine/wine.inf  | ||||
|     if [ ! -d "${WINEPREFIX}" ] || [ ! -d "${WINEPREFIX}"/drive_c/windows ] || [ ! -f "${WINEPREFIX}"/user.reg ] || [ ! -f "${WINEPREFIX}"/userdef.reg ] || [ ! -f "${WINEPREFIX}"/system.reg ] ; then | ||||
|         sed -i '/HKCR,steam\\shell\\open\\command/d' "${WINEDIR}"*/share/wine/wine.inf  | ||||
|         sed -i '/HKCR,steam\\shell\\open\\command/d' "${WINEDIR}"*/share/wine/wine.inf  | ||||
|         create_new_dir "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|         create_new_dir "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|         cp -f "${WINEDIR}/lib/wine/fakedlls/"*.* "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|         cp -f "${WINEDIR}/lib/wine/"*.* "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|         cp -f "${WINEDIR}/lib64/wine/fakedlls/"*.* "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|         cp -f "${WINEDIR}/lib64/wine/"*.* "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|  | ||||
|         PW_STOP_PROGRESS_BAR | ||||
|         ${PW_XTERM} "${PW_RUNTIME}" "${WINELOADER}" wineboot -u  | ||||
|         `zenity --info --title "Info..." --text "   Updating prefix completed successfully.\n\n   Restart ${portname}." --no-wrap ` > /dev/null 2>&1   | ||||
|         exit 0 | ||||
|         PW_START_PROGRESS_BAR_BLOCK "Updating prefix... Please wait..." | ||||
|         "${PW_RUNTIME}" "${WINELOADER}" wineboot -u | ||||
|         PW_STOP_PROGRESS_BAR | ||||
|         PW_START_PROGRESS_BAR_CS "Initialization prefix..." | ||||
|     fi | ||||
|     if [ ! -d "${PORT_WINE_PATH}/data/pfx/drive_c/users/${USER}" ]; then | ||||
| 	    try_force_link_dir "${PORT_WINE_PATH}/data/pfx/drive_c/users/steamuser" "${PORT_WINE_PATH}/data/pfx/drive_c/users/${USER}" | ||||
|     fi | ||||
|     rm -f "${WINEPREFIX}/drive_c/windows/system32"/steam*  | ||||
|     rm -f "${WINEPREFIX}/drive_c/windows/syswow64"/steam*  | ||||
|  | ||||
|     create_new_dir "${WINEPREFIX}/drive_c/windows/Fonts/" | ||||
|     try_copy_file "${WINEDIR}/share/fonts/"LiberationSans-Regular.ttf "${WINEPREFIX}/drive_c/windows/Fonts/"arial.ttf | ||||
|     try_copy_file "${WINEDIR}/share/fonts/"LiberationSans-Bold.ttf "${WINEPREFIX}/drive_c/windows/Fonts/"arialbd.ttf | ||||
|     try_copy_file "${WINEDIR}/share/fonts/"LiberationSerif-Regular.ttf "${WINEPREFIX}/drive_c/windows/Fonts/"times.ttf | ||||
|     try_copy_file "${WINEDIR}/share/fonts/"LiberationMono-Regular.ttf "${WINEPREFIX}/drive_c/windows/Fonts/"cour.ttf | ||||
|     try_copy_file "${WINEDIR}/share/fonts/"SourceHanSansSCRegular.otf "${WINEPREFIX}/drive_c/windows/Fonts/"msyh.ttf | ||||
|     var_winedlloverride_update "steam_api,steam_api64,steamclient,steamclient64=n" | ||||
|     #sed -i '/steamclient/d' "${WINEPREFIX}"/*.reg  | ||||
|     #sed -i '/SteamPath/d' "${WINEPREFIX}"/*.reg  | ||||
|     } | ||||
|      | ||||
|     export TOTAL_VRAM=`"${WINELIB}/amd64/usr/bin/glxinfo" -B | grep Total | awk -F: '{print $2}' | awk '{print $1}'` | ||||
|     echo "TOTAL_VRAM=${TOTAL_VRAM}" | ||||
|     try_copy_file "${WINEDIR}/lib/wine/dxvk/dxvk_config.dll" "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|     try_copy_file "${WINEDIR}/lib64/wine/dxvk/dxvk_config.dll" "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|     if [ "${PW_VULKAN_USE}" = "0" ]; then | ||||
|         export MESA_GLSL_CACHE_DIR="${PORT_WINE_TMP_PATH}" | ||||
|         export GL_NO_DSO_FINALIZER=1  | ||||
|         export GL_YIELD="NOTHING"  | ||||
|         export GL_SHARPEN_IGNORE_FILM_GRAIN=0  | ||||
|         export GL_SHARPEN_ENABLE=1  | ||||
|         export __GL_SHARPEN_VALUE=0  | ||||
|         for wine_build_dll in d3d11 d3d10 d3d10core d3d10_1 d3d9 ; do | ||||
|             try_copy_file "${WINEDIR}/lib/wine/${wine_build_dll}.dll" "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|             try_copy_file "${WINEDIR}/lib64/wine/${wine_build_dll}.dll" "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|         done | ||||
|         try_copy_file "${WINEDIR}"/lib/wine/fakedlls/dxgi.dll "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|         try_copy_file "${WINEDIR}"/lib64/wine/fakedlls/dxgi.dll "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|         var_winedlloverride_update "dxgi=b;d3d12=" | ||||
|         echo "Use OpenGL" | ||||
|     elif [ "${PW_VULKAN_USE}" = "dxvk" ]; then | ||||
|         for wine_dxvk_dll in d3d11 d3d10 d3d10core d3d10_1 d3d9 dxgi ; do | ||||
|             try_copy_file "${PW_VULKAN_DLL}/dxvk-${PW_DXVK_VER}/x32/${wine_dxvk_dll}.dll" "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|             try_copy_file "${PW_VULKAN_DLL}/dxvk-${PW_DXVK_VER}/x64/${wine_dxvk_dll}.dll" "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|             [ "$?" == 0 ] && var_winedlloverride_update "${wine_dxvk_dll}=n" | ||||
|         done | ||||
|         #var_winedlloverride_update "d3d12=" | ||||
|         echo "Use DXVK version ${PW_DXVK_VER} (DX9-DX11 to Vulkan)" | ||||
|     else  | ||||
|         for wine_vkd3d_dll in d3d12 ; do | ||||
|             try_copy_file "${PW_VULKAN_DLL}/vkd3d-proton-${PW_VKD3D_VER}/x86/${wine_vkd3d_dll}.dll" "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|             try_copy_file "${PW_VULKAN_DLL}/vkd3d-proton-${PW_VKD3D_VER}/x64/${wine_vkd3d_dll}.dll" "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|             [ "$?" == 0 ] && var_winedlloverride_update "${wine_vkd3d_dll}=n" | ||||
|         done | ||||
|         if [ ! -z "${PW_DXGI_FROM_DXVK}" ] && [ "${PW_DXGI_FROM_DXVK}" != 0 ] ; then | ||||
|               | ||||
|             for wine_dxvk_dll in d3d11 d3d10 d3d10core d3d10_1 d3d9 dxgi ; do | ||||
|                 try_copy_file "${PW_VULKAN_DLL}/dxvk-${PW_DXVK_VER}/x32/${wine_dxvk_dll}.dll" "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|                 try_copy_file "${PW_VULKAN_DLL}/dxvk-${PW_DXVK_VER}/x64/${wine_dxvk_dll}.dll" "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|                 var_winedlloverride_update "${wine_dxvk_dll}=n" | ||||
|             done | ||||
|         else | ||||
|             try_copy_file "${WINEDIR}/lib/wine/fakedlls/dxgi.dll" "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|             try_copy_file "${WINEDIR}/lib64/wine/fakedlls/dxgi.dll" "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|             var_winedlloverride_update "dxgi=b" | ||||
|             for wine_build_dll in d3d11 d3d10 d3d10core d3d10_1 d3d9 ; do | ||||
|                 try_copy_file "${WINEDIR}/lib/wine/${wine_build_dll}.dll" "${WINEPREFIX}/drive_c/windows/syswow64/" | ||||
|                 try_copy_file "${WINEDIR}/lib64/wine/${wine_build_dll}.dll" "${WINEPREFIX}/drive_c/windows/system32/" | ||||
|             done | ||||
|         fi | ||||
|         export PW_WINDOWS_VER="10" | ||||
|         echo "Use VKD3D-PROTON version ${PW_VKD3D_VER} (DX12 to vulkan)" | ||||
|     fi | ||||
|     } | ||||
| PW_SCRIPTS_UPDATE () { | ||||
|     if [ ! -f "${PORT_WINE_TMP_PATH}/scripts_ver" ] ; then | ||||
|         echo "1000" > "${PORT_WINE_TMP_PATH}/scripts_ver" | ||||
| @@ -651,7 +585,6 @@ PW_SCRIPTS_UPDATE () { | ||||
|     echo `curl -s --list-only "${PW_FTP_URL}/current_version/scripts_ver"` > "${PORT_WINE_TMP_PATH}/scripts_cur_ver"    | ||||
|     if [ "$?" == "0" ] ; then | ||||
|         read scripts_current_ver < "${PORT_WINE_TMP_PATH}/scripts_cur_ver" | ||||
|         read scripts_install_ver < "${PORT_WINE_TMP_PATH}/scripts_ver" | ||||
|         try_remove_file "${PORT_WINE_TMP_PATH}/scripts_cur_ver" | ||||
|         if [ ! -z "${scripts_current_ver}" ] && [ "${scripts_current_ver}" -gt "${scripts_install_ver}" ] ; then	 | ||||
|             echo "######################################################" | ||||
| @@ -661,7 +594,11 @@ PW_SCRIPTS_UPDATE () { | ||||
|             if [ "$?" == "0" ] ; then | ||||
|                 try_remove_file "${PORT_WINE_TMP_PATH}/scripts.tar.xz" | ||||
|                 echo "${scripts_current_ver}" > "${PORT_WINE_TMP_PATH}/scripts_ver" | ||||
|                 `zenity --info --title "Info..." --text "${loc_scripts_update}" --no-wrap ` > /dev/null 2>&1   | ||||
|                 yad --title="Changelog" --borders=10 \ | ||||
|                 --text="Скрипты были успешно обновлены.\nДля продолжения запуска порта нажмите ОК." \ | ||||
|                 --text-align=center --text-info --show-uri --wrap --center --width=1200 --height=550 \ | ||||
|                 --filename="${PORT_WINE_PATH}/data/changelog" | ||||
|                 [ "$?" == 0 ] && /bin/bash -c ${pw_full_command_line[*]} &  | ||||
|                 exit 0 | ||||
|             fi | ||||
|         fi | ||||
| @@ -675,28 +612,158 @@ PW_RUN () { | ||||
|     else  | ||||
|         cd "${WINEPREFIX}/drive_c" | ||||
|     fi | ||||
|     export RUN_MANGOHUD="" | ||||
|     [ "${PW_MANGOHUD}" == "1" ] && export RUN_MANGOHUD=mangohud | ||||
|     print_var "WINEDIR" "WINEARCH" "WINEPREFIX" "WINEDLLOVERRIDES" "PATH_TO_GAME"     | ||||
|     if [ "${PW_LOG}" == 1 ] | ||||
|     then export PW_LOG_TO_FILE="${PORT_WINE_PATH}/${portname}.log" | ||||
|     else export PW_LOG_TO_FILE="/dev/null" | ||||
|     fi | ||||
|     pw_mangohud_check | ||||
|     print_var "WINEDIR" "WINEARCH" "WINEPREFIX" "WINEDLLOVERRIDES" "PATH_TO_GAME" "PW_VULKAN_USE" "VKD3D_CONFIG" | ||||
|     if [ "${PW_LOG}" == 1 ] ; then | ||||
|         export PW_TERM="" | ||||
|         export PW_LOG_TO_FILE="${PORT_WINE_PATH}/${portname}.log" | ||||
|         if [ ! -z "${PW_GAMEMODERUN}" ] && [ "${PW_GAMEMODERUN}" != 0 ] ; then | ||||
|         if [ ! -z ${optirun_on} ]; then | ||||
|             echo "Full command line: ${optirun_on}  $PW_TERM "${PW_RUNTIME}" gamemoderun ${RUN_MANGOHUD} "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}" ${PW_LOG_TO_FILE} | ||||
|             ${optirun_on} $PW_TERM "${PW_RUNTIME}" gamemoderun ${RUN_MANGOHUD} "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]} &>>"${PW_LOG_TO_FILE}" | ||||
|             echo "Full command line:  $PW_TERM ${optirun_on} "${PW_RUNTIME}" gamemoderun ${RUN_MANGOHUD} "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}" "&>>${PW_LOG_TO_FILE}" | ||||
|             $PW_TERM ${optirun_on} "${PW_RUNTIME}" gamemoderun ${RUN_MANGOHUD} "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]} &>>"${PW_LOG_TO_FILE}" | ||||
|         else  | ||||
|             echo "Full command line: $PW_TERM "${PW_RUNTIME}" gamemoderun ${RUN_MANGOHUD} "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}" ${PW_LOG_TO_FILE} | ||||
|             $PW_TERM "${PW_RUNTIME}" gamemoderun ${RUN_MANGOHUD} "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]} &>>"${PW_LOG_TO_FILE}" | ||||
|             echo "Full command line: $PW_TERM ${optirun_on} "${PW_RUNTIME}" ${RUN_MANGOHUD} "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}" "&>>${PW_LOG_TO_FILE}" | ||||
|             $PW_TERM ${optirun_on} "${PW_RUNTIME}" ${RUN_MANGOHUD} "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]} &>>"${PW_LOG_TO_FILE}" | ||||
|         fi | ||||
|     else | ||||
|         if [ ! -z ${optirun_on} ]; then | ||||
|             echo "Full command line: ${optirun_on}  $PW_TERM "${PW_RUNTIME}" ${RUN_MANGOHUD} "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}" ${PW_LOG_TO_FILE} | ||||
|             ${optirun_on} $PW_TERM "${PW_RUNTIME}" ${RUN_MANGOHUD} "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]} &>>"${PW_LOG_TO_FILE}" | ||||
|         [ "${PW_USE_TERMINAL}" != "1" ] && export PW_TERM="" | ||||
|         if [ ! -z "${PW_GAMEMODERUN}" ] && [ "${PW_GAMEMODERUN}" != 0 ] ; then | ||||
|             echo "Full command line: $PW_TERM ${optirun_on} "${PW_RUNTIME}" gamemoderun ${RUN_MANGOHUD} "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}"  | ||||
|             $PW_TERM ${optirun_on} "${PW_RUNTIME}" gamemoderun ${RUN_MANGOHUD} "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]} | ||||
|         else  | ||||
|             echo "Full command line: $PW_TERM "${PW_RUNTIME}" ${RUN_MANGOHUD} "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}" ${PW_LOG_TO_FILE} | ||||
|             $PW_TERM "${PW_RUNTIME}" ${RUN_MANGOHUD} "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]} &>>"${PW_LOG_TO_FILE}" | ||||
|             echo "Full command line: $PW_TERM ${optirun_on} "${PW_RUNTIME}" ${RUN_MANGOHUD} "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}" | ||||
|             $PW_TERM ${optirun_on} "${PW_RUNTIME}" ${RUN_MANGOHUD} "${WINELOADER}" "$@" ${LAUNCH_PARAMETERS[*]}  | ||||
|         fi | ||||
|     fi | ||||
| } | ||||
|  | ||||
| cd "$(dirname "`readlink -f "$0"`")" && export PORT_SCRIPTS_PATH="$(pwd)" | ||||
| cd "${PORT_SCRIPTS_PATH}/../../" && export PORT_WINE_PATH="$(pwd)" | ||||
| export PORT_WINE_TMP_PATH="${PORT_WINE_PATH}/data/tmp" | ||||
| read "portname" < "${PORT_WINE_TMP_PATH}/portname" && export portname | ||||
| cd "${PORT_SCRIPTS_PATH}"  | ||||
| . "${PORT_SCRIPTS_PATH}/var"   | ||||
| create_new_dir "${PORT_WINE_TMP_PATH}" | ||||
| create_new_dir "${HOME}/.PortWINE/tmp" | ||||
| try_remove_dir "${PORT_SCRIPTS_PATH}/vars" | ||||
|  | ||||
| if [ ! -e "${PORT_WINE_TMP_PATH}/${portname}_loc" ]; then | ||||
| 	SET_LANG=`zenity --title  "Install $portname" --text "Select the language" --list --radiolist \ | ||||
| 	--column="Set:" --column "Language:" \ | ||||
| 	TRUE "RUS" \ | ||||
| 	FALSE "ENG" ` | ||||
| 	echo "${SET_LANG}" > "${PORT_WINE_TMP_PATH}/${portname}_loc" | ||||
| fi | ||||
|  | ||||
| . "${PORT_SCRIPTS_PATH}"/lang | ||||
|  | ||||
| if [ ! -e "${PORT_WINE_TMP_PATH}/${portname}_ver" ]; then | ||||
| 	echo "10" > "${PORT_WINE_TMP_PATH}/${portname}_ver" | ||||
| fi | ||||
|  | ||||
| var_winedlloverride_update "winemenubuilder.exe=" | ||||
| export url_mono="https://github.com/madewokherd/wine-mono/releases/download/wine-mono-${mono_ver}/wine-mono-${mono_ver}-x86.tar.xz" | ||||
| export url_gecko_x86="https://dl.winehq.org/wine/wine-gecko/${gecko_ver}/wine-gecko-${gecko_ver}-x86.tar.xz" | ||||
| export url_gecko_x86_64="https://dl.winehq.org/wine/wine-gecko/${gecko_ver}/wine-gecko-${gecko_ver}-x86_64.tar.xz" | ||||
| export urlg="https://portwine-linux.ru/portwine-faq/" | ||||
| export PW_FTP_URL="https://portwine-linux.ru/ftp" | ||||
| export WINEDIR="${PORT_WINE_PATH}"/data/dist | ||||
| export WINELIB="${HOME}/.PortWINE/libs${pw_libs_ver}" | ||||
| export WINEPREFIX="${PORT_WINE_PATH}/data/pfx" | ||||
| export PW_COMPAT_MEDIA_PATH="${PORT_WINE_TMP_PATH}" | ||||
| export PW_RUNTIME="$WINELIB/run.sh" | ||||
| export PW_GUI_ICON_PATH="${PORT_WINE_PATH}/data/img/gui" | ||||
| export PW_VULKAN_DLL="${HOME}/.PortWINE/vulkan" | ||||
| export PW_DXVK_VER="${PW_DEF_DXVK_VER}" | ||||
| export PW_VKD3D_VER="${PW_DEF_VKD3D_VER}" | ||||
| export install_ver=`cat "${PORT_WINE_TMP_PATH}/${portname}_ver" | head -n 1` | ||||
| export scripts_install_ver=`cat "${PORT_WINE_TMP_PATH}/scripts_ver" | head -n 1` | ||||
|  | ||||
| if [ -z "${INSTALLING_PORT}" ] ; then | ||||
|     if [ ! -e "${WINELIB}/run.sh" ] || [ ! -e "${WINELIB}/usr/bin/yad" ] || [ ! -e "${WINELIB}/amd64/usr/bin/vkcube" ] || [ ! -e "${WINELIB}/amd64/usr/bin/xterm" ] || [ -e "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" ] ; then  | ||||
|         print_info "Download and install libraries..." | ||||
|         if try_download "https://github.com/Castro-Fidel/PortWINE/releases/download/libs${pw_libs_ver}/libs${pw_libs_ver}.tar.xz" "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" ; then | ||||
|             if unpack_tar_xz "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" "${HOME}/.PortWINE/" ; then  | ||||
|                 try_remove_file "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" | ||||
|             else    | ||||
|                 try_remove_dir "${HOME}/.PortWINE/libs${pw_libs_ver}" | ||||
|                 try_remove_file "${HOME}/.PortWINE/tmp/libs${pw_libs_ver}.tar.xz" | ||||
|                 `zenity --error --title "Error..." --text "Failed to download runtime libraries.\nCheck internet connection and restart PortProton" --no-wrap ` > /dev/null 2>&1 | ||||
|                 exit 0 | ||||
|             fi | ||||
|         else | ||||
|             `zenity --error --title "Error..." --text "Failed to download runtime libraries.\nCheck internet connection and restart PortProton" --no-wrap ` > /dev/null 2>&1 | ||||
|             exit 1 | ||||
|         fi | ||||
|     fi | ||||
|     if [ -e "${WINELIB}/run.sh" ]; then  | ||||
|         echo "######################################################" | ||||
|         echo "Runtime libraries is enabled" | ||||
|         try_remove_dir "${WINELIB}/pinned_libs_32" | ||||
|         try_remove_dir "${WINELIB}/pinned_libs_64" | ||||
|         export pw_yad="${WINELIB}/usr/bin/yad" | ||||
|         export pw_zstd="${WINELIB}/usr/bin/zstd" | ||||
|         if [ -x "`which xterm 2>/dev/null`" ]; then | ||||
|             export SYS_XTERM=`which xterm` | ||||
|             export PW_XTERM="${SYS_XTERM} -geometry 159x37 -e"  | ||||
|         else | ||||
|             export PW_XTERM="${WINELIB}/amd64/usr/bin/xterm -geometry 159x37 -e"         | ||||
|         fi | ||||
|     else | ||||
|         echo "######################################################" | ||||
|         echo "Runtime libraries is disabled" | ||||
|     fi | ||||
|     if [ ! -d "${HOME}/.PortWINE/mono/wine-mono-${mono_ver}" ] ; then  | ||||
|         echo "######################################################" | ||||
|         print_info "Download and install wine mono..." | ||||
|         if try_download "${url_mono}" "${HOME}/.PortWINE/tmp/wine-mono-${mono_ver}-x86.tar.xz" ; then | ||||
|             create_new_dir "${HOME}/.PortWINE/mono" | ||||
|             if ! unpack_tar_xz "${HOME}/.PortWINE/tmp/wine-mono-${mono_ver}-x86.tar.xz" "${HOME}/.PortWINE/mono/" | ||||
|             then try_remove_dir "${HOME}/.PortWINE/mono/wine-mono-${mono_ver}-x86" | ||||
|             fi | ||||
|             try_remove_file "${HOME}/.PortWINE/tmp/wine-mono-${mono_ver}-x86.tar.xz"  | ||||
|         fi | ||||
|     fi | ||||
|     if [ ! -d "${HOME}/.PortWINE/gecko/wine-gecko-${gecko_ver}-x86" ] ; then  | ||||
|         echo "######################################################" | ||||
|         echo "Download and install wine gecko x86..." | ||||
|         if try_download "${url_gecko_x86}" "${HOME}/.PortWINE/tmp/wine-gecko-${gecko_ver}-x86.tar.xz" ; then | ||||
|             create_new_dir "${HOME}/.PortWINE/gecko" | ||||
|             if ! unpack_tar_xz "${HOME}/.PortWINE/tmp/wine-gecko-${gecko_ver}-x86.tar.xz" "${HOME}/.PortWINE/gecko/" | ||||
|             then try_remove_dir "${HOME}/.PortWINE/gecko/wine-gecko-${gecko_ver}-x86" | ||||
|             fi | ||||
|             try_remove_file "${HOME}/.PortWINE/tmp/wine-gecko-${gecko_ver}-x86.tar.xz" | ||||
|         fi | ||||
|     fi | ||||
|         if [ ! -d "${HOME}/.PortWINE/gecko/wine-gecko-${gecko_ver}-x86_64" ] ; then  | ||||
|         echo "######################################################" | ||||
|         echo "Download and install wine gecko x86_64..." | ||||
|         if try_download "${url_gecko_x86_64}" "${HOME}/.PortWINE/tmp/wine-gecko-${gecko_ver}-x86_64.tar.xz" ; then | ||||
|             create_new_dir "${HOME}/.PortWINE/gecko" | ||||
|             if ! unpack_tar_xz "${HOME}/.PortWINE/tmp/wine-gecko-${gecko_ver}-x86_64.tar.xz" "${HOME}/.PortWINE/gecko/" | ||||
|             then try_remove_dir "${HOME}/.PortWINE/gecko/wine-gecko-${gecko_ver}-x86_64" | ||||
|             fi | ||||
|             try_remove_file "${HOME}/.PortWINE/tmp/wine-gecko-${gecko_ver}-x86_64.tar.xz" | ||||
|         fi | ||||
|     fi | ||||
|     create_new_dir "${WINEDIR}/share/wine/" | ||||
|     try_force_link_dir "${HOME}/.PortWINE/gecko" "${WINEDIR}"/share/wine/       | ||||
|     try_force_link_dir "${HOME}/.PortWINE/mono" "${WINEDIR}"/share/wine/  | ||||
|  | ||||
|     if [ ! -z "${portwine_exe}" ]; then | ||||
|         export PORTWINE_DB=`echo "${portwine_exe}" | awk -F '/' 'NF>1{print $NF}' | sed s/".exe"/""/gi` | ||||
|         export PATH_TO_GAME="$( cd "$( dirname "${portwine_exe}" )" >/dev/null 2>&1 && pwd )" | ||||
|         export WIN_PATH_TO_GAME=`echo "C:${PATH_TO_GAME}" | sed "s%$WINEPREFIX%%g" | sed "s/drive_c//g" | sed 's#/#\\\#g'`            | ||||
|     fi | ||||
|     if [ ! -z "${PORTWINE_DB}" ]; then | ||||
|         PORTWINE_DB_FILE=`grep -ilw "#${PORTWINE_DB}" "${PORT_SCRIPTS_PATH}/portwine_db"/* | sed s/".exe"/""/gi` | ||||
|         if [ ! -z "${PORTWINE_DB_FILE}" ]; then | ||||
|             . "${PORTWINE_DB_FILE}" | ||||
|             echo "Use ${PORTWINE_DB_FILE} db file." | ||||
|         else | ||||
|             . "${PORT_SCRIPTS_PATH}/portwine_db/default" | ||||
|             echo "Use default db file." | ||||
|         fi | ||||
|     fi | ||||
| fi | ||||
|  | ||||
| [ -z "${INSTALLING_PORT}" ] && PW_UPDATE | ||||
|   | ||||
| @@ -16,22 +16,10 @@ try_remove_file "${PORT_WINE_PATH}/restart.desktop" | ||||
|  | ||||
| try_remove_dir "${PORT_WINE_PATH}/data/pfx/dosdevices"  | ||||
| try_remove_dir "${PORT_WINE_PATH}/Settings" | ||||
| #try_remove_dir "$HOME/.PortWINE" | ||||
|  | ||||
| create_new_dir "/home/${USER}/.local/share/applications" | ||||
|  | ||||
| if ! [ "${portname}" = "PortProton" ]; then | ||||
| 	name_desktop="${gamename}"  | ||||
| 	echo "[Desktop Entry]"	 				  > "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
| 	echo "Name=${name_desktop}" 				 >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
| 	echo "Exec=env "${PORT_SCRIPTS_PATH}/start.sh""	 >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
| 	echo "Type=Application" 				 >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
| 	echo "Categories=Game"	    				 >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
| 	echo "StartupNotify=true" 	    			 >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
| 	echo "Path="${PORT_SCRIPTS_PATH}/""		 >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
| 	echo "Icon="${PORT_WINE_PATH}/data/img/w.png""   	 >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
| 	chmod u+x "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
| 	cp -f "${PORT_WINE_PATH}/${name_desktop}.desktop" /home/${USER}/.local/share/applications/  | ||||
| else | ||||
| name_desktop="PortProton"  | ||||
| echo "[Desktop Entry]"	 				  > "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
| echo "Name=${name_desktop}" 				 >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
| @@ -44,7 +32,9 @@ else | ||||
| echo "Icon="${PORT_WINE_PATH}/data/img/w.png""   	 >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
| chmod u+x "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
| cp -f "${PORT_WINE_PATH}/${name_desktop}.desktop" /home/${USER}/.local/share/applications/ | ||||
| fi | ||||
|  | ||||
| update-desktop-database -q "${HOME}/.local/share/applications" | ||||
| xdg-mime default PortProton.desktop "application/x-ms-dos-executable;application/x-wine-extension-msp;application/x-msi;application/x-msdos-program" | ||||
|  | ||||
| name_desktop="readme"  | ||||
| echo "[Desktop Entry]"					 > "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
| @@ -69,7 +59,7 @@ do | ||||
| done | ||||
| chmod u+x "${PORT_SCRIPTS_PATH}/"* | ||||
|  | ||||
| try_force_link_dir "${PORT_WINE_PATH}/data/pfx/drive_c/" "${PORT_WINE_PATH}/drive_c" | ||||
| try_force_link_dir "${PORT_WINE_PATH}/data/pfx/drive_c/" "${PORT_WINE_PATH}/" | ||||
| if [ -d "${PORT_WINE_PATH}/data/pfx/drive_c/users/Public" ] && [ ! -L "${PORT_WINE_PATH}/data/pfx/drive_c/users/Public" ]; then | ||||
| 	cp -fr "${PORT_WINE_PATH}/data/pfx/drive_c/users/Public"/* "${PORT_WINE_PATH}/data/pfx/drive_c/users/steamuser/" | ||||
| 	rm -fr "${PORT_WINE_PATH}/data/pfx/drive_c/users/Public" | ||||
| @@ -77,16 +67,7 @@ elif [ -L "${PORT_WINE_PATH}/data/pfx/drive_c/users/Public" ]; then | ||||
| 	rm -fr "${PORT_WINE_PATH}/data/pfx/drive_c/users/Public" | ||||
| fi | ||||
| ln -s "${PORT_WINE_PATH}/data/pfx/drive_c/users/steamuser" "${PORT_WINE_PATH}/data/pfx/drive_c/users/Public" | ||||
|  | ||||
| if [ ! -d "${PORT_WINE_PATH}/data/pfx/drive_c/users/${USER}" ]; then | ||||
| 	ln -s "${PORT_WINE_PATH}/data/pfx/drive_c/users/steamuser" "${PORT_WINE_PATH}/data/pfx/drive_c/users/${USER}" | ||||
| fi | ||||
|  | ||||
| if [ -e "${PORT_WINE_PATH}/data/pfx/system.reg" ] || [ -e "${PORT_WINE_PATH}/data/pfx/user.reg" ] || [ -e "${PORT_WINE_PATH}/data/pfx/userdef.reg" ]; then | ||||
| 	sed -i "s/xuser/${USER}/g" "${PORT_WINE_PATH}/data/pfx/"*.reg | ||||
| 	sed -i "s/vagrant/${USER}/g" "${PORT_WINE_PATH}/data/pfx/"*.reg | ||||
| fi | ||||
|  | ||||
| pw_clear_pfx | ||||
| if [ "${s_install}" = "1" ]; then | ||||
| 	echo "Installation completed successfully." | ||||
| else | ||||
|   | ||||
| @@ -1,5 +1,6 @@ | ||||
| #!/bin/bash | ||||
| # Author: PortWINE-Linux.ru | ||||
| export pw_full_command_line=("$0" $*) | ||||
| if [ -f "$1" ]; then | ||||
|     export portwine_exe="$(readlink -f "$1")" | ||||
| fi | ||||
| @@ -22,10 +23,8 @@ PORTWINE_LAUNCH () { | ||||
|         PW_RUN explorer "$portwine_exe"  | ||||
|     elif [ ! -z "${portwine_exe}" ]; then | ||||
|         PW_RUN "$portwine_exe" | ||||
|     elif [ -z "${gamestart}" ]; then   | ||||
|         PW_RUN explorer | ||||
|     else  | ||||
|         PW_RUN "${gamestart}" | ||||
|         PW_RUN explorer | ||||
|     fi | ||||
| } | ||||
| PORTWINE_CREATE_SHORTCUT () { | ||||
| @@ -41,37 +40,42 @@ PORTWINE_CREATE_SHORTCUT () { | ||||
|     if [ -x "`which wrestool 2>/dev/null`" ]; then | ||||
|         wrestool -x --output="${PORTPROTON_PATH}/" -t14 "${PORTPROTON_EXE}" | ||||
|         cp "$(ls -S -1 "${PORTPROTON_EXE}"*".ico"  | head -n 1)" "${PORTPROTON_EXE}.ico" | ||||
|         cp -f "${PORTPROTON_EXE}.ico" "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.ico" | ||||
|         icotool -x --output="${PORTPROTON_PATH}/" "${PORTPROTON_EXE}.ico" | ||||
|         cp "$(ls -S -1 "${PORTPROTON_EXE}"*".png"  | head -n 1)" "${PORTPROTON_EXE}.png" | ||||
|         cp -f "${PORTPROTON_EXE}.png" "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png" | ||||
|         rm -f "${PORTPROTON_PATH}/"*.ico | ||||
|         rm -f "${PORTPROTON_PATH}/"*.png | ||||
|     fi | ||||
|     if [ $? -eq 1 ] ; then exit 1 ; fi | ||||
|     export PW_VULKAN_TO_DB=`cat "${PORT_WINE_TMP_PATH}/pw_vulkan"` | ||||
|     if [ ! -z "${PORTWINE_DB}" ]; then | ||||
|         PORTWINE_DB_FILE=`grep -il "\#${PORTWINE_DB}.exe" "${PORT_SCRIPTS_PATH}/portwine_db"/*` | ||||
|         if [ ! -z "${PORTWINE_DB_FILE}" ] && [ -z "${PW_VULKAN_USE}" ]; then | ||||
|             echo "export PW_VULKAN_USE=${PW_VULKAN_TO_DB}" >> "${PORTWINE_DB_FILE}" | ||||
|         if [ ! -z "${PORTWINE_DB_FILE}" ] && [ -z "`cat "${PORTWINE_DB_FILE}"  | grep "export PW_VULKAN_USE=" | grep -v "#"`" ] ; then | ||||
|             echo "export PW_VULKAN_USE=${PW_VULKAN_USE}" >> "${PORTWINE_DB_FILE}" | ||||
|         elif [ -z "${PORTWINE_DB_FILE}" ]; then | ||||
|             echo "#!/bin/bash | ||||
|     #Author: "${USER}" | ||||
|     #"${PORTWINE_DB}.exe"  | ||||
|     #Rating=1-5 | ||||
|     ################################################ | ||||
|     export PW_VULKAN_USE=${PW_VULKAN_TO_DB}" > "${PORT_SCRIPTS_PATH}/portwine_db/$PORTWINE_DB" | ||||
|             echo "#!/bin/bash"  > "${PORT_SCRIPTS_PATH}/portwine_db/$PORTWINE_DB" | ||||
|             echo "#Author: "${USER}"" >> "${PORT_SCRIPTS_PATH}/portwine_db/$PORTWINE_DB" | ||||
|             echo "#"${PORTWINE_DB}.exe"" >> "${PORT_SCRIPTS_PATH}/portwine_db/$PORTWINE_DB" | ||||
|             echo "#Rating=1-5" >> "${PORT_SCRIPTS_PATH}/portwine_db/$PORTWINE_DB" | ||||
|             echo "########################################################" >> "${PORT_SCRIPTS_PATH}/portwine_db/$PORTWINE_DB" | ||||
|             echo "export PW_VULKAN_USE=${PW_VULKAN_USE}" >> "${PORT_SCRIPTS_PATH}/portwine_db/$PORTWINE_DB" | ||||
|             cat "${PORT_SCRIPTS_PATH}/portwine_db/default" | grep "##" >> "${PORT_SCRIPTS_PATH}/portwine_db/$PORTWINE_DB" | ||||
|         fi | ||||
|     fi | ||||
| name_desktop="${PORTPROTON_NAME}"  | ||||
|     echo "[Desktop Entry]" > "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
|     echo "Name=${PORTPROTON_NAME}" >> "${PORT_WINE_PATH}/${name_desktop}.desktop"  | ||||
|     echo "Exec=env PW_GUI_DISABLED_CS=1 "\"${PORT_SCRIPTS_PATH}/start.sh\" \"${PORTPROTON_EXE}\" "" \ | ||||
|     if [ -z "${PW_CHECK_AUTOINSTAL}" ] | ||||
|     then echo "Exec=env PW_GUI_DISABLED_CS=1 "\"${PORT_SCRIPTS_PATH}/start.sh\" \"${PORTPROTON_EXE}\" "" \ | ||||
|     >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
|     else echo "Exec=env "\"${PORT_SCRIPTS_PATH}/start.sh\" \"${PORTPROTON_EXE}\" "" \ | ||||
|     >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
|     fi | ||||
|     echo "Type=Application" >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
|     echo "Categories=Game" >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
|     echo "StartupNotify=true" >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
|     echo "Path="${PORT_SCRIPTS_PATH}/"" >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
|     echo "Icon="${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.ico"" >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
|     echo "Icon="${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png"" >> "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
|     chmod u+x "${PORT_WINE_PATH}/${name_desktop}.desktop" | ||||
|     `zenity --question --title "${inst_set}." --text "${ss_done}" --no-wrap ` > /dev/null 2>&1   | ||||
|     `zenity --question --title "${inst_set}." --text "${ss_done}" --no-wrap ` &> /dev/null   | ||||
|     if [ $? -eq "0" ]; then | ||||
|         cp -f "${PORT_WINE_PATH}/${name_desktop}.desktop" /home/${USER}/.local/share/applications/  | ||||
|     fi | ||||
| @@ -97,7 +101,10 @@ PORTWINE_DEBUG () { | ||||
|     echo "GLIBC version:" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     echo `ldd --version | grep -m1 ldd | awk '{print $NF}'` >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     echo "--------------------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     echo "var_pw_vulkan = ${var_pw_vulkan}" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     if [ "${PW_VULKAN_USE}" = "0" ]; then echo "PW_VULKAN_USE=${PW_VULKAN_USE} - DX9-11 to OpenGL" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     elif [ "${PW_VULKAN_USE}" = "dxvk" ]; then  echo "PW_VULKAN_USE=${PW_VULKAN_USE}_v."${PW_DXVK_VER}"" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     else echo "PW_VULKAN_USE=${PW_VULKAN_USE}_v."${PW_VKD3D_VER}"" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     fi | ||||
|     echo "------------------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     echo "Date and time of start debug for ${portname}" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     date >> "${PORT_WINE_PATH}/${portname}.log" | ||||
| @@ -132,23 +139,37 @@ PORTWINE_DEBUG () { | ||||
|     else | ||||
|         echo "Vkcube test completed with error" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     fi | ||||
|     echo "---------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     if [ ! -x "`which gamemoderun 2>/dev/null`" ] | ||||
|     then | ||||
|         echo "---------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|         echo "!!!gamemod not found!!!"  >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     fi | ||||
|     echo "--------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     echo "Version WINE in the Port" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     "$WINELOADER" --version 2>&1 | tee -a "${PORT_WINE_PATH}/${portname}.log" | ||||
|     echo "-------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     echo "log WINE:" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     echo "winetricks.log:" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     cat "${WINEPREFIX}/winetricks.log" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     echo "------------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     if [ ! -z "${PORTWINE_DB_FILE}" ]; then | ||||
|         echo "Use ${PORTWINE_DB_FILE} db file:" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|         cat "${PORTWINE_DB_FILE}" | sed '/##/d' | awk '{print $1 " " $2}' >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     else | ||||
|         echo "Use ${PORT_SCRIPTS_PATH}/portwine_db/default db file:" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|         cat "${PORT_SCRIPTS_PATH}/portwine_db/default" | sed '/##/d' | awk '{print $1 " " $2}' >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     fi | ||||
|     echo "-----------------------------------------" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|     echo "Log WINE:" >> "${PORT_WINE_PATH}/${portname}.log" | ||||
|  | ||||
|     export DXVK_HUD="full" | ||||
|      | ||||
|     PORTWINE_LAUNCH & zenity --info --title "DEBUG" --text "${port_debug}" --no-wrap && KILL_PORTWINE | ||||
|     PORTWINE_LAUNCH &  | ||||
|     sleep 1 && zenity --info --title "DEBUG" --text "${port_debug}" --no-wrap &> /dev/null && KILL_PORTWINE | ||||
|     deb_text=$(cat "${PORT_WINE_PATH}/${portname}.log"  | awk '! a[$0]++')  | ||||
|     echo "$deb_text" > "${PORT_WINE_PATH}/${portname}.log" | ||||
|     xdg-open "${PORT_WINE_PATH}/${portname}.log" | ||||
|     yad --title="${portname}.log" --borders=10 --no-buttons --text-align=center \ | ||||
|     --text-info --show-uri --wrap --center --width=1200 --height=550 \ | ||||
|     --filename="${PORT_WINE_PATH}/${portname}.log" | ||||
| } | ||||
| PW_WINECFG () { | ||||
|     START_PORTWINE | ||||
| @@ -176,6 +197,12 @@ PW_WINETRICKS () { | ||||
| PW_EDIT_DB () { | ||||
|     xdg-open "${PORTWINE_DB_FILE}" | ||||
| } | ||||
| PW_AUTO_INSTALL_FROM_DB () { | ||||
|     . "$PORT_SCRIPTS_PATH/autoinstall" | ||||
|     $PW_YAD_SET | ||||
| } | ||||
|  | ||||
|  | ||||
| if [ ! -z "${portwine_exe}" ]; then | ||||
|     if [ -z "${PW_GUI_DISABLED_CS}" ] || [ "${PW_GUI_DISABLED_CS}" = 0 ] ; then | ||||
|         if [ ! -z "${PORTWINE_DB_FILE}" ] && [ ! -z "${PW_VULKAN_USE}" ]; then | ||||
| @@ -184,6 +211,7 @@ if [ ! -z "${portwine_exe}" ]; then | ||||
|             fi | ||||
|             OUTPUT_START=$("${pw_yad}" --text-align=center --text "$PW_COMMENT_DB" --wrap-width=150 --borders=15 --form --center  \ | ||||
|             --title "$portname"  --image "$PW_GUI_ICON_PATH/port_proton.png" --separator=";" \ | ||||
|             --window-icon="$PW_GUI_ICON_PATH/port_proton.png" \ | ||||
|             --button='EDIT  DB'!!"${loc_edit_db} ${PORTWINE_DB}":118 \ | ||||
|             --button='CREATE SHORTCUT'!!"${loc_creat_shortcut}":100 \ | ||||
|             --button='DEBUG'!!"${loc_debug}":102 \ | ||||
| @@ -195,62 +223,109 @@ if [ ! -z "${portwine_exe}" ]; then | ||||
|             fi | ||||
|             OUTPUT_START=$("${pw_yad}" --text-align=center --text "$PW_COMMENT_DB" --wrap-width=150 --borders=15 --form --center  \ | ||||
|             --title "$portname"  --image "$PW_GUI_ICON_PATH/port_proton.png" --separator=";" \ | ||||
|             --field="WINE:CB" "DXVK ${PW_WINE_VER_DXVK}"!"VKD3D ${PW_WINE_VER_VKD3D}"!"OPENGL ${PW_WINE_VER_DXVK}" \ | ||||
|             --window-icon="$PW_GUI_ICON_PATH/port_proton.png" \ | ||||
|             --field="Run with :CB" "DXVK (DX 9-11 to Vulkan)"\!"VKD3D (DX 12 to Vulkan)"\!"OPENGL " \ | ||||
|             --button='EDIT  DB'!!"${loc_edit_db} ${PORTWINE_DB}":118 \ | ||||
|             --button='CREATE SHORTCUT'!!"${loc_creat_shortcut}":100 \ | ||||
|             --button='DEBUG'!!"${loc_debug}":102 \ | ||||
|             --button='LAUNCH'!!"${loc_launch}":106 )   | ||||
|             PW_YAD_SET="$?" | ||||
|             export VULKAN_MOD=`echo "$OUTPUT_START" | awk '{print $1}'` | ||||
|         else | ||||
|             OUTPUT_START=$("${pw_yad}" --wrap-width=250 --borders=15 --form --center  \ | ||||
|             --title "$portname"  --image "$PW_GUI_ICON_PATH/port_proton.png" --separator=";" \ | ||||
|             --field="WINE:CB" "DXVK ${PW_WINE_VER_DXVK}"!"VKD3D ${PW_WINE_VER_VKD3D}"!"OPENGL ${PW_WINE_VER_DXVK}" \ | ||||
|             --window-icon="$PW_GUI_ICON_PATH/port_proton.png" \ | ||||
|             --field="Run with :CB" "DXVK (DX 9-11 to Vulkan)"\!"VKD3D (DX 12 to Vulkan)"\!"OPENGL " \ | ||||
|             --button='CREATE SHORTCUT'!!"${loc_creat_shortcut}":100 \ | ||||
|             --button='DEBUG'!!"${loc_debug}":102 \ | ||||
|             --button='LAUNCH'!!"${loc_launch}":106 )   | ||||
|             PW_YAD_SET="$?" | ||||
|             export VULKAN_MOD=`echo "$OUTPUT_START" | awk '{print $1}'` | ||||
|         fi | ||||
|     elif [ ! -z "${PORTWINE_DB_FILE}" ]; then | ||||
|         PORTWINE_LAUNCH | ||||
|     else | ||||
|         OUTPUT_START=$("${pw_yad}" --wrap-width=250 --borders=15 --form --center  \ | ||||
|         --title "$portname"  --image "$PW_GUI_ICON_PATH/port_proton.png" --separator=";" \ | ||||
|         --field="WINE:CB" "DXVK ${PW_WINE_VER_DXVK}"!"VKD3D ${PW_WINE_VER_VKD3D}"!"OPENGL ${PW_WINE_VER_DXVK}" \ | ||||
|         --window-icon="$PW_GUI_ICON_PATH/port_proton.png" \ | ||||
|         --field="Run with :CB" "DXVK (DX 9-11 to Vulkan)"\!"VKD3D (DX 12 to Vulkan)"\!"OPENGL " \ | ||||
|         --button='CREATE SHORTCUT'!!"${loc_creat_shortcut}":100 \ | ||||
|         --button='DEBUG'!!"${loc_debug}":102 \ | ||||
|         --button='LAUNCH'!!"${loc_launch}":106 ) | ||||
|         PW_YAD_SET="$?" | ||||
|         export VULKAN_MOD=`echo "$OUTPUT_START" | awk '{print $1}'` | ||||
|     fi | ||||
| else | ||||
|     OUTPUT_START=$("${pw_yad}" --wrap-width=250 --borders=15 --form --center  \ | ||||
|     --title "$portname"  --image "$PW_GUI_ICON_PATH/port_proton.png" --separator=";" \ | ||||
|     --field="WINE:CB" "DXVK ${PW_WINE_VER_DXVK}"!"VKD3D ${PW_WINE_VER_VKD3D}"!"OPENGL ${PW_WINE_VER_DXVK}" \ | ||||
|     --button='DEBUG'!!"${loc_debug}":102 \ | ||||
|     --button='WINECFG'!!"${loc_winecfg}":108 \ | ||||
|     --button='WINEFILE'!!"${loc_winefile}":110 \ | ||||
|     --button='WINECMD'!!"${loc_winecmd}":112 \ | ||||
|     --button='WINEREG'!!"${loc_winereg}":114 \ | ||||
|     --button='WINETRICKS'!!"${loc_winetricks}":116 ) | ||||
|     PW_YAD_SET="$?" | ||||
|     button_click () { | ||||
|         [ ! -z "$1" ] && echo "$1" > "${PORT_WINE_TMP_PATH}/tmp_yad_form" | ||||
|         if [ ! -z `pidof -s yad` ] ; then | ||||
|             kill -s SIGUSR1 `pgrep -a yad | grep "\-\-key=${KEY} \-\-notebook" | awk '{print $1}'` | ||||
|         fi  | ||||
|     }  | ||||
|     export -f button_click | ||||
|  | ||||
|     open_changelog () { | ||||
|         yad --title="Changelog" --borders=10 --no-buttons --text-align=center \ | ||||
|         --text-info --show-uri --wrap --center --width=1200 --height=550 \ | ||||
|         --filename="${PORT_WINE_PATH}/data/changelog" | ||||
|     } | ||||
|     export -f open_changelog | ||||
|  | ||||
|     export KEY=$RANDOM | ||||
|     "${pw_yad}" --plug=$KEY --tabnum=2 --form --columns=2  --scroll \ | ||||
|     --field="   Wargaming Game Center"!"$PW_GUI_ICON_PATH/wgc.png":"BTN" '@bash -c "button_click PW_WGC"' \ | ||||
|     --field="   Battle.net Launcher"!"$PW_GUI_ICON_PATH/battle_net.png":"BTN" '@bash -c "button_click PW_BATTLE_NET"' \ | ||||
|     --field="   Epic Games Launcher"!"$PW_GUI_ICON_PATH/epicgames.png":"BTN" '@bash -c "button_click PW_EPIC"' \ | ||||
|     --field="   GoG Galaxy Launcher"!"$PW_GUI_ICON_PATH/gog.png":"BTN" '@bash -c "button_click PW_GOG"' \ | ||||
|     --field="   EVE Online Launcher"!"$PW_GUI_ICON_PATH/eve.png":"BTN" '@bash -c "button_click PW_EVE"' \ | ||||
|     --field="   Origin Launcher"!"$PW_GUI_ICON_PATH/origin.png":"BTN" '@bash -c "button_click PW_ORIGIN"' & \ | ||||
|  | ||||
|     "${pw_yad}" --plug=${KEY} --tabnum=1 --columns=3 --form --separator=";" \ | ||||
|     --image "$PW_GUI_ICON_PATH/port_proton.png" \ | ||||
|     --field=":CB" "  DXVK (DX 9-11 to Vulkan)"\!"VKD3D (DX 12 to Vulkan)"\!"OPENGL " \ | ||||
|     --field=":LBL" "" \ | ||||
|     --field='DEBUG'!!"${loc_debug}":"BTN" '@bash -c "button_click DEBUG"' \ | ||||
|     --field='WINECFG'!!"${loc_winecfg}":"BTN" '@bash -c "button_click WINECFG"' \ | ||||
|     --field="${portname}-${install_ver} (${scripts_install_ver})"!!"":"FBTN" '@bash -c "open_changelog"' \ | ||||
|     --field=":LBL" "" \ | ||||
|     --field='WINEFILE'!!"${loc_winefile}":"BTN" '@bash -c "button_click WINEFILE"' \ | ||||
|     --field='WINECMD'!!"${loc_winecmd}":"BTN" '@bash -c "button_click WINECMD"' \ | ||||
|     --field="F.A.Q."!!"":"FBTN" '@bash -c "xdg-open https://portwine-linux.ru/portwine-faq/ ; button_click"' \ | ||||
|     --field=":LBL" "" \ | ||||
|     --field='WINEREG'!!"${loc_winereg}":"BTN" '@bash -c "button_click WINEREG"' \ | ||||
|     --field='WINETRICKS'!!"${loc_winetricks}":"BTN" '@bash -c "button_click WINETRICKS"' &> "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" & \ | ||||
|  | ||||
|     "${pw_yad}" --key=$KEY --notebook --borders=10 --width=1000 --height=168 --no-buttons --text-align=center \ | ||||
|     --window-icon="$PW_GUI_ICON_PATH/port_proton.png" --title "$portname" --separator=";" \ | ||||
|     --tab-pos=right --tab="PORT_PROTON" --tab="AUTOINSTALL" --center  | ||||
|  | ||||
|     if [ -f "${PORT_WINE_TMP_PATH}/tmp_yad_form" ] ; then | ||||
|         export PW_YAD_SET=`cat "${PORT_WINE_TMP_PATH}/tmp_yad_form" | head -n 1 | awk '{print $1}'` | ||||
|         try_remove_file "${PORT_WINE_TMP_PATH}/tmp_yad_form" | ||||
|     fi | ||||
|     if [ -f "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" ] ; then | ||||
|         export VULKAN_MOD=`cat "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" | grep \;\; | awk '{print $1}'` | ||||
|         try_remove_file "${PORT_WINE_TMP_PATH}/tmp_yad_form_vulkan" | ||||
|     fi | ||||
| fi | ||||
| if [ ! -z "${VULKAN_MOD}" ] ; then | ||||
|     if [ "${VULKAN_MOD}" = "DXVK" ] ; then export PW_VULKAN_USE="dxvk" | ||||
|     elif [ "${VULKAN_MOD}" = "VKD3D" ]; then export PW_VULKAN_USE="vkd3d"  | ||||
|     elif [ "${VULKAN_MOD}" = "OPENGL" ]; then export PW_VULKAN_USE="0"  | ||||
|     fi | ||||
| export VULKAN_MOD=$(echo $OUTPUT_START | awk 'BEGIN {FS=";" } { print $1 }') | ||||
| if [ "${VULKAN_MOD}" = "DXVK ${PW_WINE_VER_DXVK}" ]; then | ||||
|     echo "dxvk" > "${PORT_WINE_TMP_PATH}/pw_vulkan" | ||||
| elif [ "${VULKAN_MOD}" = "VKD3D ${PW_WINE_VER_VKD3D}" ]; then | ||||
|     echo "vkd3d" > "${PORT_WINE_TMP_PATH}/pw_vulkan" | ||||
| else    | ||||
|     echo "0" > "${PORT_WINE_TMP_PATH}/pw_vulkan" | ||||
| fi | ||||
| case "$PW_YAD_SET" in | ||||
|     1|252) exit 0 ;; | ||||
|     100) PORTWINE_CREATE_SHORTCUT ;; | ||||
|     102) PORTWINE_DEBUG ;; | ||||
|     DEBUG|102) PORTWINE_DEBUG ;; | ||||
|     106) PORTWINE_LAUNCH ;; | ||||
|     108) PW_WINECFG ;; | ||||
|     110) PW_WINEFILE ;; | ||||
|     112) PW_WINECMD ;; | ||||
|     114) PW_WINEREG ;; | ||||
|     116) PW_WINETRICKS ;; | ||||
|     WINECFG|108) PW_WINECFG ;; | ||||
|     WINEFILE|110) PW_WINEFILE ;; | ||||
|     WINECMD|112) PW_WINECMD ;; | ||||
|     WINEREG|114) PW_WINEREG ;; | ||||
|     WINETRICKS|116) PW_WINETRICKS ;; | ||||
|     118) PW_EDIT_DB ;; | ||||
|     *) PW_AUTO_INSTALL_FROM_DB ;; | ||||
| esac | ||||
| ######################################################################## | ||||
| STOP_PORTWINE | ||||
|   | ||||
							
								
								
									
										45
									
								
								data_from_portwine/scripts/var
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										45
									
								
								data_from_portwine/scripts/var
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,45 @@ | ||||
| #!/bin/bash | ||||
| # Author: Castro-Fidel (PortWINE-Linux.ru) | ||||
| ######################################################################## | ||||
| #export PW_MANGOHUD=1 | ||||
| #export MANGOHUD_CONFIG=full,height=500,font_size=24,position=top-left,toggle_hud=F12 | ||||
| #export DXVK_HUD=fps,devinfo | ||||
|  | ||||
| export PW_FORCE_DISABLED_GAMEMOD=0  | ||||
|  | ||||
| export PW_DEF_DXVK_VER=1.8.1 | ||||
| export PW_DEF_VKD3D_VER=2.3.1 | ||||
|  | ||||
| export PW_FORCE_USE_VSYNC=2 | ||||
| export PW_LOG=0 | ||||
| export PW_TERM="" | ||||
| export PW_USE_TERMINAL=0 | ||||
|  | ||||
| export PW_WINDOWS_VER="7" | ||||
| export WINEARCH="win64" | ||||
|  | ||||
| export mono_ver=6.1.2 | ||||
| export gecko_ver=2.47.2 | ||||
| export pw_libs_ver="_v9" | ||||
|  | ||||
| export PW_FORCE_LARGE_ADDRESS_AWARE=1 | ||||
|  | ||||
| export porturl="http://portwine-linux.ru/" | ||||
| ######################################################################## | ||||
| ADD_IN_START_PORTWINE () | ||||
| { | ||||
| echo " " | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_STOP_PORTWINE () | ||||
| {	 | ||||
| echo " " | ||||
| } | ||||
| ######################################################################## | ||||
| OTHER_FIXES () { | ||||
|     #fix after installation Origin, for disabled OriginWebHelperService by default | ||||
|     if [ ! -z `cat "${WINEPREFIX}/system.reg" | grep Origin.exe | head -n 1 | awk '{print $1}'` ] ; then | ||||
|         sysreg_norig=$(((`cat -n "${WINEPREFIX}/system.reg" | grep OriginWebHelperService | awk '{print $1}'` + 3))) | ||||
|         sed -i "${sysreg_norig}s/dword:0000000[1-2]/dword:00000003/" "${WINEPREFIX}/system.reg" | ||||
|     fi | ||||
| } | ||||
| @@ -1,55 +0,0 @@ | ||||
| #!/bin/bash | ||||
| # Author: PortWINE-Linux.ru | ||||
| ######################################################################## | ||||
| export gamename="GOG Galaxy" | ||||
| export gamedir="GOG Galaxy" | ||||
| export porturl="http://portwine-linux.ru/" | ||||
| export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/Program Files (x86)/${gamedir}" | ||||
| export gamestart="${PATH_TO_GAME}/GalaxyClient.exe" | ||||
| ######################################################################## | ||||
| export MESA_GL_VERSION_OVERRIDE=4.4COMPAT | ||||
| export WINEDLLOVERRIDES="winemenubuilder.exe=d" | ||||
| export PW_LOG=0             # Enable debug mode fo terminal  | ||||
| export PW_NO_FSYNC=0        # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| export PW_NO_ESYNC=0        # Do not use eventfd-based in-process synchronization primitives | ||||
| export PW_DXVK_ASYNC=0 | ||||
| export PW_USE_TERMINAL=0 | ||||
| export PW_OLD_GL_STRING=0 | ||||
| export PW_NO_WINEMFPLAY=0 | ||||
| export PW_NVAPI_DISABLE=1 | ||||
| export PW_NO_WRITE_WATCH=0          # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games). | ||||
| export PW_HIDE_NVIDIA_GPU=0 | ||||
| export PW_FORCE_USE_VSYNC=2         # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT | ||||
| export PW_WINEDBG_DISABLE=1 | ||||
| export PW_FORCE_DISABLED_GAMEMOD=0              # Force disabele gamemod | ||||
| export PW_FORCE_LARGE_ADDRESS_AWARE=1           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | ||||
| #export MANGOHUD=1 | ||||
| ######################################################################## | ||||
| GalaxyCommunication ()  | ||||
| { | ||||
| for ((;;)); do | ||||
|     if [ $(pgrep !!!!.*)>'0' ]; then | ||||
| 	    "${WINEPREFIX}/drive_c/ProgramData/GOG.com/Galaxy/redists/GalaxyCommunication.exe" | ||||
|         break | ||||
|     else | ||||
|         sleep 2 | ||||
|     fi     | ||||
| done | ||||
| } | ||||
|  | ||||
| ADD_IN_START_PORTWINE () | ||||
| { | ||||
| export LAUNCH_PARAMETERS="/runWithoutUpdating /deelevated" | ||||
| GalaxyCommunication & | ||||
| cd "${PATH_TO_GAME}" | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_STOP_PORTWINE () | ||||
| {	 | ||||
| echo " " | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_POST_INSTALL () | ||||
| { | ||||
| echo " " | ||||
| } | ||||
| @@ -1,54 +0,0 @@ | ||||
| #!/bin/bash | ||||
| # Author: PortWINE-Linux.ru | ||||
| ######################################################################## | ||||
| export gamename="League_of_Legends" | ||||
| export gamedir="Riot Games/Riot Client" | ||||
| export porturl="http://portwine-linux.ru/league-of-legends-linux/" | ||||
| export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/${gamedir}" | ||||
| export gamestart="${PATH_TO_GAME}/RiotClientServices.exe" | ||||
| ######################################################################## | ||||
| #export MESA_GL_VERSION_OVERRIDE=4.4COMPAT | ||||
| export WINEDLLOVERRIDES="winemenubuilder.exe=d" | ||||
| export PW_LOG=0 | ||||
| export PW_ACO=1 | ||||
| export PW_NO_VR=1 | ||||
| export PW_NO_FSYNC=1 | ||||
| export PW_NO_ESYNC=1 | ||||
| export PW_FILELOCK=1 | ||||
| export PW_DXVK_ASYNC=0 | ||||
| export PW_USE_SECCOMP=0 | ||||
| export PW_NO_WINEMFPLAY=0 | ||||
| export PW_NVAPI_DISABLE=1 | ||||
| export PW_NO_WRITE_WATCH=1 | ||||
| export PW_WINEDBG_DISABLE=1 | ||||
| export PW_FORCE_LARGE_ADDRESS_AWARE=0 | ||||
| #export MANGOHUD=1 | ||||
| ######################################################################## | ||||
| ADD_IN_START_PORTWINE () | ||||
| { | ||||
| export LAUNCH_PARAMETERS="--launch-product=league_of_legends --launch-patchline=live" | ||||
| cd "${PATH_TO_GAME}" | ||||
|  | ||||
| if [ "$(cat /proc/sys/abi/vsyscall32)" -ne 0 ] | ||||
| then | ||||
|     zenity --question --title="Fix for LoL anti-cheat" \ | ||||
|            --text='Root rights are required to execute the command:           \n"sysctl -w abi.vsyscall32=0" and "sysctl -p"' --no-wrap | ||||
|     if [ "$?" = 1 ] | ||||
|     then | ||||
|         exit 0 | ||||
|     fi | ||||
|     pkexec sh -c 'sysctl -w abi.vsyscall32=0 && sysctl -p' | ||||
| fi | ||||
| sh "${PORT_SCRIPTS_PATH}"/fix_start_lol.sh | zenity --progress --title="Start PortLoL" --text="Please wait, launch is in progress, it may take few minutes" --pulsate --auto-close --auto-kill --width=450 & | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_STOP_PORTWINE () | ||||
| {	 | ||||
| echo " " | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_POST_INSTALL () | ||||
| { | ||||
| echo " " | ||||
| } | ||||
|  | ||||
| @@ -1,39 +0,0 @@ | ||||
| #!/bin/bash | ||||
| # Author: PortWINE-Linux.ru | ||||
| ######################################################################## | ||||
| export gamename="GameMailRu" | ||||
| export gamedir="GameCenter" | ||||
| export porturl="http://portwine-linux.ru/mail-ru-linux" | ||||
| export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/users/steamuser/Local Settings/Application Data/${gamedir}" | ||||
| export gamestart="${PATH_TO_GAME}/GameCenter.exe" | ||||
| ######################################################################## | ||||
| export MESA_GL_VERSION_OVERRIDE=4.4COMPAT | ||||
| export WINEDLLOVERRIDES="winemenubuilder.exe=d" | ||||
| export PW_LOG=0 | ||||
| export PW_ACO=1 | ||||
| export PW_NO_VR=1 | ||||
| export PW_FILELOCK=1 | ||||
| export PW_DXVK_ASYNC=0 | ||||
| export PW_USE_SECCOMP=1 | ||||
| export PW_NO_WINEMFPLAY=0 | ||||
| export PW_NVAPI_DISABLE=1 | ||||
| export PW_NO_WRITE_WATCH=1 | ||||
| export PW_WINEDBG_DISABLE=1 | ||||
| export PW_FORCE_LARGE_ADDRESS_AWARE=1 | ||||
| #export MANGOHUD=1 | ||||
| ######################################################################## | ||||
| ADD_IN_START_PORTWINE () | ||||
| { | ||||
| export LAUNCH_PARAMETERS="" | ||||
| cd "${PATH_TO_GAME}" | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_STOP_PORTWINE () | ||||
| {	 | ||||
| echo " " | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_POST_INSTALL () | ||||
| { | ||||
| echo " " | ||||
| } | ||||
| @@ -1,43 +0,0 @@ | ||||
| #!/bin/bash | ||||
| # Author: PortWINE-Linux.ru | ||||
| ######################################################################## | ||||
| export gamename="OSU!" | ||||
| export gamedir="osu!" | ||||
| export porturl="http://portwine-linux.ru/osu-linux/" | ||||
| export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/Program Files (x86)/${gamedir}" | ||||
| export gamestart="${PATH_TO_GAME}/osu!.exe" | ||||
| ######################################################################## | ||||
| #export MESA_GL_VERSION_OVERRIDE=4.4COMPAT | ||||
| export WINEDLLOVERRIDES="" | ||||
| export PW_LOG=0             # Enable debug mode fo terminal  | ||||
| export PW_NO_FSYNC=0        # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| export PW_NO_ESYNC=0        # Do not use eventfd-based in-process synchronization primitives | ||||
| export PW_DXVK_ASYNC=0 | ||||
| export PW_USE_TERMINAL=0 | ||||
| export PW_OLD_GL_STRING=0 | ||||
| export PW_NVAPI_DISABLE=0 | ||||
| export PW_NO_WRITE_WATCH=0          # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games). | ||||
| export PW_HIDE_NVIDIA_GPU=0 | ||||
| export PW_FORCE_USE_VSYNC=0         # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT | ||||
| export PW_WINEDBG_DISABLE=1 | ||||
| export PW_FORCE_DISABLED_GAMEMOD=0              # Force disabele gamemod | ||||
| export PW_FORCE_LARGE_ADDRESS_AWARE=0           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | ||||
| export PULSE_LATENCY_MSEC=40 | ||||
| #export MANGOHUD=1 | ||||
| ######################################################################## | ||||
| ADD_IN_START_PORTWINE () | ||||
| { | ||||
| export LAUNCH_PARAMETERS="" | ||||
| export STAGING_AUDIO_DURATION=5000 | ||||
| cd "${PATH_TO_GAME}" | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_STOP_PORTWINE () | ||||
| {	 | ||||
| echo " " | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_POST_INSTALL () | ||||
| { | ||||
| echo " " | ||||
| } | ||||
| @@ -1,43 +0,0 @@ | ||||
| #!/bin/bash | ||||
| # Author: PortWINE-Linux.ru | ||||
| ######################################################################## | ||||
| export gamename="Origin" | ||||
| export gamedir="Origin" | ||||
| export PATH_TO_GAME="${PORT_WINE_PATH}/data/pfx/drive_c/Program Files (x86)/${gamedir}" | ||||
| export gamestart="${PATH_TO_GAME}/Origin.exe" | ||||
| export porturl="http://portwine-linux.ru/origin-linux/" | ||||
| ######################################################################## | ||||
| #export MESA_GL_VERSION_OVERRIDE=4.4COMPAT | ||||
| export WINEDLLOVERRIDES="winemenubuilder.exe=d" | ||||
| export PW_LOG=0             # Enable debug mode fo terminal  | ||||
| export PW_NO_FSYNC=0        # Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems with no FUTEX_WAIT_MULTIPLE support. | ||||
| export PW_NO_ESYNC=0        # Do not use eventfd-based in-process synchronization primitives | ||||
| export PW_DXVK_ASYNC=0 | ||||
| export PW_USE_TERMINAL=0 | ||||
| export PW_OLD_GL_STRING=0 | ||||
| export PW_NO_WINEMFPLAY=0 | ||||
| export PW_NVAPI_DISABLE=1 | ||||
| export PW_NO_WRITE_WATCH=0          # Disable support for memory write watches in ntdll. This is a very dangerous hack and should only be applied if you have verified that the game can operate without write watches. This improves performance for some very specific games (e.g. CoreRT-based games). | ||||
| export PW_HIDE_NVIDIA_GPU=0 | ||||
| export PW_FORCE_USE_VSYNC=2         # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT | ||||
| export PW_WINEDBG_DISABLE=1 | ||||
| export PW_FORCE_DISABLED_GAMEMOD=0              # Force disabele gamemod | ||||
| export PW_FORCE_LARGE_ADDRESS_AWARE=1           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | ||||
| #export MANGOHUD=1 | ||||
| ######################################################################## | ||||
| ADD_IN_START_PORTWINE () | ||||
| { | ||||
| export LAUNCH_PARAMETERS="" | ||||
| cd "${PATH_TO_GAME}" | ||||
| sed -i 's%key="EnableIgo" value="true"%key="EnableIgo" value="false"%g' "${WINEPREFIX}/drive_c/users/steamuser/Application Data/Origin/local_"*".xml" | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_STOP_PORTWINE () | ||||
| {	 | ||||
| echo " " | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_POST_INSTALL () | ||||
| { | ||||
| echo " " | ||||
| } | ||||
| @@ -1,32 +0,0 @@ | ||||
| #!/bin/bash | ||||
| # Author: PortWINE-Linux.ru | ||||
| ######################################################################## | ||||
| export porturl="http://portwine-linux.ru/" | ||||
| ######################################################################## | ||||
| #export MESA_GL_VERSION_OVERRIDE=4.4COMPAT | ||||
| export PW_LOG=0             # Enable debug mode fo terminal  | ||||
| export PW_USE_TERMINAL=0 | ||||
| export PW_NVAPI_DISABLE=1 | ||||
| export PW_FORCE_USE_VSYNC=2         # Vsync: 0-FORCE_OFF, 1-FORCE_ON, 2-BY_DEFAULT | ||||
| export PW_WINEDBG_DISABLE=0 | ||||
| export PW_FORCE_DISABLED_GAMEMOD=0              # Force disabele gamemod | ||||
| #export PW_FORCE_LARGE_ADDRESS_AWARE=1           # Force Wine to enable the LARGE_ADDRESS_AWARE flag for all executables. Enabled by default. | ||||
| export PULSE_LATENCY_MSEC=60 | ||||
| #export PW_MANGOHUD=1 | ||||
| #export MANGOHUD_CONFIG=full,height=500,font_size=32,position=top-right,toggle_hud=F9 | ||||
| #export DXVK_HUD=fps,devinfo | ||||
| ######################################################################## | ||||
| ADD_IN_START_PORTWINE () | ||||
| { | ||||
| cd "${PATH_TO_GAME}" | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_STOP_PORTWINE () | ||||
| {	 | ||||
| echo " " | ||||
| } | ||||
| ######################################################################## | ||||
| ADD_IN_POST_INSTALL () | ||||
| { | ||||
| update-desktop-database -q "${HOME}/.local/share/applications" | ||||
| } | ||||
| @@ -133,10 +133,6 @@ else | ||||
|         	rm -fR "${PORT_WINE_PATH}/data/${CLEAN_PORT}" | ||||
|         fi | ||||
|     done | ||||
| 	if [ -d "${PORT_WINE_PATH}/data/pfx/" ] ; then | ||||
|         export PORT_PFX="${PORT_WINE_PATH}/data/pfx" | ||||
|         mv -f "${PORT_PFX}" "${PORT_PFX}_old" | ||||
|     fi | ||||
| fi | ||||
| if [ -d "${PORT_WINE_PATH}/data/scripts" ] ; then | ||||
|     rm -f "${PORT_WINE_PATH}/data/scripts/"* > /dev/null 2>&1 | ||||
| @@ -156,7 +152,7 @@ read "update_loc" < "${PORT_WINE_TMP_PATH}/${portname}_loc" | ||||
| export update_loc=${update_loc} | ||||
| ######################################################################## | ||||
| cd "${PORT_WINE_PATH}"  | ||||
| tail -n +178 "${links}/${setup_script}" > "${PORT_WINE_PATH}/${ARCH_NAME}" | ||||
| tail -n +169 "${links}/${setup_script}" > "${PORT_WINE_PATH}/${ARCH_NAME}" | ||||
| if [ "${s_install}" = "1" ] ; then | ||||
| 	tar -Jxvf "${PORT_WINE_PATH}/${ARCH_NAME}" -C "${PORT_WINE_PATH}/" | ||||
| else | ||||
| @@ -164,12 +160,7 @@ else | ||||
| fi | ||||
| chmod 755 -R "${PORT_WINE_PATH}" | ||||
| mv -f "${PORT_WINE_PATH}/${ARCH_NAME}" "${PORT_WINE_PATH}/data/tmp" | ||||
| sed -n 1,177p "${links}/${setup_script}" > "${PORT_WINE_PATH}/data/tmp/${setup_script}" | ||||
| ######################################################################## | ||||
| if [ -d "${PORT_PFX}_old" ] ; then | ||||
| 	rm -fR "${PORT_PFX}" | ||||
| 	mv -f "${PORT_PFX}_old" "${PORT_PFX}" | ||||
| fi | ||||
| sed -n 1,168p "${links}/${setup_script}" > "${PORT_WINE_PATH}/data/tmp/${setup_script}" | ||||
| echo "${portname}" > "${PORT_WINE_PATH}/data/tmp/portname" | ||||
| ######################################################################## | ||||
| cd "${PORT_WINE_PATH}/data/scripts" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user