

POL_SetupWindow_menu "Choose display resolution?" "Display resolution" "$MODESLIST" " " Refreshrate=`cat xrandr | head -n $i | tail -n 1 |cut -d'x' -f2 | cut -d'.' -f1 | sed -e "s/$ > xrandr2

Y=`cat xrandr | head -n $i | tail -n 1 |cut -d'x' -f2 | cut -d' ' -f1` X=`cat xrandr | head -n $i | tail -n 1 |cut -d'x' -f1 | sed -e 's/ //g'` Icotool -x -index=$ICOINDEX "$REPERTOIRE/tmp/icon.ico" -o "$REPERTOIRE/icones/32/$1" ICOINDEX=`icotool -l "$REPERTOIRE/tmp/icon.ico" | grep "\-\-width=32" | grep "\-\-bit-depth=$ICOBITDEPTH" | tail -n 1 | cut -d' ' -f2 | cut -d'=' -f2` ICOBITDEPTH=`icotool -l "$REPERTOIRE/tmp/icon.ico" | grep '\-\-width=32' | cut -d' ' -f5 | cut -d'=' -f2 | sort -n |tail -n 1` Wrestool "$EXEPATH/$EXENAME" -x -t14 > "$REPERTOIRE/tmp/icon.ico" LAUNCHERFILENAME="$REPERTOIRE/configurations/installed/$1"ĮXEPATH=`cat "$LAUNCHERFILENAME" | tail -n 2 | head -n 1 | cut -d'"' -f2`ĮXENAME=`cat "$LAUNCHERFILENAME" | tail -n 1 | cut -d'"' -f2` Wget -output-document="$REPERTOIRE/tmp/LIST" POL_SetupWindow_message "Patch for $TYTUL has been installed successfully" "$TYTUL"

POL_SetupWindow_wait_next_signal "Installation in progress." "$TYTUL"
#SUPREME COMMANDER FA PATCH PATCH#
POL_SetupWindow_browse "Select patch file" "$TYTUL" "" #procedure for patching Supreme Commander PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`ĪPPDATA=`echo $APPDATA | sed -e "s/$USER/\./" | cut -d'.' -f2 | cut -d'\' -f2` #fetching PROGRAMFILES environmental variable
