Skip to content

Commit

Permalink
Feature/pegasus (#877)
Browse files Browse the repository at this point in the history
* Darwin wip

* darwin wip

* old EmuAI

* SRM

* RA + SRM + ESDE

* Moving more if darwin to override.sh

* Moving more if darwin to override.sh

* installToolAI + darwin ifs cleanups, more overrides :)

* fi fix

* fixed SRM parsers with ,,

* fix rm dmg

* RA flatpak first

* darwin install

* darwin fixes

* darwinnnn

* jsonjson

* darwin srm

* fix launchers

* SRM env vars moved to a function + override to darwin

* dont check if.cef-enable-remote-debugging

* better zenity

* fix watcher

* zenity fix

* cloudSync provider detection

* fixed paths fix

* darwin fixed paths

* fixed paths fix

* enable cloudsync

* no appinit

* last minute fixes

* weird fixes

* hash fix?

* this needs a proper cleanup...

* fixed?

* back to linkToSaveFolder for now

* better duplicate detection

* parser disabled

* cloudSync final touches

* darwin installation

* improvements

* customSRM

* Revert "customSRM"

This reverts commit 2787d22.

* first batch

* second batch

* SGBC + Jaguar parsers

* Pegasus settings and functions

* proper order

* Path fixed

* install on setup

* SRM parser

* icon

* clear console

* Steam installation

* fix shellcheck
  • Loading branch information
dragoonDorise authored Oct 6, 2023
1 parent 17fae95 commit 960d1ef
Show file tree
Hide file tree
Showing 184 changed files with 1,330 additions and 10 deletions.
187 changes: 187 additions & 0 deletions configs/org.pegasus_frontend.Pegasus/pegasus-frontend/game_dirs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
/run/media/mmcblk0p1/Emulation/roms/3do
/run/media/mmcblk0p1/Emulation/roms/3ds
/run/media/mmcblk0p1/Emulation/roms/64dd
/run/media/mmcblk0p1/Emulation/roms/ags
/run/media/mmcblk0p1/Emulation/roms/amiga
/run/media/mmcblk0p1/Emulation/roms/amiga600
/run/media/mmcblk0p1/Emulation/roms/amiga1200
/run/media/mmcblk0p1/Emulation/roms/amigacd32
/run/media/mmcblk0p1/Emulation/roms/amstradcpc
/run/media/mmcblk0p1/Emulation/roms/android
/run/media/mmcblk0p1/Emulation/roms/apple2
/run/media/mmcblk0p1/Emulation/roms/apple2gs
/run/media/mmcblk0p1/Emulation/roms/arcade
/run/media/mmcblk0p1/Emulation/roms/arcadia
/run/media/mmcblk0p1/Emulation/roms/arduboy
/run/media/mmcblk0p1/Emulation/roms/astrocade
/run/media/mmcblk0p1/Emulation/roms/astrocde
/run/media/mmcblk0p1/Emulation/roms/atari800
/run/media/mmcblk0p1/Emulation/roms/atari2600
/run/media/mmcblk0p1/Emulation/roms/atari5200
/run/media/mmcblk0p1/Emulation/roms/atari7800
/run/media/mmcblk0p1/Emulation/roms/atarijaguar
/run/media/mmcblk0p1/Emulation/roms/atarijaguarcd
/run/media/mmcblk0p1/Emulation/roms/atarilynx
/run/media/mmcblk0p1/Emulation/roms/atarist
/run/media/mmcblk0p1/Emulation/roms/atarixe
/run/media/mmcblk0p1/Emulation/roms/atomiswave
/run/media/mmcblk0p1/Emulation/roms/bbcmicro
/run/media/mmcblk0p1/Emulation/roms/c16
/run/media/mmcblk0p1/Emulation/roms/c64
/run/media/mmcblk0p1/Emulation/roms/cavestory
/run/media/mmcblk0p1/Emulation/roms/cdimono1
/run/media/mmcblk0p1/Emulation/roms/cdtv
/run/media/mmcblk0p1/Emulation/roms/chailove
/run/media/mmcblk0p1/Emulation/roms/channelf
/run/media/mmcblk0p1/Emulation/roms/cloud
/run/media/mmcblk0p1/Emulation/roms/coco
/run/media/mmcblk0p1/Emulation/roms/coleco
/run/media/mmcblk0p1/Emulation/roms/colecovision
/run/media/mmcblk0p1/Emulation/roms/cps
/run/media/mmcblk0p1/Emulation/roms/cps1
/run/media/mmcblk0p1/Emulation/roms/cps2
/run/media/mmcblk0p1/Emulation/roms/cps3
/run/media/mmcblk0p1/Emulation/roms/crvision
/run/media/mmcblk0p1/Emulation/roms/daphne
/run/media/mmcblk0p1/Emulation/roms/desktop
/run/media/mmcblk0p1/Emulation/roms/doom
/run/media/mmcblk0p1/Emulation/roms/dos
/run/media/mmcblk0p1/Emulation/roms/dragon32
/run/media/mmcblk0p1/Emulation/roms/dreamcast
/run/media/mmcblk0p1/Emulation/roms/easyrpg
/run/media/mmcblk0p1/Emulation/roms/epic
/run/media/mmcblk0p1/Emulation/roms/famicom
/run/media/mmcblk0p1/Emulation/roms/fba
/run/media/mmcblk0p1/Emulation/roms/fbneo
/run/media/mmcblk0p1/Emulation/roms/fds
/run/media/mmcblk0p1/Emulation/roms/flash
/run/media/mmcblk0p1/Emulation/roms/fmtowns
/run/media/mmcblk0p1/Emulation/roms/gameandwatch
/run/media/mmcblk0p1/Emulation/roms/gamecom
/run/media/mmcblk0p1/Emulation/roms/gamecube
/run/media/mmcblk0p1/Emulation/roms/gamegear
/run/media/mmcblk0p1/Emulation/roms/gb
/run/media/mmcblk0p1/Emulation/roms/gba
/run/media/mmcblk0p1/Emulation/roms/gbc
/run/media/mmcblk0p1/Emulation/roms/gc
/run/media/mmcblk0p1/Emulation/roms/genesis
/run/media/mmcblk0p1/Emulation/roms/genesiswide
/run/media/mmcblk0p1/Emulation/roms/gx4000
/run/media/mmcblk0p1/Emulation/roms/intellivision
/run/media/mmcblk0p1/Emulation/roms/j2me
/run/media/mmcblk0p1/Emulation/roms/kodi
/run/media/mmcblk0p1/Emulation/roms/lcdgames
/run/media/mmcblk0p1/Emulation/roms/lutris
/run/media/mmcblk0p1/Emulation/roms/lutro
/run/media/mmcblk0p1/Emulation/roms/lynx
/run/media/mmcblk0p1/Emulation/roms/macintosh
/run/media/mmcblk0p1/Emulation/roms/mame
/run/media/mmcblk0p1/Emulation/roms/mame-advmame
/run/media/mmcblk0p1/Emulation/roms/mame-mame4all
/run/media/mmcblk0p1/Emulation/roms/mame2003
/run/media/mmcblk0p1/Emulation/roms/mame2010
/run/media/mmcblk0p1/Emulation/roms/mamecurrent
/run/media/mmcblk0p1/Emulation/roms/mastersystem
/run/media/mmcblk0p1/Emulation/roms/megacd
/run/media/mmcblk0p1/Emulation/roms/megacdjp
/run/media/mmcblk0p1/Emulation/roms/megadrive
/run/media/mmcblk0p1/Emulation/roms/megadrivejp
/run/media/mmcblk0p1/Emulation/roms/megaduck
/run/media/mmcblk0p1/Emulation/roms/mess
/run/media/mmcblk0p1/Emulation/roms/model2
/run/media/mmcblk0p1/Emulation/roms/model3
/run/media/mmcblk0p1/Emulation/roms/moonlight
/run/media/mmcblk0p1/Emulation/roms/moto
/run/media/mmcblk0p1/Emulation/roms/msx
/run/media/mmcblk0p1/Emulation/roms/msx1
/run/media/mmcblk0p1/Emulation/roms/msx2
/run/media/mmcblk0p1/Emulation/roms/msxturbor
/run/media/mmcblk0p1/Emulation/roms/mugen
/run/media/mmcblk0p1/Emulation/roms/multivision
/run/media/mmcblk0p1/Emulation/roms/n3ds
/run/media/mmcblk0p1/Emulation/roms/n64
/run/media/mmcblk0p1/Emulation/roms/n64dd
/run/media/mmcblk0p1/Emulation/roms/naomi
/run/media/mmcblk0p1/Emulation/roms/naomigd
/run/media/mmcblk0p1/Emulation/roms/nds
/run/media/mmcblk0p1/Emulation/roms/neogeo
/run/media/mmcblk0p1/Emulation/roms/neogeocd
/run/media/mmcblk0p1/Emulation/roms/neogeocdjp
/run/media/mmcblk0p1/Emulation/roms/nes
/run/media/mmcblk0p1/Emulation/roms/ngp
/run/media/mmcblk0p1/Emulation/roms/ngpc
/run/media/mmcblk0p1/Emulation/roms/odyssey2
/run/media/mmcblk0p1/Emulation/roms/openbor
/run/media/mmcblk0p1/Emulation/roms/oric
/run/media/mmcblk0p1/Emulation/roms/palm
/run/media/mmcblk0p1/Emulation/roms/pc
/run/media/mmcblk0p1/Emulation/roms/pc88
/run/media/mmcblk0p1/Emulation/roms/pc98
/run/media/mmcblk0p1/Emulation/roms/pcengine
/run/media/mmcblk0p1/Emulation/roms/pcenginecd
/run/media/mmcblk0p1/Emulation/roms/pcfx
/run/media/mmcblk0p1/Emulation/roms/pico8
/run/media/mmcblk0p1/Emulation/roms/pokemini
/run/media/mmcblk0p1/Emulation/roms/ports
/run/media/mmcblk0p1/Emulation/roms/primehacks
/run/media/mmcblk0p1/Emulation/roms/ps2
/run/media/mmcblk0p1/Emulation/roms/ps3
/run/media/mmcblk0p1/Emulation/roms/ps4
/run/media/mmcblk0p1/Emulation/roms/psp
/run/media/mmcblk0p1/Emulation/roms/psvita
/run/media/mmcblk0p1/Emulation/roms/psx
/run/media/mmcblk0p1/Emulation/roms/pv1000
/run/media/mmcblk0p1/Emulation/roms/quake
/run/media/mmcblk0p1/Emulation/roms/quake_1
/run/media/mmcblk0p1/Emulation/roms/remoteplay
/run/media/mmcblk0p1/Emulation/roms/roms
/run/media/mmcblk0p1/Emulation/roms/samcoupe
/run/media/mmcblk0p1/Emulation/roms/satellaview
/run/media/mmcblk0p1/Emulation/roms/saturn
/run/media/mmcblk0p1/Emulation/roms/saturnjp
/run/media/mmcblk0p1/Emulation/roms/scripts
/run/media/mmcblk0p1/Emulation/roms/scummvm
/run/media/mmcblk0p1/Emulation/roms/sega32x
/run/media/mmcblk0p1/Emulation/roms/sega32xjp
/run/media/mmcblk0p1/Emulation/roms/sega32xna
/run/media/mmcblk0p1/Emulation/roms/segacd
/run/media/mmcblk0p1/Emulation/roms/sfc
/run/media/mmcblk0p1/Emulation/roms/sg-1000
/run/media/mmcblk0p1/Emulation/roms/sgb
/run/media/mmcblk0p1/Emulation/roms/snes
/run/media/mmcblk0p1/Emulation/roms/sneshd
/run/media/mmcblk0p1/Emulation/roms/snesna
/run/media/mmcblk0p1/Emulation/roms/solarus
/run/media/mmcblk0p1/Emulation/roms/spectravideo
/run/media/mmcblk0p1/Emulation/roms/steam
/run/media/mmcblk0p1/Emulation/roms/stratagus
/run/media/mmcblk0p1/Emulation/roms/sufami
/run/media/mmcblk0p1/Emulation/roms/supergrafx
/run/media/mmcblk0p1/Emulation/roms/supervision
/run/media/mmcblk0p1/Emulation/roms/switch
/run/media/mmcblk0p1/Emulation/roms/symbian
/run/media/mmcblk0p1/Emulation/roms/tanodragon
/run/media/mmcblk0p1/Emulation/roms/tg-cd
/run/media/mmcblk0p1/Emulation/roms/tg16
/run/media/mmcblk0p1/Emulation/roms/ti99
/run/media/mmcblk0p1/Emulation/roms/tic80
/run/media/mmcblk0p1/Emulation/roms/to8
/run/media/mmcblk0p1/Emulation/roms/trs-80
/run/media/mmcblk0p1/Emulation/roms/uzebox
/run/media/mmcblk0p1/Emulation/roms/vectrex
/run/media/mmcblk0p1/Emulation/roms/vic20
/run/media/mmcblk0p1/Emulation/roms/videopac
/run/media/mmcblk0p1/Emulation/roms/virtualboy
/run/media/mmcblk0p1/Emulation/roms/vsmile
/run/media/mmcblk0p1/Emulation/roms/wasm4
/run/media/mmcblk0p1/Emulation/roms/wii
/run/media/mmcblk0p1/Emulation/roms/wiiu
/run/media/mmcblk0p1/Emulation/roms/wonderswan
/run/media/mmcblk0p1/Emulation/roms/wonderswancolor
/run/media/mmcblk0p1/Emulation/roms/x1
/run/media/mmcblk0p1/Emulation/roms/x68000
/run/media/mmcblk0p1/Emulation/roms/xbox
/run/media/mmcblk0p1/Emulation/roms/xbox360
/run/media/mmcblk0p1/Emulation/roms/zmachine
/run/media/mmcblk0p1/Emulation/roms/zx81
/run/media/mmcblk0p1/Emulation/roms/zxspectrum
10 changes: 10 additions & 0 deletions configs/org.pegasus_frontend.Pegasus/pegasus-frontend/settings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
general.theme: themes/atari-50-menu-pegasus/
general.verify-files: false
general.input-mouse-support: true
general.fullscreen: true
providers.steam.enabled: false
providers.gog.enabled: false
providers.es2.enabled: false
providers.logiqx.enabled: false
providers.lutris.enabled: false
providers.skraper.enabled: true
76 changes: 76 additions & 0 deletions configs/steam-rom-manager/userData/parsers/emudeck/0_pegasus.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"parserType": "Glob",
"configTitle": "Pegasus - Pegasus Frontend",
"steamCategory": "${Emulation}",
"executableArgs": "",
"executableModifier": "\"${exePath}\"",
"romDirectory": "/run/media/mmcblk0p1/Emulation/tools/",
"steamDirectory": "${steamdirglobal}",
"startInDirectory": "",
"imageProviders": ["SteamGridDB"],
"titleModifier": "Pegasus Frontend",
"onlineImageQueries": "${${fuzzyTitle}}",
"imagePool": "${fuzzyTitle}",
"defaultImage": "",
"defaultTallImage": "",
"defaultHeroImage": "",
"defaultLogoImage": "",
"defaultIcon": "/home/deck/.config/EmuDeck/backend/configs/steam-rom-manager/userData/img/default/icon.png",
"localImages": "",
"localTallImages": "",
"localHeroImages": "",
"localLogoImages": "",
"localIcons": "",
"disabled": false,
"executable": {
"path": "/run/media/mmcblk0p1/Emulation/tools/launchers/pegasus-frontend.sh",
"shortcutPassthrough": false,
"appendArgsToExecutable": true
},
"userAccounts": {
"specifiedAccounts": "",
"skipWithMissingDataDir": true,
"useCredentials": true
},
"parserInputs": {
"glob": "${title}@(.AppImage)"
},
"titleFromVariable": {
"limitToGroups": "",
"caseInsensitiveVariables": false,
"skipFileIfVariableWasNotFound": false,
"tryToMatchTitle": false
},
"fuzzyMatch": {
"replaceDiacritics": true,
"removeCharacters": true,
"removeBrackets": true
},
"parserId": "164824496516097458",
"version": 13,
"controllers": {
"ps4": null,
"ps5": null,
"xbox360": null,
"xboxone": null,
"switch_joycon_left": null,
"switch_joycon_right": null,
"switch_pro": null,
"neptune": {
"title": "EmuDeck - EmulationStation-DE",
"mappingId": "emulationstation-de_controller_config.vdf",
"profileType": "template"
}
},
"imageProviderAPIs": {
"SteamGridDB": {
"nsfw": false,
"humor": false,
"imageMotionTypes": ["static"],
"styles": [],
"stylesHero": [],
"stylesLogo": [],
"stylesIcon": []
}
}
}
7 changes: 4 additions & 3 deletions darwin/functions/overrides/configEmuFP.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
configEmuFP(){

#!/bin/bash
configEmuFP(){

local name=$1
setMSG "Updating $name Config"
setMSG "Updating $name Config"
rsync -avhpL --mkpath "$EMUDECKGIT/darwin/configs/${name}/" "$HOME/Library/Application Support/${name}/"

}
79 changes: 79 additions & 0 deletions functions/ToolScripts/emuDeckPegasus.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
#!/bin/bash
#variables
Pegasus_toolName="Pegasus Frontend"
Pegasus_emuPath="org.pegasus_frontend.Pegasus"
Pegasus_path="$HOME/.var/app/$Pegasus_emuPath"
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(){
echo "NYI"
}

#Install
Pegasus_install(){

setMSG "Installing $Pegasus_toolName"

local showProgress="$1"

installEmuFP "${Pegasus_toolName}" "${Pegasus_emuPath}"
flatpak override "${Pegasus_emuPath}" --filesystem=host --user
}

#ApplyInitialSettings
Pegasus_init(){
setMSG "Setting up $Pegasus_toolName"

rsync -avhp --mkpath "$EMUDECKGIT/configs/$Pegasus_emuPath/" "$Pegasus_path/"

#find /Emulation -type f -name "metadata.txt" -exec sed -i 's/buscar/reemplazar/g' {} \;

#metadata and cores paths
rsync -r "$EMUDECKGIT/roms/" "$romsPath"
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"

#Pegasus_addCustomSystems
#Pegasus_setEmulationFolder
#Pegasus_setDefaultEmulators
Pegasus_applyTheme "$pegasusTheme"
}


Pegasus_resetConfig(){
Pegasus_init &>/dev/null && echo "true" || echo "false"
}

Pegasus_update(){
Pegasus_init &>/dev/null && echo "true" || echo "false"
}

Pegasus_addCustomSystems(){
echo "NYI"
}

Pegasus_applyTheme(){
pegasusTheme=$1
changeLine "general.theme:" " general.theme: themes\$pegasusTheme"
sed -i "s|/run/media/mmcblk0p1/Emulation|${emulationPath}|g" "$Pegasus_dir_file"
}

Pegasus_setDefaultEmulators(){
echo "NYI"
}

Pegasus_setEmu(){
echo "NYI"
}

Pegasus_IsInstalled(){
isFpInstalled "$Pegasus_emuPath"
}

Pegasus_uninstall(){
flatpak uninstall "$Pegasus_emuPath" --user -y
}
9 changes: 5 additions & 4 deletions functions/all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ source "$EMUDECKGIT"/functions/appImageInit.sh

#toolScripts
source "$EMUDECKGIT"/functions/ToolScripts/emuDeckESDE.sh
source "$EMUDECKGIT"/functions/ToolScripts/emuDeckPegasus.sh
source "$EMUDECKGIT"/functions/ToolScripts/emuDeckPlugins.sh
source "$EMUDECKGIT"/functions/ToolScripts/emuDeckSRM.sh
source "$EMUDECKGIT"/functions/ToolScripts/emuDeckCHD.sh
Expand All @@ -63,7 +64,7 @@ source "$EMUDECKGIT"/functions/EmuScripts/emuDeckCemuNative.sh
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckPCSX2.sh
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckRPCS3.sh
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckCitra.sh
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckDolphin.sh
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckDolphin.sh
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckPrimehack.sh
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckRetroArch.sh
source "$EMUDECKGIT"/functions/EmuScripts/emuDeckRyujinx.sh
Expand Down Expand Up @@ -93,8 +94,8 @@ source "$EMUDECKGIT"/functions/RemotePlayClientScripts/remotePlayGreenlight.sh

# Darwin ovewrites
if [ "$system" == "darwin" ]; then

source "$EMUDECKGIT/darwin/functions/helperFunctions.sh"
source "$EMUDECKGIT/darwin/functions/overrides.sh"
fi

fi
Loading

0 comments on commit 960d1ef

Please sign in to comment.