mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2024-05-20 05:10:46 -04:00
Pegasus: XBLA and Desktop shortcut (#1120)
This commit is contained in:
parent
4d30536051
commit
cae445fc05
|
@ -25,9 +25,12 @@ pegasus_install(){
|
|||
if safeDownload "$name" "$url" "$HOME/Applications/$fileName" "$showProgress"; then
|
||||
chmod +x "$HOME/Applications/$fileName"
|
||||
pegasus_init
|
||||
pegasus_customDesktopShortcut
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
||||
}
|
||||
|
||||
#ApplyInitialSettings
|
||||
|
@ -49,6 +52,7 @@ pegasus_init(){
|
|||
if [[ "$systemPath" == "$romsPath/model2" || "$systemPath" == "$romsPath/xbox360" || "$systemPath" == "$romsPath/wiiu" ]]; then
|
||||
rm -rf "$systemPath/roms/media" &> /dev/null;
|
||||
rm -rf "$romsPath/xbox360/roms/xbla/media" &> /dev/null;
|
||||
rm -rf "$romsPath/xbox360/roms/xbla/metadata.txt" &> /dev/null;
|
||||
else
|
||||
rm -rf "$systemPath/media" &> /dev/null;
|
||||
fi
|
||||
|
@ -83,7 +87,6 @@ pegasus_init(){
|
|||
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
|
||||
ln -s "$toolsPath/downloaded_media/$system/screenshots/" "$toolsPath/downloaded_media/$system/screenshot" &> /dev/null
|
||||
cp -P "$romsPath/xbox360/roms/media" "$romsPath/xbox360/roms/xbla"
|
||||
else
|
||||
system=$(echo "$systemPath" | sed 's/.*\/\([^\/]*\)\/\?$/\1/')
|
||||
ln -s "$toolsPath/downloaded_media/$system" "$systemPath/media" &> /dev/null
|
||||
|
@ -140,6 +143,14 @@ pegasus_applyTheme(){
|
|||
|
||||
}
|
||||
|
||||
pegasus_customDesktopShortcut(){
|
||||
|
||||
createDesktopShortcut "$HOME/.local/share/applications/Pegasus.desktop" \
|
||||
"Pegasus Binary" \
|
||||
"${toolsPath}/launchers/pegasus/pegasus-frontend.sh" \
|
||||
"false"
|
||||
}
|
||||
|
||||
pegasus_setDefaultEmulators(){
|
||||
echo "NYI"
|
||||
}
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
collection: Microsoft Xbox 360
|
||||
shortname: xbox360
|
||||
extensions: iso, ISO, xex, XEX, zar, ZAR
|
||||
launch: /run/media/mmcblk0p1/Emulation/tools/launchers/xenia.sh "Z:{file.path}"
|
|
@ -496,6 +496,7 @@ fi
|
|||
rm -rf "$HOME/.var/app/org.pegasus_frontend.Pegasus/" &> /dev/null
|
||||
rm -rf $HOME/Applications/pegasus-fe &> /dev/null
|
||||
rm -rf $HOME/.config/pegasus-frontend &> /dev/null
|
||||
rm -rf "$HOME/.local/share/applications/Pegasus.desktop" &> /dev/null
|
||||
|
||||
echo "90"
|
||||
echo "# Removing EmuDeck folders";
|
||||
|
|
Loading…
Reference in a new issue