removed duplicate function
This commit is contained in:
parent
0de27d5727
commit
c96a77d0ea
24
cemutil.sh
24
cemutil.sh
@ -21,21 +21,9 @@ function printhelp {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
function downloadlatest {
|
function download {
|
||||||
echo "Downloading latest cemu"
|
echo "Downloading ${cemu_version}"
|
||||||
wget -q --show-progress -O cemutemp.zip $(curl -s http://cemu.info |grep .zip |awk -F '"' {'print $2'})
|
wget -q --show-progress -O cemutemp.zip http://cemu.info/releases/${cemu_version}.zip
|
||||||
downloadassets
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
function downloadlatest_working {
|
|
||||||
echo "Downloading latest working cemu"
|
|
||||||
wget -q --show-progress -O cemutemp.zip http://cemu.info/releases/cemu_1.15.5.zip
|
|
||||||
downloadassets
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
function downloadassets {
|
|
||||||
echo "Downloading latest cemuhook"
|
echo "Downloading latest cemuhook"
|
||||||
wget -q --show-progress -O cemuhooktemp.zip $(curl -s https://cemuhook.sshnuke.net |grep .zip |awk -F '"' NR==2{'print $2'})
|
wget -q --show-progress -O cemuhooktemp.zip $(curl -s https://cemuhook.sshnuke.net |grep .zip |awk -F '"' NR==2{'print $2'})
|
||||||
echo "Downloading latest graphics packs"
|
echo "Downloading latest graphics packs"
|
||||||
@ -106,10 +94,12 @@ while getopts ":c:h:g:alfi:" opt; do
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
a )
|
a )
|
||||||
downloadlatest_working
|
cemu_version="cemu_1.15.5"
|
||||||
|
download
|
||||||
;;
|
;;
|
||||||
l )
|
l )
|
||||||
downloadlatest
|
cemu_version=$(curl -s http://cemu.info | grep -Po 'cemu_.+?(?=\.zip)')
|
||||||
|
download
|
||||||
;;
|
;;
|
||||||
f )
|
f )
|
||||||
skipgfxcheck=1
|
skipgfxcheck=1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user