ssshhh - emuDeckInstallHomebrewGames

This commit is contained in:
Rodrigo 2022-12-12 12:30:29 +01:00
parent b61131e13b
commit b85910683d
5 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,18 @@
#!/bin/bash
emuDeckInstallHomebrewGames(){
setMSG "Installing HomeBrew Games"
mkdir -p "$toolsPath/homebrew/roms/"
git clone https://github.com/EmuDeck/emudeck-homebrew.git "$toolsPath/homebrew/roms/" --depth=1
cd "$toolsPath/homebrew/roms/" && git reset --hard HEAD && git clean -f -d && git pull && echo "Homebrew Games up to date!" || echo "problem pulling Homebrew Games"
#Symlinks
ln -sn "$toolsPath/homebrew/roms/gamegear" ${romsPath}/gamegear/homebrew/
ln -sn "$toolsPath/homebrew/roms/gb" ${romsPath}/gb/homebrew/
ln -sn "$toolsPath/homebrew/roms/gba" ${romsPath}/gba/homebrew/
ln -sn "$toolsPath/homebrew/roms/gbc" ${romsPath}/gbc/homebrew/
ln -sn "$toolsPath/homebrew/roms/genesis" ${romsPath}/genesis/homebrew/
ln -sn "$toolsPath/homebrew/roms/mastersystem" ${romsPath}/mastersystem/homebrew/
ln -sn "$toolsPath/homebrew/roms/nes" ${romsPath}/nes/homebrew/
ln -sn "$toolsPath/homebrew/roms/snes" ${romsPath}/snes/homebrew/
}

View file

@ -43,6 +43,7 @@ source "$EMUDECKGIT"/functions/ToolScripts/emuDeckBINUP.sh
source "$EMUDECKGIT"/functions/ToolScripts/emuDeckSaveSync.sh
source "$EMUDECKGIT"/functions/ToolScripts/emuDeckrclone.sh
source "$EMUDECKGIT"/functions/ToolScripts/emuDeckRemotePlayWhatever.sh
source "$EMUDECKGIT"/functions/ToolScripts/emuDeckInstallHomebrewGames.sh
#emuscripts
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckYuzu.sh

View file

@ -274,6 +274,7 @@ function createUpdateSettingsFile(){
defaultSettingsList+=("doInstallCHD=true")
defaultSettingsList+=("doInstallPowertools=false")
defaultSettingsList+=("doInstallGyro=false")
defaultSettingsList+=("doInstallHomeBrewGames=false")
defaultSettingsList+=("installString='Installing'")
defaultSettingsList+=("RABezels=true")
defaultSettingsList+=("RAautoSave=false")

View file

@ -47,6 +47,7 @@ doInstallMAME=true
doInstallCHD=false
doInstallPowertools=false
doInstallGyro=false
$doInstallHomeBrewGames=false
installString='Installing'

View file

@ -647,7 +647,9 @@ fi
createDesktopIcons
if [ "$doInstallHomeBrewGames" == "true" ]; then
emuDeckInstallHomebrewGames
fi
#
##