Skip to content

Commit

Permalink
fixed not found error after downloading Sharpii
Browse files Browse the repository at this point in the history
  • Loading branch information
Naim2000 committed Jun 21, 2024
1 parent 10154cc commit f4535c9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions assets/files/d2x_offline_ios.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash

Sharpii_DL="https://naim2000.github.io/res/exe/Sharpii"
ios_output="$(dirname $0)/ios"

epicfail () {
printf "
Expand Down Expand Up @@ -43,9 +42,13 @@ download_ios () {
return
fi
printf "Downloading IOS${1}...\n"
./Sharpii nusd -ios ${1} -v ${2} -wad -o "$ios_output/IOS${1}-64-v${2}.wad" # &>/dev/null
./Sharpii nusd -ios ${1} -v ${2} -wad -o "ios/IOS${1}-64-v${2}.wad" # &>/dev/null
}

#######

cd $(dirname $0)

if [[ -f "sharpii($sys)" ]]; then mv "sharpii($sys)" "Sharpii"; fi

if ! [[ -f "Sharpii" ]]; then
Expand All @@ -60,7 +63,7 @@ if ! [[ -f "Sharpii" ]]; then
fi
if ! [[ -x "Sharpii" ]]; then chmod +x Sharpii; fi

mkdir $ios_output
mkdir -p ios
printf "This script downloads the 4 IOS WADs at wii.hacks.guide/cios mentioned at Section I.\n"
sleep 1
download_ios 38 4123
Expand Down

0 comments on commit f4535c9

Please sign in to comment.