forked from CastroFidel/PortWINE
		
	###Scripts version 2006###
This commit is contained in:
		| @@ -233,4 +233,23 @@ PW_ROCKSTAR () { | ||||
|         portwine_create_shortcut | ||||
|     fi | ||||
|     stop_portwine | ||||
| } | ||||
|  | ||||
| PW_MYGAMES () { | ||||
|     export LAUNCH_PARAMETERS=("") | ||||
|     export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/MyGamesLoader.exe" | ||||
|     start_portwine | ||||
|     if try_download "https://static.gc.my.games/MyGamesLoader.exe" "${PW_AUTOINSTALL_EXE}" | ||||
|     then | ||||
|         pw_start_progress_bar_block "Installing the My.Games. Please wait..." | ||||
|         pw_kill_autostart GameCenter.exe & | ||||
|         pw_run "${PW_AUTOINSTALL_EXE}" | ||||
|         portwine_exe="$WINEPREFIX/drive_c/users/steamuser/AppData/Local/GameCenter/GameCenter.exe" | ||||
|         try_remove_file "${PW_AUTOINSTALL_EXE}" | ||||
|         kill_portwine | ||||
|         pw_stop_progress_bar | ||||
|         export PORTWINE_CREATE_SHORTCUT_NAME="MY.GAMES" | ||||
|         portwine_create_shortcut | ||||
|     fi | ||||
|     stop_portwine | ||||
| } | ||||
| @@ -576,7 +576,7 @@ pw_kill_autostart () { | ||||
|     else | ||||
|         sleep 10 | ||||
|         while true ; do | ||||
|             if  [ -z "`ps aux | grep "$1" | head -n 1 | awk '{print $2}'`" ] && [ ! -z "`pgrep wrap | head -n 1`" ]; then | ||||
|             if  [ -z "`ps aux | grep "$1" | head -n 1 | awk '{print $2}' | grep -v grep`" ] && [ ! -z "`pgrep wrap | head -n 1`" ]; then | ||||
|                 echo -e "PID "$1" not found" | ||||
|                 sleep 1 | ||||
|             else | ||||
|   | ||||
| @@ -322,6 +322,7 @@ else | ||||
|     --field="   Origin Launcher"!"$PW_GUI_ICON_PATH/origin.png":"BTN" '@bash -c "button_click PW_ORIGIN"' \ | ||||
|     --field="   Bethesda.net Launcher"!"$PW_GUI_ICON_PATH/Bethesda.png":"BTN" '@bash -c "button_click PW_BETHESDA"' \ | ||||
|     --field="   Rockstar Games Launcher"!"$PW_GUI_ICON_PATH/Rockstar.png":"BTN" '@bash -c "button_click PW_ROCKSTAR"' \ | ||||
|     --field="   My.Games Launcher"!"$PW_GUI_ICON_PATH/mygames.png":"BTN" '@bash -c "button_click PW_MYGAMES"' \ | ||||
|     --field="   OSU"!"$PW_GUI_ICON_PATH/osu.png":"BTN" '@bash -c "button_click PW_OSU"' & \ | ||||
|  | ||||
|     "${pw_yad}" --plug=${KEY} --tabnum=1 --columns=3 --form --separator=";" \ | ||||
| @@ -363,9 +364,9 @@ if [ ! -z "${VULKAN_MOD}" ] ; then | ||||
|     fi | ||||
| fi | ||||
|  | ||||
| init_wine_ver  | ||||
| init_wine_ver | ||||
|  | ||||
| if [ -z "${PW_DISABLED_CREAT_DB}" ] ; then  | ||||
| if [ -z "${PW_DISABLED_CREAT_DB}" ] ; then | ||||
|     if [ ! -z "${PORTWINE_DB}" ] ; then | ||||
|         PORTWINE_DB_FILE=`grep -il "\#${PORTWINE_DB}.exe" "${PORT_SCRIPTS_PATH}/portwine_db"/*` | ||||
|         if [ -z "${PORTWINE_DB_FILE}" ] ; then | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| #!/bin/bash | ||||
| #Author: Castro-Fidel (PortWINE-Linux.ru) | ||||
| #SCRIPTS_NEXT_VERSION=2005 | ||||
| #SCRIPTS_NEXT_VERSION=2006 | ||||
| ######################################################################## | ||||
| export PW_MANGOHUD=1 | ||||
| export MANGOHUD_CONFIG=font_size=24,position=top-left,toggle_hud=Shift_R+F12,no_display,resolution,wine,gpu_name,vulkan_driver,gpu_stats,vkbasalt | ||||
|   | ||||
		Reference in New Issue
	
	Block a user