From 091e98338612ff8a072c76f74a7b7105234ff186 Mon Sep 17 00:00:00 2001 From: RealJohnGalt Date: Mon, 12 Nov 2018 14:03:20 -0800 Subject: [PATCH] gfx pack downloading --- cemutil.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cemutil.sh b/cemutil.sh index fa0ce57..ce9f768 100755 --- a/cemutil.sh +++ b/cemutil.sh @@ -18,6 +18,8 @@ function downloadlatest { wget -q --show-progress -O cemutemp.zip $(curl -s http://cemu.info |grep .zip |awk -F '"' {'print $2'}) 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'}) + echo "Downloading latest cemuhook" + wget -q --show-progress -O gfxpacktemp.zip https://github.com$(curl https://github.com/slashiee/cemu_graphic_packs/releases |grep graphicPacks |awk -F '"' NR==1{'print $2'}) return } @@ -105,6 +107,10 @@ echo "Extracting zips" mkdir -p $instdir bsdtar -xf "$cemuzip" -s'|[^/]*/||' -C $instdir unzip -q -o "$cemuhookzip" -d $instdir +if [ -f "gfxpacktemp.zip" ]; then + unzip -q -o gfxpacktemp.zip -d $instdir/graphicPacks + rm -rf gfxpacktemp.zip +fi #Delete downloaded zips if applicable if [ -f "cemutemp.zip" ]; then rm -rf cemutemp.zip