GAMEARTDEST="${SGGRIDDIR}/${GAMEARTAPPID}${GAMEARTSUFFIX}.${GAMEARTBASE#*.}"# path to filename in grid e.g. turns "/home/gaben/GamesArt/cs2_hero.png" into "~/.local/share/Steam/userdata/1234567/config/grid/4440654_hero.png"
if[-n "$GAMEARTSOURCE"];then
if[-f "$GAMEARTDEST"];then
if[[-n "$GAMEARTSOURCE"]];then
if[[-f "$GAMEARTDEST"]];then
rm"$GAMEARTDEST"
fi
if[-f "$GAMEARTSOURCE"];then
if[[-f "$GAMEARTSOURCE"]];then
$GAMEARTCMD"$GAMEARTSOURCE""$GAMEARTDEST"
fi
fi
...
...
@@ -143,12 +143,12 @@ function downloadArtFromSteamGridDB {
@@ -327,7 +327,7 @@ NOSTSEARCHID="" # ID to search for the SteamGridDB artwork on (either Steam App
NOSTSEARCHFLAG="--nonsteam" # Whether to search using a Steam AppID or SteamGridDB Game ID (will be set to --steam if we get an AppID)
# Only add NOSTAPPNAME as fallback if we don't have an ID to search on, because commandlineGetSteamGridDBArtwork will prefer name over ID, so if we have to fall back to Non-Steam Name (i.e. no entered custom name) then only do so if we don't have an ID given
--field="$(gettext "ADD ARGUMENTS FOR .EXE FILE")!$(gettext "Adding an argument after the <b>.exe</b> file, just like you would add an argument in a shortcut on a <b>WINDOWS </b> system") :CBE""$(combobox_fix --empty"\\${LAUNCH_PARAMETERS[@]}""-dx11 -skipintro 1")"\
--field=":LBLH"""\
--field="$(gettext "Limit the use of processor cores")!$(gettext "Limiting the number of CPU cores is useful for Unity games (It is recommended to set the value equal to 8)") :CB""$(combobox_fix --disabled"${CPU_LIMIT_VAR}""${GET_LOGICAL_CORE}")"\
--field="$(gettext "Forcibly select the OpenGL version for the game")!$(gettext "You can select the required OpenGL version, some games require a forced Compatibility Profile (COMPAT). (Examples are in the drop-down list)") :CBE""$(combobox_fix --disabled"${PW_MESA_GL_VERSION_OVERRIDE}""4.6COMPAT!4.6!4.5COMPAT!4.5!3.3COMPAT!3.3")"\
--field="$(gettext "Forcibly select the OpenGL version for the game")!$(gettext "You can select the required OpenGL version, some games require a forced Compatibility Profile (COMPAT). (Examples are in the drop-down list)") :CB""$(combobox_fix --disabled"${PW_MESA_GL_VERSION_OVERRIDE}""4.6COMPAT!4.6!4.5COMPAT!4.5!3.3COMPAT!3.3")"\
--field="$(gettext "Forcibly select the VKD3D feature level")!$(gettext "You can set a forced feature level VKD3D for games on DirectX12") :${VKD3D_CB}""$(combobox_fix --disabled"${PW_VKD3D_FEATURE_LEVEL}""12_2!12_1!12_0!11_1!11_0")"\
--field="$(gettext "Force certain locale for an app:")!$(gettext "Fixes encoding issues in legacy software") :CB""$(combobox_fix --disabled"${PW_LOCALE_SELECT}""$LOCALE_LIST")"\
GAMESCOPE_NEED_INSTALL="$(gettext "Change settings gamescope for") <b>${PORTWINE_DB}</b>\n$(gettext "<b>NOTE:</b> To display help for each item, simply hover your mouse over the text")"
--field=" $NEW_STEAM_BEHAVIOR$(gettext "steam covers download")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE_MM.png"!"$(gettext "If downloading steam covers is enabled, they will be downloaded and created. (Disablement is provided in cases where their downloading is unavailable for some reason)")":"FBTN"'@bash -c "button_click --userconf change_download_grid"'\
--text"\n$(gettext "Could not find the file:")\n${portwine_exe}\n\n$(gettext "ATTENTION:\nIf you forgot to mount the disk with the running application, click CANCEL!")\n"\
while read-r line ||[[!-z$(pgrep -a yad | grep"yad_gui_pp --text-info --tail --button="STOP"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0 --title="DEBUG"" | awk'{print $1}')]];do
while read-r line ||[[-n$(pgrep -a yad | grep"yad_gui_pp --text-info --tail --button="STOP"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0 --title="DEBUG"" | awk'{print $1}')]];do
[[!-z"$WOSB_VERSION"]]&& print_info "Found version: $WOSB_VERSION"|| yad_error "Error while get version of WOSB INSTALLER."
[[-n"$WOSB_VERSION"]]&& print_info "Found version: $WOSB_VERSION"|| yad_error "Error while get version of WOSB INSTALLER."
start_portwine
if try_download "https://installer.launcher.xsolla.com/xlauncher-builds/xsolla-launcher-update/${WOSB_VERSION}/bin/installer.exe""${PW_AUTOINSTALL_EXE}" no_mirror