mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2024-06-02 19:47:51 -04:00
pegasus
This commit is contained in:
parent
102e5b9438
commit
382a4e8763
|
@ -17,10 +17,10 @@ steam_input_templateFolder="$HOME/Library/Application Support/Steam/Steam.AppBun
|
|||
SRM_userData_directory="darwin/configs/steam-rom-manager/userData"
|
||||
SRM_userData_configDir="$HOME/Library/Application Support/steam-rom-manager/userData"
|
||||
|
||||
Pegasus_emuPath="pegasus-frontend"
|
||||
Pegasus_path="$HOME/Library/Preferences/$Pegasus_emuPath"
|
||||
Pegasus_dir_file="$Pegasus_path/game_dirs.txt"
|
||||
Pegasus_config_file="$Pegasus_path/settings.txt"
|
||||
pegasus_emuPath="pegasus-frontend"
|
||||
pegasus_path="$HOME/Library/Preferences/$pegasus_emuPath"
|
||||
pegasus_dir_file="$pegasus_path/game_dirs.txt"
|
||||
pegasus_config_file="$pegasus_path/settings.txt"
|
||||
|
||||
source "$EMUDECKGIT/darwin/functions/overrides/configEmuFP.sh"
|
||||
source "$EMUDECKGIT/darwin/functions/overrides/helperFunctions.sh"
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#!/bin/bash
|
||||
Pegasus_install(){
|
||||
pegasus_install(){
|
||||
|
||||
local PegasusURL="$(getLatestReleaseURLGH "mmatyas/pegasus-frontend" "macos-static.zip")"
|
||||
local showProgress=false
|
||||
|
||||
installEmuZip "{$Pegasus_toolName}" "${PegasusURL}" "pegasus"
|
||||
installEmuZip "{$pegasus_toolName}" "${PegasusURL}" "pegasus"
|
||||
|
||||
Pegasus_init
|
||||
pegasus_init
|
||||
|
||||
}
|
||||
|
|
|
@ -1,91 +1,91 @@
|
|||
#!/bin/bash
|
||||
#variables
|
||||
Pegasus_toolName="Pegasus Frontend"
|
||||
Pegasus_emuPath="org.pegasus_frontend.Pegasus"
|
||||
Pegasus_path="$HOME/.var/app/$Pegasus_emuPath/config"
|
||||
Pegasus_dir_file="$HOME/.var/app/$Pegasus_emuPath/pegasus-frontend/game_dirs.txt"
|
||||
Pegasus_config_file="$HOME/.var/app/$Pegasus_emuPath/pegasus-frontend/settings.txt"
|
||||
pegasus_toolName="Pegasus Frontend"
|
||||
pegasus_emuPath="org.pegasus_frontend.Pegasus"
|
||||
pegasus_path="$HOME/.var/app/$pegasus_emuPath/config"
|
||||
pegasus_dir_file="$HOME/.var/app/$pegasus_emuPath/pegasus-frontend/game_dirs.txt"
|
||||
pegasus_config_file="$HOME/.var/app/$pegasus_emuPath/pegasus-frontend/settings.txt"
|
||||
|
||||
#cleanupOlderThings
|
||||
Pegasus_cleanup(){
|
||||
pegasus_cleanup(){
|
||||
echo "NYI"
|
||||
}
|
||||
|
||||
#Install
|
||||
Pegasus_install(){
|
||||
pegasus_install(){
|
||||
|
||||
setMSG "Installing $Pegasus_toolName"
|
||||
setMSG "Installing $pegasus_toolName"
|
||||
|
||||
local showProgress="$1"
|
||||
|
||||
installEmuFP "${Pegasus_toolName}" "${Pegasus_emuPath}"
|
||||
flatpak override "${Pegasus_emuPath}" --filesystem=host --user
|
||||
Pegasus_init
|
||||
installEmuFP "${pegasus_toolName}" "${pegasus_emuPath}"
|
||||
flatpak override "${pegasus_emuPath}" --filesystem=host --user
|
||||
pegasus_init
|
||||
|
||||
}
|
||||
|
||||
#ApplyInitialSettings
|
||||
Pegasus_init(){
|
||||
setMSG "Setting up $Pegasus_toolName"
|
||||
pegasus_init(){
|
||||
setMSG "Setting up $pegasus_toolName"
|
||||
|
||||
rsync -avhp --mkpath "$EMUDECKGIT/configs/$Pegasus_emuPath/" "$Pegasus_path/"
|
||||
rsync -avhp --mkpath "$EMUDECKGIT/configs/$pegasus_emuPath/" "$pegasus_path/"
|
||||
|
||||
#metadata and paths
|
||||
rsync -r "$EMUDECKGIT/roms/" "$romsPath"
|
||||
rsync -av -f"+ */" -f"- *" "$EMUDECKGIT/roms/" "$toolsPath/downloaded_media"
|
||||
find $romsPath -type f -name "metadata.txt" -exec sed -i "s|CORESPATH|${RetroArch_cores}|g" {} \;
|
||||
sed -i "s|/run/media/mmcblk0p1/Emulation|${emulationPath}|g" "$Pegasus_dir_file"
|
||||
sed -i "s|/run/media/mmcblk0p1/Emulation|${emulationPath}|g" "$pegasus_dir_file"
|
||||
for systemPath in "$romsPath"/*; do rm -rf "$systemPath/media" &> /dev/null; done
|
||||
for systemPath in "$romsPath"/*; do system=$(echo "$systemPath" | sed 's/.*\/\([^\/]*\)\/\?$/\1/'); ln -s "$toolsPath/downloaded_media/$system" "$systemPath/media" &> /dev/null; ln -s "$toolsPath/downloaded_media/$system/covers" "$toolsPath/downloaded_media/$system/box2dfront" &> /dev/null; ln -s "$toolsPath/downloaded_media/$system/marquees" "$toolsPath/downloaded_media/$system/wheel" &> /dev/null; done
|
||||
|
||||
for systemPath in "$romsPath"/*; do rm -rf ".*/" &> /dev/null; done
|
||||
|
||||
#Pegasus_addCustomSystems
|
||||
#Pegasus_setEmulationFolder
|
||||
#Pegasus_setDefaultEmulators
|
||||
Pegasus_applyTheme "$pegasusTheme"
|
||||
#pegasus_addCustomSystems
|
||||
#pegasus_setEmulationFolder
|
||||
#pegasus_setDefaultEmulators
|
||||
pegasus_applyTheme "$pegasusTheme"
|
||||
|
||||
}
|
||||
|
||||
|
||||
Pegasus_resetConfig(){
|
||||
Pegasus_init &>/dev/null && echo "true" || echo "false"
|
||||
pegasus_resetConfig(){
|
||||
pegasus_init &>/dev/null && echo "true" || echo "false"
|
||||
}
|
||||
|
||||
Pegasus_update(){
|
||||
Pegasus_init &>/dev/null && echo "true" || echo "false"
|
||||
pegasus_update(){
|
||||
pegasus_init &>/dev/null && echo "true" || echo "false"
|
||||
}
|
||||
|
||||
Pegasus_addCustomSystems(){
|
||||
pegasus_addCustomSystems(){
|
||||
echo "NYI"
|
||||
}
|
||||
|
||||
Pegasus_applyTheme(){
|
||||
pegasus_applyTheme(){
|
||||
pegasusTheme=$1
|
||||
|
||||
local themeName=$(basename "$(echo $pegasusTheme | rev | cut -d'/' -f1 | rev)")
|
||||
themeName="${themeName/.git/""}"
|
||||
|
||||
git clone --no-single-branch --depth=1 "$pegasusTheme" "$Pegasus_path/themes/$themeName/"
|
||||
cd "$Pegasus_path/themes/$themeName/" && git pull
|
||||
git clone --no-single-branch --depth=1 "$pegasusTheme" "$pegasus_path/themes/$themeName/"
|
||||
cd "$pegasus_path/themes/$themeName/" && git pull
|
||||
|
||||
changeLine 'general.theme:' 'general.theme: themes/$themeName' "$Pegasus_config_file"
|
||||
changeLine 'general.theme:' 'general.theme: themes/$themeName' "$pegasus_config_file"
|
||||
|
||||
sed -i "s|/run/media/mmcblk0p1/Emulation|${emulationPath}|g" "$Pegasus_dir_file"
|
||||
sed -i "s|/run/media/mmcblk0p1/Emulation|${emulationPath}|g" "$pegasus_dir_file"
|
||||
}
|
||||
|
||||
Pegasus_setDefaultEmulators(){
|
||||
pegasus_setDefaultEmulators(){
|
||||
echo "NYI"
|
||||
}
|
||||
|
||||
Pegasus_setEmu(){
|
||||
pegasus_setEmu(){
|
||||
echo "NYI"
|
||||
}
|
||||
|
||||
Pegasus_IsInstalled(){
|
||||
isFpInstalled "$Pegasus_emuPath"
|
||||
pegasus_IsInstalled(){
|
||||
isFpInstalled "$pegasus_emuPath"
|
||||
}
|
||||
|
||||
Pegasus_uninstall(){
|
||||
flatpak uninstall "$Pegasus_emuPath" --user -y
|
||||
pegasus_uninstall(){
|
||||
flatpak uninstall "$pegasus_emuPath" --user -y
|
||||
}
|
||||
|
|
6
setup.sh
6
setup.sh
|
@ -154,7 +154,7 @@ fi
|
|||
#Pegasus Installation
|
||||
if [ $doInstallPegasus == "true" ]; then
|
||||
echo "install Pegasus"
|
||||
Pegasus_install
|
||||
pegasus_install
|
||||
fi
|
||||
#SRM Installation
|
||||
if [ $doInstallSRM == "true" ]; then
|
||||
|
@ -274,8 +274,8 @@ fi
|
|||
|
||||
#Pegasus Config
|
||||
#if [ $doSetupPegasus == "true" ]; then
|
||||
# echo "Pegasus_init"
|
||||
# Pegasus_init
|
||||
# echo "pegasus_init"
|
||||
# pegasus_init
|
||||
#fi
|
||||
|
||||
#Emus config
|
||||
|
|
Loading…
Reference in a new issue