PW_PPSSPP 824 Bytes
Newer Older
1
#!/usr/bin/env bash
2
# Author: chal55rus (Sergey P.)
3 4 5 6 7
# type: emulators
# name: PPSSPP Window
# image: ppsspp
# info_en:
# info_ru:
Mikhail Tergoev's avatar
Mikhail Tergoev committed
8
##########################################################################
9
export LAUNCH_PARAMETERS=("/VERYSILENT")
castro-fidel's avatar
castro-fidel committed
10
export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/PPSSPPSetup.exe"
11
start_portwine
Mikhail Tergoev's avatar
Mikhail Tergoev committed
12
if try_download "https://ppsspp.org/files/1_16_5/PPSSPPSetup.exe" "${PW_AUTOINSTALL_EXE}" no_mirror
13
then
Mikhail Tergoev's avatar
Mikhail Tergoev committed
14
    pw_start_progress_bar_install_game "PPSSPPS."
castro-fidel's avatar
castro-fidel committed
15
    pw_run "${PW_AUTOINSTALL_EXE}"
16
    portwine_exe="$WINEPREFIX/drive_c/Program Files/PPSSPP/PPSSPPWindows64.exe"
castro-fidel's avatar
castro-fidel committed
17
    try_remove_file "${PW_AUTOINSTALL_EXE}"
Mikhail Tergoev's avatar
Mikhail Tergoev committed
18
    try_remove_file "${portwine_exe}.ppdb"
19
    kill_portwine
castro-fidel's avatar
castro-fidel committed
20
    pw_stop_progress_bar
21 22 23 24
    export PORTWINE_CREATE_SHORTCUT_NAME="PPSSPPWindows"
    portwine_create_shortcut
fi
stop_portwine