From b1fcef36f2a5b3a96a913a4f3024818101818d4e Mon Sep 17 00:00:00 2001
From: Mikhail Tergoev <fidel@altlinux.org>
Date: Tue, 6 Jun 2023 19:18:58 +0300
Subject: [PATCH] Scripts version 2200

---
 data_from_portwine/changelog_eng                         | 3 +++
 data_from_portwine/changelog_rus                         | 3 +++
 data_from_portwine/scripts/functions_helper              | 8 --------
 data_from_portwine/scripts/portwine_db/League of Legends | 3 +--
 data_from_portwine/scripts/pw_autoinstall/PW_LOL         | 2 +-
 data_from_portwine/scripts/var                           | 2 +-
 6 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/data_from_portwine/changelog_eng b/data_from_portwine/changelog_eng
index 4cc71089..3ff92f44 100755
--- a/data_from_portwine/changelog_eng
+++ b/data_from_portwine/changelog_eng
@@ -2,6 +2,9 @@ You can help us in the development of the project on the website: boosty.to/linu
 -----------------------------------------
 Changelog:
 
+###Scripts version 2200### Дата: 06.06.2023 / Update download size: 9 megabytes.
+* updated WINE for League of Legends 
+
 ###Scripts version 2199### Дата: 05.06.2023 / Update download size: 9 megabytes.
 * minor fixes
 * function removed: check_nvidia_vk_icd_file
diff --git a/data_from_portwine/changelog_rus b/data_from_portwine/changelog_rus
index b9207960..2f5ae5de 100755
--- a/data_from_portwine/changelog_rus
+++ b/data_from_portwine/changelog_rus
@@ -2,6 +2,9 @@
 -----------------------------------------
 История изменений:
 
+###Scripts version 2200### Дата: 06.06.2023 / Размер скачиваемого обновления: 9 мегабайт.
+* обновлен WINE для League of Legends (Для применения изменений требуется снова запустить автоустановку League of Legends)
+
 ###Scripts version 2199### Дата: 05.06.2023 / Размер скачиваемого обновления: 9 мегабайт.
 * добавлен фикс для установки некоторых репаков от xatab
 * удалена функция: check_nvidia_vk_icd_file (в ней теперь нет необходимости)
diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper
index dda8e1db..1dd8484d 100755
--- a/data_from_portwine/scripts/functions_helper
+++ b/data_from_portwine/scripts/functions_helper
@@ -514,14 +514,6 @@ pw_vkbasalt_check () {
     return 0
 }
 
-check_nvidia_vk_icd_file () {
-    if [[ -f "/usr/share/vulkan/icd.d/nvidia_icd.json" ]] ; then
-        export VK_ICD_FILENAMES="/usr/share/vulkan/icd.d/nvidia_icd.json"
-    elif [[ -f "/etc/vulkan/icd.d/nvidia_icd.json" ]] ; then
-        export VK_ICD_FILENAMES="/etc/vulkan/icd.d/nvidia_icd.json"
-    fi
-}
-
 regdlloverrides () {
     PW_DLL_EXE=`echo $@ | awk -F: '{print $1}'`
     PW_DLL_LIB=`echo $@ | awk -F: '{print $2}' | awk -F= '{print $1}'`
diff --git a/data_from_portwine/scripts/portwine_db/League of Legends b/data_from_portwine/scripts/portwine_db/League of Legends
index 27e4d396..6e7dc34c 100755
--- a/data_from_portwine/scripts/portwine_db/League of Legends	
+++ b/data_from_portwine/scripts/portwine_db/League of Legends	
@@ -13,7 +13,7 @@ export TEXT_OPSSL=""
 export PW_COMMENT_DB="${TEXT_OPSSL}Dwnload and start League of Legends can take a long time"
 export WINEDLLOVERRIDES="mscoree,mshtml="
 export LAUNCH_PARAMETERS="--launch-product=league_of_legends --launch-patchline=live"              # Additional launch options
-export PW_WINE_USE=WINE_LOL_GE_7.0-8
+export PW_WINE_USE=WINE_LOL_GE_8.7-1
 export PW_VULKAN_USE=1
 export PW_MUST_HAVE_DLL=""
 export PW_PREFIX_NAME="LEAGUE_OF_LEGENDS"
@@ -28,5 +28,4 @@ gui_proton_downloader silent "${PW_WINE_USE}"
 
 add_in_start_portwine () {
     echo ""
-
 }
diff --git a/data_from_portwine/scripts/pw_autoinstall/PW_LOL b/data_from_portwine/scripts/pw_autoinstall/PW_LOL
index 5e0a9055..0b137e48 100755
--- a/data_from_portwine/scripts/pw_autoinstall/PW_LOL
+++ b/data_from_portwine/scripts/pw_autoinstall/PW_LOL
@@ -6,7 +6,7 @@ export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/live.na.exe"
 export LAUNCH_PARAMETERS="--launch-product=league_of_legends --launch-patchline=live"
 export PW_MUST_HAVE_DLL=""
 export PW_VULKAN_USE=1
-export PW_WINE_USE=WINE_LOL_GE_7.0-8
+export PW_WINE_USE=WINE_LOL_GE_8.7-1
 export WINEDLLOVERRIDES="mscoree,mshtml="
 export PW_USE_D3D_EXTRAS=1
 
diff --git a/data_from_portwine/scripts/var b/data_from_portwine/scripts/var
index 61f8205c..24f7c53a 100755
--- a/data_from_portwine/scripts/var
+++ b/data_from_portwine/scripts/var
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 #Author: Castro-Fidel (linux-gaming.ru)
-#SCRIPTS_NEXT_VERSION=2199
+#SCRIPTS_NEXT_VERSION=2200
 ########################################################################
 export PW_MANGOHUD=0
 export MANGOHUD_CONFIG=cpu_stats,cpu_temp,cpu_mhz,cpu_color=2e97cb,cpu_text=CPU,gpu_stats,gpu_temp,gpu_core_clock,gpu_mem_clock,vulkan_driver,gpu_name,gpu_color=2e9762,gpu_text=GPU,vram,vram_color=ad64c1,ram,ram_color=c26693,io_color=a491d3,frame_timing=1,frametime_color=00ff00,time,arch,wine,wine_color=eb5b5b,engine_color=eb5b5b,background_alpha=0.2,font_size=24,background_color=020202,text_color=ffffff,toggle_hud=Shift_R+F12,resolution,vkbasalt