From aa169c1f486a7530cd90d7f8f3e6273585e86f26 Mon Sep 17 00:00:00 2001 From: Hengi Fettlich Date: Sun, 7 Apr 2019 23:10:58 +0200 Subject: [PATCH] added sharedFonts.zip installation --- cemutil.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cemutil.sh b/cemutil.sh index d15f95a..d63cc5c 100755 --- a/cemutil.sh +++ b/cemutil.sh @@ -27,6 +27,8 @@ function downloadlatest { 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" 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'}) + echo "Downloading cemuhook shared fonts" + wget -q --show-progress -O sharedFonts.zip https://github.com/HengiFettlich/cemutil/raw/master/sharedFonts.zip return } @@ -128,6 +130,9 @@ fi if [[ "$gfxpackzip" == "" ]]; then gfxpackzip=gfxpacktemp.zip fi +if [[ "$sharedFonts" == "" ]]; then + sharedFonts=sharedFonts.zip +fi #Extract zips echo "Extracting zips" @@ -146,6 +151,10 @@ if [ -f "$gfxpackzip" ]; then unzip -q -o "$gfxpackzip" -d ${instdir}/graphicPacks/ fi +if [ -f "$sharedFonts" ]; then + unzip -q -o "$sharedFonts" -d $instdir +fi + #Delete downloaded zips if applicable if [ -f "gfxpacktemp.zip" ]; then rm -rf gfxpacktemp.zip @@ -157,6 +166,10 @@ if [ -f "cemuhooktemp.zip" ]; then rm -rf cemuhooktemp.zip fi +if [ -f "sharedFonts.zip" ]; then + rm -rf sharedFonts.zip +fi + #Configure wine prefix echo "Configuring new wine prefix" export WINEPREFIX=$(realpath $instdir)/wine @@ -197,4 +210,3 @@ echo "You may now run CEMU with LaunchCEMU written in this directory" echo "You may place LaunchCEMU anywhere, and even pass arguments to it just like Cemu.exe on Windows" echo "Note: When launching there may be a WxWidgets error. Press Cancel; this is normal from cemuhook" echo "Note2: gcn3 (radeon 300-500 series) users should use the gcn3BOTW script for launching BOTW" -echo "Note3: Cemu Hook may not be able to download the 4 required shared fonts, these can be copied from a working Windows install of Cemu"