Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1c1
- < #!/bin/sh
- ---
- > #!/bin/bash
- 8c8,19
- < function doinstall {
- ---
- > readkey() {
- > [ 1 -le $# ] && printf '%s' "$1"
- > stty -icanon
- > if [ 2 -le $# ]; then
- > eval "$2=\"\$(dd bs=1 count=1 2>/dev/null)\""
- > else
- > dd bs=1 count=1 2>/dev/null
- > fi
- > stty icanon
- > }
- >
- > doinstall() {
- 16c27,28
- < read -p "$HOME/.osu exists, would you like to move it to $WINEPREFIX? (Will assume that the wineprefix is configured correctly) [Y/n] " yn
- ---
- > readkey "$HOME/.osu exists, would you like to move it to $WINEPREFIX? (Will assume that the wineprefix is configured correctly) [Y/n] " yn
- > echo
- 19c31
- < rm -r "$WINEPREFIX" &>/dev/null
- ---
- > rm -r "$WINEPREFIX" >/dev/null 2>&1
- 38c50
- < if [ -z "$(which winetricks)" ]
- ---
- > if [ -z "$(command -v winetricks)" ]
- 40,41c52,54
- < echo "Installation failed. Please install winetricks."
- < read
- ---
- > stty -echo
- > readkey "Installation failed. Please install winetricks." > /dev/null
- > stty echo
- 56c69
- < function doinstalloptional {
- ---
- > doinstalloptional() {
- 68c81
- < function doremove {
- ---
- > doremove() {
- 118c131,141
- < vblank_mode=0 __GL_SYNC_TO_VBLANK=0 exec wine "$WINEPREFIX/drive_c/users/$USER/Local Settings/Application Data/osu!/osu!.exe" $@
- ---
- > # Bash-specific
- > args=()
- > for ((i=1; i<=$#; i++)); do
- > if [ -e "${!i}" ]; then
- > args[$i]="$(winepath -w "${!i}")"
- > else
- > args[$i]="${!i}"
- > fi
- > done
- >
- > vblank_mode=0 __GL_SYNC_TO_VBLANK=0 exec wine "$WINEPREFIX/drive_c/users/$USER/Local Settings/Application Data/osu!/osu!.exe" "${args[@]}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement