#!/usr/bin/env bash
#Author: xuser
#LeagueClient.exe
#RiotClientServices.exe
#Install League of Legends ru.exe
#Install League of Legends na.exe
#Install League of Legends euw.exe
#live.na.exe
#Rating=1-5
#####################examples###########################
export TEXT_OPSSL=""
[[ -z `which openssl` ]] && export TEXT_OPSSL="Install openssl in your system!\n"
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"
export PW_WINE_USE=WINE_LOL_GE_8.27
export PW_VULKAN_USE=1
export PW_MUST_HAVE_DLL=""
export PW_PREFIX_NAME="LEAGUE_OF_LEGENDS"
export PW_USE_FSYNC=0
export PW_USE_ESYNC=0
export PW_DISABLED_CREATE_DB=1
export PW_USE_D3D_EXTRAS=1
export DISABLE_CP_DEFPFX=1

try_remove_dir "${PORT_WINE_PATH}/data/dist/WINE_LOL_GE_8.12"
gui_proton_downloader silent "${PW_WINE_USE}"

add_in_start_portwine () {
    echo ""
}
