###Scripts version 2006###

This commit is contained in:
castro-fidel
2021-09-03 18:17:42 +02:00
parent ea518e5f21
commit e291a2e90d
8 changed files with 46 additions and 22 deletions

View File

@ -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
}