mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2024-05-20 05:10:46 -04:00
parent
2128be0ab8
commit
24582eeb74
|
@ -9,7 +9,7 @@ darwin_installEmuDMG(){
|
||||||
local showProgress="$4"
|
local showProgress="$4"
|
||||||
local lastVerFile="$5"
|
local lastVerFile="$5"
|
||||||
local latestVer="$6"
|
local latestVer="$6"
|
||||||
if [[ "$altName" = "" ]]; then
|
if [[ "$altName" == "" ]]; then
|
||||||
altName="$name"
|
altName="$name"
|
||||||
fi
|
fi
|
||||||
echo "$name"
|
echo "$name"
|
||||||
|
@ -58,7 +58,7 @@ installEmuZip(){
|
||||||
local showProgress="$4"
|
local showProgress="$4"
|
||||||
local lastVerFile="$5"
|
local lastVerFile="$5"
|
||||||
local latestVer="$6"
|
local latestVer="$6"
|
||||||
if [[ "$altName" = "" ]]; then
|
if [[ "$altName" == "" ]]; then
|
||||||
altName="$name"
|
altName="$name"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
ESDE_SetAppImageURLS() {
|
ESDE_SetAppImageURLS() {
|
||||||
local json="$(curl -s $ESDE_releaseJSON)"
|
local json="$(curl -s $ESDE_releaseJSON)"
|
||||||
|
|
||||||
if [ appleChip = 'arm64' ]; then
|
if [ appleChip == 'arm64' ]; then
|
||||||
ESDE_releaseURL=$(echo "$json" | jq -r '.stable.packages[] | select(.name = "macOSApple") | .url')
|
ESDE_releaseURL=$(echo "$json" | jq -r '.stable.packages[] | select(.name == "macOSApple") | .url')
|
||||||
else
|
else
|
||||||
ESDE_releaseURL=$(echo "$json" | jq -r '.stable.packages[] | select(.name = "macOSApple") | .url')
|
ESDE_releaseURL=$(echo "$json" | jq -r '.stable.packages[] | select(.name == "macOSApple") | .url')
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
# ESDE_releaseURL=$(echo "$json" | jq -r '.stable.packages[] | select(.name = "LinuxSteamDeckAppImage") | .url')
|
# ESDE_releaseURL=$(echo "$json" | jq -r '.stable.packages[] | select(.name == "LinuxSteamDeckAppImage") | .url')
|
||||||
# ESDE_releaseMD5=$(echo "$json" | jq -r '.stable.packages[] | select(.name = "LinuxSteamDeckAppImage") | .md5')
|
# ESDE_releaseMD5=$(echo "$json" | jq -r '.stable.packages[] | select(.name == "LinuxSteamDeckAppImage") | .md5')
|
||||||
# ESDE_prereleaseURL=$(echo "$json" | jq -r '.prerelease.packages[] | select(.name = "LinuxSteamDeckAppImage") | .url')
|
# ESDE_prereleaseURL=$(echo "$json" | jq -r '.prerelease.packages[] | select(.name == "LinuxSteamDeckAppImage") | .url')
|
||||||
# ESDE_prereleaseMD5=$(echo "$json" | jq -r '.prerelease.packages[] | select(.name = "LinuxSteamDeckAppImage") | .md5')
|
# ESDE_prereleaseMD5=$(echo "$json" | jq -r '.prerelease.packages[] | select(.name == "LinuxSteamDeckAppImage") | .md5')
|
||||||
}
|
}
|
|
@ -6,7 +6,7 @@ safeDownload() {
|
||||||
local outFile="$3"
|
local outFile="$3"
|
||||||
local showProgress="$4"
|
local showProgress="$4"
|
||||||
local headers="$5"
|
local headers="$5"
|
||||||
if [ "$showProgress" = "true" ]; then
|
if [ "$showProgress" == "true" ]; then
|
||||||
echo "safeDownload()"
|
echo "safeDownload()"
|
||||||
echo "- $name"
|
echo "- $name"
|
||||||
echo "- $url"
|
echo "- $url"
|
||||||
|
@ -21,7 +21,7 @@ safeDownload() {
|
||||||
httpCode="${returnCodes%$'\2'*}"
|
httpCode="${returnCodes%$'\2'*}"
|
||||||
exitCode="${returnCodes#*$'\2'}"
|
exitCode="${returnCodes#*$'\2'}"
|
||||||
|
|
||||||
if [ "$httpCode" = "200" ] && [ "$exitCode" = "0" ]; then
|
if [ "$httpCode" = "200" ] && [ "$exitCode" == "0" ]; then
|
||||||
#echo "$name downloaded successfully";
|
#echo "$name downloaded successfully";
|
||||||
mv -v "$outFile.temp" "$outFile" &>/dev/null
|
mv -v "$outFile.temp" "$outFile" &>/dev/null
|
||||||
volumeName=$(yes | hdiutil attach "$outFile" | grep -o '/Volumes/.*$')
|
volumeName=$(yes | hdiutil attach "$outFile" | grep -o '/Volumes/.*$')
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
. "$HOME/.config/EmuDeck/backend/functions/all.sh"
|
. "$HOME/.config/EmuDeck/backend/functions/all.sh"
|
||||||
if [ "$?" = "1" ]; then
|
if [ "$?" == "1" ]; then
|
||||||
echo "functions could not be loaded."
|
echo "functions could not be loaded."
|
||||||
zenity --error \
|
zenity --error \
|
||||||
--text="EmuDeck Functions could not be loaded. Please re-run Emudeck install." 2>/dev/null
|
--text="EmuDeck Functions could not be loaded. Please re-run Emudeck install." 2>/dev/null
|
||||||
|
@ -8,43 +8,43 @@ if [ "$?" = "1" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
emuTable=()
|
emuTable=()
|
||||||
if [ "$(RetroArch_IsInstalled)" = "true" ]; then
|
if [ "$(RetroArch_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "Multiple" "RetroArch")
|
emuTable+=(TRUE "Multiple" "RetroArch")
|
||||||
fi
|
fi
|
||||||
if [ "$(Primehack_IsInstalled)" = "true" ]; then
|
if [ "$(Primehack_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "Metroid Prime" "PrimeHack")
|
emuTable+=(TRUE "Metroid Prime" "PrimeHack")
|
||||||
fi
|
fi
|
||||||
if [ "$(RPCS3_IsInstalled)" = "true" ]; then
|
if [ "$(RPCS3_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "PS3" "RPCS3")
|
emuTable+=(TRUE "PS3" "RPCS3")
|
||||||
fi
|
fi
|
||||||
if [ "$(Citra_IsInstalled)" = "true" ]; then
|
if [ "$(Citra_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "3DS" "Citra")
|
emuTable+=(TRUE "3DS" "Citra")
|
||||||
fi
|
fi
|
||||||
if [ "$(Dolphin_IsInstalled)" = "true" ]; then
|
if [ "$(Dolphin_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "GC/Wii" "Dolphin")
|
emuTable+=(TRUE "GC/Wii" "Dolphin")
|
||||||
fi
|
fi
|
||||||
if [ "$(DuckStation_IsInstalled)" = "true" ]; then
|
if [ "$(DuckStation_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "PSX" "DuckStation")
|
emuTable+=(TRUE "PSX" "DuckStation")
|
||||||
fi
|
fi
|
||||||
if [ "$(PPSSPP_IsInstalled)" = "true" ]; then
|
if [ "$(PPSSPP_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "PSP" "PPSSPP")
|
emuTable+=(TRUE "PSP" "PPSSPP")
|
||||||
fi
|
fi
|
||||||
if [ "$(Xemu_IsInstalled)" = "true" ]; then
|
if [ "$(Xemu_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "XBox" "Xemu")
|
emuTable+=(TRUE "XBox" "Xemu")
|
||||||
fi
|
fi
|
||||||
if [ "$(ScummVM_IsInstalled)" = "true" ]; then
|
if [ "$(ScummVM_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "Scumm/DOS" "ScummVM")
|
emuTable+=(TRUE "Scumm/DOS" "ScummVM")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(RMG_IsInstalled)" = "true" ]; then
|
if [ "$(RMG_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "N64" "RMG")
|
emuTable+=(TRUE "N64" "RMG")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(melonDS_IsInstalled)" = "true" ]; then
|
if [ "$(melonDS_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "DS" "melonDS")
|
emuTable+=(TRUE "DS" "melonDS")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(ares_IsInstalled)" = "true" ]; then
|
if [ "$(ares_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "Multi-System Emulator" "ares")
|
emuTable+=(TRUE "Multi-System Emulator" "ares")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -75,92 +75,92 @@ if [ "${#emuTable[@]}" -gt 0 ]; then
|
||||||
|
|
||||||
echo "User selected: $emusToInstall"
|
echo "User selected: $emusToInstall"
|
||||||
|
|
||||||
if [[ "$emusToInstall" = *"RetroArch"* ]]; then
|
if [[ "$emusToInstall" == *"RetroArch"* ]]; then
|
||||||
doUpdateRA=true
|
doUpdateRA=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"PrimeHack"* ]]; then
|
if [[ "$emusToInstall" == *"PrimeHack"* ]]; then
|
||||||
doUpdatePrimeHack=true
|
doUpdatePrimeHack=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"RPCS3"* ]]; then
|
if [[ "$emusToInstall" == *"RPCS3"* ]]; then
|
||||||
doUpdateRPCS3=true
|
doUpdateRPCS3=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"Citra"* ]]; then
|
if [[ "$emusToInstall" == *"Citra"* ]]; then
|
||||||
doUpdateCitra=true
|
doUpdateCitra=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"Dolphin"* ]]; then
|
if [[ "$emusToInstall" == *"Dolphin"* ]]; then
|
||||||
doUpdateDolphin=true
|
doUpdateDolphin=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"DuckStation"* ]]; then
|
if [[ "$emusToInstall" == *"DuckStation"* ]]; then
|
||||||
doUpdateDuck=true
|
doUpdateDuck=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"PPSSPP"* ]]; then
|
if [[ "$emusToInstall" == *"PPSSPP"* ]]; then
|
||||||
doUpdatePPSSPP=true
|
doUpdatePPSSPP=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"Xemu"* ]]; then
|
if [[ "$emusToInstall" == *"Xemu"* ]]; then
|
||||||
doUpdateXemu=true
|
doUpdateXemu=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"ScummVM"* ]]; then
|
if [[ "$emusToInstall" == *"ScummVM"* ]]; then
|
||||||
doUpdateScummVM=true
|
doUpdateScummVM=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"MelonDS"* ]]; then
|
if [[ "$emusToInstall" == *"MelonDS"* ]]; then
|
||||||
doUpdateMelonDS=true
|
doUpdateMelonDS=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"RMG"* ]]; then
|
if [[ "$emusToInstall" == *"RMG"* ]]; then
|
||||||
doUpdateRMG=true
|
doUpdateRMG=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"ares"* ]]; then
|
if [[ "$emusToInstall" == *"ares"* ]]; then
|
||||||
doUpdateares=true
|
doUpdateares=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
(
|
(
|
||||||
progressInstalled=""
|
progressInstalled=""
|
||||||
if [ "$doUpdateRA" = "true" ]; then
|
if [ "$doUpdateRA" == "true" ]; then
|
||||||
echo "###Updating RetroArch..."
|
echo "###Updating RetroArch..."
|
||||||
(updateEmuFP "RetroArch" "org.libretro.RetroArch" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|RetroArch" && echo "&&&$progressInstalled"
|
(updateEmuFP "RetroArch" "org.libretro.RetroArch" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|RetroArch" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdatePrimeHack" = "true" ]; then
|
if [ "$doUpdatePrimeHack" == "true" ]; then
|
||||||
echo "###Updating PrimeHack..."
|
echo "###Updating PrimeHack..."
|
||||||
(updateEmuFP "PrimeHack" "io.github.shiiion.primehack" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|PrimeHack" && echo "&&&$progressInstalled"
|
(updateEmuFP "PrimeHack" "io.github.shiiion.primehack" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|PrimeHack" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdateRPCS3" = "true" ]; then
|
if [ "$doUpdateRPCS3" == "true" ]; then
|
||||||
echo "###Updating RPCS3..."
|
echo "###Updating RPCS3..."
|
||||||
(updateEmuFP "RPCS3" "net.rpcs3.RPCS3" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|RPCS3" && echo "&&&$progressInstalled"
|
(updateEmuFP "RPCS3" "net.rpcs3.RPCS3" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|RPCS3" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdateCitra" = "true" ]; then
|
if [ "$doUpdateCitra" == "true" ]; then
|
||||||
echo "###Updating Citra..."
|
echo "###Updating Citra..."
|
||||||
(updateEmuFP "Citra" "org.citra_emu.citra" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|Citra" && echo "&&&$progressInstalled"
|
(updateEmuFP "Citra" "org.citra_emu.citra" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|Citra" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdateDolphin" = "true" ]; then
|
if [ "$doUpdateDolphin" == "true" ]; then
|
||||||
echo "###Updating Dolphin..."
|
echo "###Updating Dolphin..."
|
||||||
(updateEmuFP "dolphin-emu" "org.DolphinEmu.dolphin-emu" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|Dolphin" && echo "&&&$progressInstalled"
|
(updateEmuFP "dolphin-emu" "org.DolphinEmu.dolphin-emu" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|Dolphin" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdateDuck" = "true" ]; then
|
if [ "$doUpdateDuck" == "true" ]; then
|
||||||
echo "###Updating DuckStation..."
|
echo "###Updating DuckStation..."
|
||||||
(updateEmuFP "DuckStation" "org.duckstation.DuckStation" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|DuckStation" && echo "&&&$progressInstalled"
|
(updateEmuFP "DuckStation" "org.duckstation.DuckStation" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|DuckStation" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdatePPSSPP" = "true" ]; then
|
if [ "$doUpdatePPSSPP" == "true" ]; then
|
||||||
echo "###Updating PPSSPP..."
|
echo "###Updating PPSSPP..."
|
||||||
(updateEmuFP "PPSSPP" "org.ppsspp.PPSSPP" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|PPSSPP" && echo "&&&$progressInstalled"
|
(updateEmuFP "PPSSPP" "org.ppsspp.PPSSPP" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|PPSSPP" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdateXemu" = "true" ]; then
|
if [ "$doUpdateXemu" == "true" ]; then
|
||||||
echo "###Updating Xemu..."
|
echo "###Updating Xemu..."
|
||||||
(updateEmuFP "Xemu-Emu" "app.xemu.xemu" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|Xemu" && echo "&&&$progressInstalled"
|
(updateEmuFP "Xemu-Emu" "app.xemu.xemu" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|Xemu" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdateScummVM" = "true" ]; then
|
if [ "$doUpdateScummVM" == "true" ]; then
|
||||||
echo "###Updating ScummVM..."
|
echo "###Updating ScummVM..."
|
||||||
(updateEmuFP "ScummVM" "org.scummvm.ScummVM" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|ScummVM" && echo "&&&$progressInstalled"
|
(updateEmuFP "ScummVM" "org.scummvm.ScummVM" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|ScummVM" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdateMelonDS" = "true" ]; then
|
if [ "$doUpdateMelonDS" == "true" ]; then
|
||||||
echo "###Updating melonDS..."
|
echo "###Updating melonDS..."
|
||||||
(updateEmuFP "melonDS" "net.kuribo64.melonDS" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|melonDS" && echo "&&&$progressInstalled"
|
(updateEmuFP "melonDS" "net.kuribo64.melonDS" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|melonDS" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$doUpdateRMG" = "true" ]; then
|
if [ "$doUpdateRMG" == "true" ]; then
|
||||||
echo "###Updating RMG..."
|
echo "###Updating RMG..."
|
||||||
(updateEmuFP "RMG" "com.github.Rosalie241.RMG" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|RMG" && echo "&&&$progressInstalled"
|
(updateEmuFP "RMG" "com.github.Rosalie241.RMG" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|RMG" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$doUpdateares" = "true" ]; then
|
if [ "$doUpdateares" == "true" ]; then
|
||||||
echo "###Updating ares..."
|
echo "###Updating ares..."
|
||||||
(updateEmuFP "ares" "dev.ares.ares" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|ares" && echo "&&&$progressInstalled"
|
(updateEmuFP "ares" "dev.ares.ares" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|ares" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -39,7 +39,7 @@ Cemu_install(){
|
||||||
sed -i "s|/run/media/mmcblk0p1/Emulation/tools|${toolsPath}|g" "${toolsPath}/launchers/cemu.sh"
|
sed -i "s|/run/media/mmcblk0p1/Emulation/tools|${toolsPath}|g" "${toolsPath}/launchers/cemu.sh"
|
||||||
sed -i "s|/run/media/mmcblk0p1/Emulation/roms|${romsPath}|" "${toolsPath}/launchers/cemu.sh"
|
sed -i "s|/run/media/mmcblk0p1/Emulation/roms|${romsPath}|" "${toolsPath}/launchers/cemu.sh"
|
||||||
|
|
||||||
# if [[ "$launchLine" = *"PROTONLAUNCH"* ]]; then
|
# if [[ "$launchLine" == *"PROTONLAUNCH"* ]]; then
|
||||||
# changeLine '"${PROTONLAUNCH}"' "$launchLine" "${toolsPath}/launchers/cemu.sh"
|
# changeLine '"${PROTONLAUNCH}"' "$launchLine" "${toolsPath}/launchers/cemu.sh"
|
||||||
# fi
|
# fi
|
||||||
chmod +x "${toolsPath}/launchers/cemu.sh"
|
chmod +x "${toolsPath}/launchers/cemu.sh"
|
||||||
|
@ -92,7 +92,7 @@ Cemu_setEmulationFolder(){
|
||||||
#WindowsRomPath=${echo "z:${romsPath}/wiiu/roms" | sed 's/\//\\/g'}
|
#WindowsRomPath=${echo "z:${romsPath}/wiiu/roms" | sed 's/\//\\/g'}
|
||||||
#gamePathEntryFound=$(grep -rnw "$Cemu_cemuSettings" -e "${WindowsRomPath}")
|
#gamePathEntryFound=$(grep -rnw "$Cemu_cemuSettings" -e "${WindowsRomPath}")
|
||||||
gamePathEntryFound=$(grep -rnw "$Cemu_cemuSettings" -e "z:${romsPath}/wiiu/roms")
|
gamePathEntryFound=$(grep -rnw "$Cemu_cemuSettings" -e "z:${romsPath}/wiiu/roms")
|
||||||
if [[ $gamePathEntryFound = '' ]]; then
|
if [[ $gamePathEntryFound == '' ]]; then
|
||||||
#xmlstarlet ed --inplace --subnode "content/GamePaths" --type elem -n Entry -v "${WindowsRomPath}" "$Cemu_cemuSettings"
|
#xmlstarlet ed --inplace --subnode "content/GamePaths" --type elem -n Entry -v "${WindowsRomPath}" "$Cemu_cemuSettings"
|
||||||
xmlstarlet ed --inplace --subnode "content/GamePaths" --type elem -n Entry -v "z:${romsPath}/wiiu/roms" "$Cemu_cemuSettings"
|
xmlstarlet ed --inplace --subnode "content/GamePaths" --type elem -n Entry -v "z:${romsPath}/wiiu/roms" "$Cemu_cemuSettings"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -150,7 +150,7 @@ CemuNative_functions () {
|
||||||
#gamepath
|
#gamepath
|
||||||
gamePathEntryFound="$( xmlstarlet sel -t -m "content/GamePaths/Entry" -v . -n "${CemuNative[configFile]}" )"
|
gamePathEntryFound="$( xmlstarlet sel -t -m "content/GamePaths/Entry" -v . -n "${CemuNative[configFile]}" )"
|
||||||
|
|
||||||
if [[ ! "${gamePathEntryFound}" = *"${romsPath}/wiiu/roms"* ]]; then
|
if [[ ! "${gamePathEntryFound}" == *"${romsPath}/wiiu/roms"* ]]; then
|
||||||
xmlstarlet ed --inplace --subnode "content/GamePaths" --type elem -n Entry -v "${romsPath}/wiiu/roms/" "${CemuNative[configFile]}" #while we use both native and proton, i don't want to change the wiiu folder structure.
|
xmlstarlet ed --inplace --subnode "content/GamePaths" --type elem -n Entry -v "${romsPath}/wiiu/roms/" "${CemuNative[configFile]}" #while we use both native and proton, i don't want to change the wiiu folder structure.
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ CemuNative_functions () {
|
||||||
mlcEntryFound="$( xmlstarlet sel -t -m "content/mlc_path" -v . -n "${CemuNative[configFile]}" )"
|
mlcEntryFound="$( xmlstarlet sel -t -m "content/mlc_path" -v . -n "${CemuNative[configFile]}" )"
|
||||||
local mlcPath="${romsPath}/wiiu/mlc01"
|
local mlcPath="${romsPath}/wiiu/mlc01"
|
||||||
|
|
||||||
if [[ ! "${mlcEntryFound}" = *"${mlcPath}"* ]]; then
|
if [[ ! "${mlcEntryFound}" == *"${mlcPath}"* ]]; then
|
||||||
xmlstarlet ed --inplace -u "content/mlc_path" -v "${romsPath}/wiiu/mlc01" "${CemuNative[configFile]}" #while we use both native and proton, i don't want to change the wiiu folder structure.
|
xmlstarlet ed --inplace -u "content/mlc_path" -v "${romsPath}/wiiu/mlc01" "${CemuNative[configFile]}" #while we use both native and proton, i don't want to change the wiiu folder structure.
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -180,7 +180,7 @@ Dolphin_DynamicInputTextures(){
|
||||||
}
|
}
|
||||||
|
|
||||||
Dolphin_setCustomizations(){
|
Dolphin_setCustomizations(){
|
||||||
if [ "$arDolphin" = 169 ]; then
|
if [ "$arDolphin" == 169 ]; then
|
||||||
Dolphin_wideScreenOn
|
Dolphin_wideScreenOn
|
||||||
else
|
else
|
||||||
Dolphin_wideScreenOff
|
Dolphin_wideScreenOff
|
||||||
|
|
|
@ -191,7 +191,7 @@ DuckStation_retroAchievementsSetLogin(){
|
||||||
|
|
||||||
DuckStation_setRetroAchievements(){
|
DuckStation_setRetroAchievements(){
|
||||||
DuckStation_retroAchievementsSetLogin
|
DuckStation_retroAchievementsSetLogin
|
||||||
if [ "$achievementsHardcore" = "true" ]; then
|
if [ "$achievementsHardcore" == "true" ]; then
|
||||||
DuckStation_retroAchievementsHardCoreOn
|
DuckStation_retroAchievementsHardCoreOn
|
||||||
else
|
else
|
||||||
DuckStation_retroAchievementsHardCoreOff
|
DuckStation_retroAchievementsHardCoreOff
|
||||||
|
@ -199,7 +199,7 @@ DuckStation_setRetroAchievements(){
|
||||||
}
|
}
|
||||||
|
|
||||||
DuckStation_setCustomizations(){
|
DuckStation_setCustomizations(){
|
||||||
if [ "$arClassic3D" = 169 ]; then
|
if [ "$arClassic3D" == 169 ]; then
|
||||||
DuckStation_wideScreenOn
|
DuckStation_wideScreenOn
|
||||||
else
|
else
|
||||||
DuckStation_wideScreenOff
|
DuckStation_wideScreenOff
|
||||||
|
|
|
@ -128,7 +128,7 @@ Flycast_finalize(){
|
||||||
}
|
}
|
||||||
|
|
||||||
Flycast_IsInstalled(){
|
Flycast_IsInstalled(){
|
||||||
if [ "$(flatpak --columns=app list | grep "$Flycast_emuPath")" = "$Flycast_emuPath" ]; then
|
if [ "$(flatpak --columns=app list | grep "$Flycast_emuPath")" == "$Flycast_emuPath" ]; then
|
||||||
echo "true"
|
echo "true"
|
||||||
else
|
else
|
||||||
echo "false"
|
echo "false"
|
||||||
|
|
|
@ -313,7 +313,7 @@ PCSX2QT_retroAchievementsSetLogin() {
|
||||||
|
|
||||||
PCSX2QT_setRetroAchievements(){
|
PCSX2QT_setRetroAchievements(){
|
||||||
PCSX2QT_retroAchievementsSetLogin
|
PCSX2QT_retroAchievementsSetLogin
|
||||||
if [ "$achievementsHardcore" = "true" ]; then
|
if [ "$achievementsHardcore" == "true" ]; then
|
||||||
PCSX2QT_retroAchievementsHardCoreOn
|
PCSX2QT_retroAchievementsHardCoreOn
|
||||||
else
|
else
|
||||||
PCSX2QT_retroAchievementsHardCoreOff
|
PCSX2QT_retroAchievementsHardCoreOff
|
||||||
|
|
|
@ -25,7 +25,7 @@ RPCS3_install(){
|
||||||
|
|
||||||
if safeDownload "$RPCS3_remuName" "$RPCS3_releaseURL" "$RPCS3_emuPath" "$showProgress"; then
|
if safeDownload "$RPCS3_remuName" "$RPCS3_releaseURL" "$RPCS3_emuPath" "$showProgress"; then
|
||||||
RPCS3_md5sum=($(md5sum $RPCS3_emuPath)) # get first element
|
RPCS3_md5sum=($(md5sum $RPCS3_emuPath)) # get first element
|
||||||
if [ "$RPCS3_md5sum" = "$RPCS3_releaseMD5" ]; then
|
if [ "$RPCS3_md5sum" == "$RPCS3_releaseMD5" ]; then
|
||||||
echo "RPCS3 PASSED HASH CHECK."
|
echo "RPCS3 PASSED HASH CHECK."
|
||||||
chmod +x "$RPCS3_emuPath"
|
chmod +x "$RPCS3_emuPath"
|
||||||
else
|
else
|
||||||
|
|
|
@ -87,7 +87,7 @@ RetroArch_setCustomizations(){
|
||||||
RetroArch_genesis_ar43
|
RetroArch_genesis_ar43
|
||||||
RetroArch_segacd_ar43
|
RetroArch_segacd_ar43
|
||||||
RetroArch_sega32x_ar43
|
RetroArch_sega32x_ar43
|
||||||
if [ "$RABezels" = true ] && [ "$doSetupRA" = "true" ]; then
|
if [ "$RABezels" == true ] && [ "$doSetupRA" == "true" ]; then
|
||||||
RetroArch_mastersystem_bezelOn
|
RetroArch_mastersystem_bezelOn
|
||||||
RetroArch_genesis_bezelOn
|
RetroArch_genesis_bezelOn
|
||||||
RetroArch_segacd_bezelOn
|
RetroArch_segacd_bezelOn
|
||||||
|
@ -109,7 +109,7 @@ RetroArch_setCustomizations(){
|
||||||
*)
|
*)
|
||||||
RetroArch_snes_ar43
|
RetroArch_snes_ar43
|
||||||
RetroArch_nes_ar43
|
RetroArch_nes_ar43
|
||||||
if [ "$RABezels" = true ] && [ "$doSetupRA" = "true" ]; then
|
if [ "$RABezels" == true ] && [ "$doSetupRA" == "true" ]; then
|
||||||
RetroArch_snes_bezelOn
|
RetroArch_snes_bezelOn
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
@ -120,7 +120,7 @@ RetroArch_setCustomizations(){
|
||||||
#Nintendo 64
|
#Nintendo 64
|
||||||
#Saturn
|
#Saturn
|
||||||
#Xbox
|
#Xbox
|
||||||
if [ "$arClassic3D" = 169 ]; then
|
if [ "$arClassic3D" == 169 ]; then
|
||||||
RetroArch_Beetle_PSX_HW_wideScreenOn
|
RetroArch_Beetle_PSX_HW_wideScreenOn
|
||||||
RetroArch_Flycast_wideScreenOn
|
RetroArch_Flycast_wideScreenOn
|
||||||
RetroArch_dreamcast_bezelOff
|
RetroArch_dreamcast_bezelOff
|
||||||
|
@ -133,7 +133,7 @@ RetroArch_setCustomizations(){
|
||||||
RetroArch_Beetle_PSX_HW_wideScreenOff
|
RetroArch_Beetle_PSX_HW_wideScreenOff
|
||||||
RetroArch_SwanStation_wideScreenOff
|
RetroArch_SwanStation_wideScreenOff
|
||||||
#"Bezels on"
|
#"Bezels on"
|
||||||
if [ "$RABezels" = true ]; then
|
if [ "$RABezels" == true ]; then
|
||||||
RetroArch_dreamcast_bezelOn
|
RetroArch_dreamcast_bezelOn
|
||||||
RetroArch_n64_bezelOn
|
RetroArch_n64_bezelOn
|
||||||
RetroArch_psx_bezelOn
|
RetroArch_psx_bezelOn
|
||||||
|
@ -144,7 +144,7 @@ RetroArch_setCustomizations(){
|
||||||
RetroArch_setRetroAchievements(){
|
RetroArch_setRetroAchievements(){
|
||||||
#RetroAchievments
|
#RetroAchievments
|
||||||
RetroArch_retroAchievementsSetLogin
|
RetroArch_retroAchievementsSetLogin
|
||||||
if [ "$achievementsHardcore" = "true" ]; then
|
if [ "$achievementsHardcore" == "true" ]; then
|
||||||
RetroArch_retroAchievementsHardCoreOn
|
RetroArch_retroAchievementsHardCoreOn
|
||||||
else
|
else
|
||||||
RetroArch_retroAchievementsHardCoreOff
|
RetroArch_retroAchievementsHardCoreOff
|
||||||
|
@ -252,7 +252,7 @@ RetroArch_setOverride(){
|
||||||
local fullPath="$RetroArch_coreConfigFolders/$coreName"
|
local fullPath="$RetroArch_coreConfigFolders/$coreName"
|
||||||
local configFile="$fullPath/$fileName"
|
local configFile="$fullPath/$fileName"
|
||||||
|
|
||||||
if [[ $value = 'ED_RM_LINE' ]]; then
|
if [[ $value == 'ED_RM_LINE' ]]; then
|
||||||
echo "Deleting $option from $configFile"
|
echo "Deleting $option from $configFile"
|
||||||
sed -i '/^'"$option"'/d' "$configFile"
|
sed -i '/^'"$option"'/d' "$configFile"
|
||||||
else
|
else
|
||||||
|
@ -266,7 +266,7 @@ RetroArch_setConfigOverride(){
|
||||||
local configFile=$3
|
local configFile=$3
|
||||||
local settingLine="$option = $value"
|
local settingLine="$option = $value"
|
||||||
|
|
||||||
if [[ $value = 'ED_RM_LINE' ]]; then
|
if [[ $value == 'ED_RM_LINE' ]]; then
|
||||||
echo "Deleting $option from $configFile"
|
echo "Deleting $option from $configFile"
|
||||||
sed -i '/^'"$option"'/d' "$configFile"
|
sed -i '/^'"$option"'/d' "$configFile"
|
||||||
else
|
else
|
||||||
|
@ -2194,28 +2194,28 @@ RetroArch_retroAchievementsSetLogin(){
|
||||||
}
|
}
|
||||||
|
|
||||||
RetroArch_setBezels(){
|
RetroArch_setBezels(){
|
||||||
if [ "$RABezels" = true ]; then
|
if [ "$RABezels" == true ]; then
|
||||||
RetroArch_bezelOnAll
|
RetroArch_bezelOnAll
|
||||||
else
|
else
|
||||||
RetroArch_bezelOffAll
|
RetroArch_bezelOffAll
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
RetroArch_setShadersCRT(){
|
RetroArch_setShadersCRT(){
|
||||||
if [ "$RAHandClassic2D" = true ]; then
|
if [ "$RAHandClassic2D" == true ]; then
|
||||||
RetroArch_CRTshaderOnAll
|
RetroArch_CRTshaderOnAll
|
||||||
else
|
else
|
||||||
RetroArch_CRTshaderOffAll
|
RetroArch_CRTshaderOffAll
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
RetroArch_setShaders3DCRT(){
|
RetroArch_setShaders3DCRT(){
|
||||||
if [ "$RAHandClassic3D" = true ]; then
|
if [ "$RAHandClassic3D" == true ]; then
|
||||||
RetroArch_3DCRTshaderOnAll
|
RetroArch_3DCRTshaderOnAll
|
||||||
else
|
else
|
||||||
RetroArch_3DCRTshaderOffAll
|
RetroArch_3DCRTshaderOffAll
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
RetroArch_setShadersMAT(){
|
RetroArch_setShadersMAT(){
|
||||||
if [ "$RAHandHeldShader" = true ]; then
|
if [ "$RAHandHeldShader" == true ]; then
|
||||||
RetroArch_MATshadersOnAll
|
RetroArch_MATshadersOnAll
|
||||||
else
|
else
|
||||||
RetroArch_MATshadersOffAll
|
RetroArch_MATshadersOffAll
|
||||||
|
@ -2223,7 +2223,7 @@ RetroArch_setShadersMAT(){
|
||||||
}
|
}
|
||||||
|
|
||||||
RetroArch_autoSave(){
|
RetroArch_autoSave(){
|
||||||
if [ "$RAautoSave" = true ]; then
|
if [ "$RAautoSave" == true ]; then
|
||||||
RetroArch_autoSaveOn
|
RetroArch_autoSaveOn
|
||||||
else
|
else
|
||||||
RetroArch_autoSaveOff
|
RetroArch_autoSaveOff
|
||||||
|
|
|
@ -149,7 +149,7 @@ Xemu_resetConfig(){
|
||||||
}
|
}
|
||||||
|
|
||||||
Xemu_setCustomizations(){
|
Xemu_setCustomizations(){
|
||||||
if [ "$arClassic3D" = 169 ]; then
|
if [ "$arClassic3D" == 169 ]; then
|
||||||
Xemu_wideScreenOn
|
Xemu_wideScreenOn
|
||||||
else
|
else
|
||||||
Xemu_wideScreenOff
|
Xemu_wideScreenOff
|
||||||
|
|
|
@ -18,7 +18,7 @@ Xenia_install(){
|
||||||
version=$1
|
version=$1
|
||||||
local showProgress="$2"
|
local showProgress="$2"
|
||||||
|
|
||||||
if [[ "$version" = "master" ]]; then
|
if [[ "$version" == "master" ]]; then
|
||||||
Xenia_releaseURL="$Xenia_releaseURL_master"
|
Xenia_releaseURL="$Xenia_releaseURL_master"
|
||||||
else
|
else
|
||||||
Xenia_releaseURL="$Xenia_releaseURL_canary"
|
Xenia_releaseURL="$Xenia_releaseURL_canary"
|
||||||
|
@ -44,7 +44,7 @@ Xenia_install(){
|
||||||
sed -i "s|/run/media/mmcblk0p1/Emulation/roms|${romsPath}|" "${toolsPath}/launchers/xenia.sh"
|
sed -i "s|/run/media/mmcblk0p1/Emulation/roms|${romsPath}|" "${toolsPath}/launchers/xenia.sh"
|
||||||
mkdir -p "$romsPath/xbox360/roms/xbla"
|
mkdir -p "$romsPath/xbox360/roms/xbla"
|
||||||
|
|
||||||
# if [[ "$launchLine" = *"PROTONLAUNCH"* ]]; then
|
# if [[ "$launchLine" == *"PROTONLAUNCH"* ]]; then
|
||||||
# changeLine '"${PROTONLAUNCH}"' "$launchLine" "${toolsPath}/launchers/xenia.sh"
|
# changeLine '"${PROTONLAUNCH}"' "$launchLine" "${toolsPath}/launchers/xenia.sh"
|
||||||
# fi
|
# fi
|
||||||
chmod +x "${toolsPath}/launchers/xenia.sh"
|
chmod +x "${toolsPath}/launchers/xenia.sh"
|
||||||
|
@ -66,7 +66,7 @@ Xenia_init(){
|
||||||
}
|
}
|
||||||
|
|
||||||
Xenia_addESConfig(){
|
Xenia_addESConfig(){
|
||||||
if [[ $(grep -rnw "$es_systemsFile" -e 'xbox360') = "" ]]; then
|
if [[ $(grep -rnw "$es_systemsFile" -e 'xbox360') == "" ]]; then
|
||||||
xmlstarlet ed -S --inplace --subnode '/systemList' --type elem --name 'system' \
|
xmlstarlet ed -S --inplace --subnode '/systemList' --type elem --name 'system' \
|
||||||
--var newSystem '$prev' \
|
--var newSystem '$prev' \
|
||||||
--subnode '$newSystem' --type elem --name 'name' -v 'xbox360' \
|
--subnode '$newSystem' --type elem --name 'name' -v 'xbox360' \
|
||||||
|
|
|
@ -47,10 +47,10 @@ Chiaki_uninstall() {
|
||||||
|
|
||||||
# Check if installed
|
# Check if installed
|
||||||
Chiaki_IsInstalled() {
|
Chiaki_IsInstalled() {
|
||||||
if [ "$(flatpak --columns=app list | grep "$Chiaki_emuPath")" = "$Chiaki_emuPath" ]; then
|
if [ "$(flatpak --columns=app list | grep "$Chiaki_emuPath")" == "$Chiaki_emuPath" ]; then
|
||||||
# Uninstall if previously installed to the "system" level
|
# Uninstall if previously installed to the "system" level
|
||||||
flatpak list | grep "$Chiaki_emuPath" | grep "system"
|
flatpak list | grep "$Chiaki_emuPath" | grep "system"
|
||||||
if [ $? = 0 ]; then
|
if [ $? == 0 ]; then
|
||||||
Chiaki_uninstall
|
Chiaki_uninstall
|
||||||
Chiaki_install
|
Chiaki_install
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -47,10 +47,10 @@ Moonlight_uninstall() {
|
||||||
|
|
||||||
# Check if installed
|
# Check if installed
|
||||||
Moonlight_IsInstalled() {
|
Moonlight_IsInstalled() {
|
||||||
if [ "$(flatpak --columns=app list | grep "$Moonlight_emuPath")" = "$Moonlight_emuPath" ]; then
|
if [ "$(flatpak --columns=app list | grep "$Moonlight_emuPath")" == "$Moonlight_emuPath" ]; then
|
||||||
# Uninstall if previously installed to the "system" level
|
# Uninstall if previously installed to the "system" level
|
||||||
flatpak list | grep "$Moonlight_emuPath" | grep "system"
|
flatpak list | grep "$Moonlight_emuPath" | grep "system"
|
||||||
if [ $? = 0 ]; then
|
if [ $? == 0 ]; then
|
||||||
Moonlight_uninstall
|
Moonlight_uninstall
|
||||||
Moonlight_install
|
Moonlight_install
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -47,10 +47,10 @@ Parsec_uninstall() {
|
||||||
|
|
||||||
# Check if installed
|
# Check if installed
|
||||||
Parsec_IsInstalled() {
|
Parsec_IsInstalled() {
|
||||||
if [ "$(flatpak --columns=app list | grep "$Parsec_emuPath")" = "$Parsec_emuPath" ]; then
|
if [ "$(flatpak --columns=app list | grep "$Parsec_emuPath")" == "$Parsec_emuPath" ]; then
|
||||||
# Uninstall if previously installed to the "system" level
|
# Uninstall if previously installed to the "system" level
|
||||||
flatpak list | grep "$Parsec_emuPath" | grep "system"
|
flatpak list | grep "$Parsec_emuPath" | grep "system"
|
||||||
if [ $? = 0 ]; then
|
if [ $? == 0 ]; then
|
||||||
Parsec_uninstall
|
Parsec_uninstall
|
||||||
Parsec_install
|
Parsec_install
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -86,7 +86,7 @@ cloud_backup_providersSetup(){
|
||||||
xdg-settings set default-web-browser com.google.Chrome.desktop
|
xdg-settings set default-web-browser com.google.Chrome.desktop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $rclone_provider = "Emudeck-NextCloud" ]; then
|
if [ $rclone_provider == "Emudeck-NextCloud" ]; then
|
||||||
|
|
||||||
local url
|
local url
|
||||||
local username
|
local username
|
||||||
|
@ -111,7 +111,7 @@ cloud_backup_providersSetup(){
|
||||||
else
|
else
|
||||||
echo "Cancel Nextcloud Login"
|
echo "Cancel Nextcloud Login"
|
||||||
fi
|
fi
|
||||||
elif [ $rclone_provider = "Emudeck-SFTP" ]; then
|
elif [ $rclone_provider == "Emudeck-SFTP" ]; then
|
||||||
|
|
||||||
NCInput=$(zenity --forms \
|
NCInput=$(zenity --forms \
|
||||||
--title="SFTP Sign in" \
|
--title="SFTP Sign in" \
|
||||||
|
@ -135,7 +135,7 @@ cloud_backup_providersSetup(){
|
||||||
echo "Cancel SFTP Login"
|
echo "Cancel SFTP Login"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif [ $cloud_sync_provider = "Emudeck-SMB" ]; then
|
elif [ $cloud_sync_provider == "Emudeck-SMB" ]; then
|
||||||
|
|
||||||
NCInput=$(zenity --forms \
|
NCInput=$(zenity --forms \
|
||||||
--title="SMB Sign in" \
|
--title="SMB Sign in" \
|
||||||
|
@ -192,15 +192,15 @@ cloud_backup_etup(){
|
||||||
--ok-label Exit 2>/dev/null )
|
--ok-label Exit 2>/dev/null )
|
||||||
fi
|
fi
|
||||||
rc=$?
|
rc=$?
|
||||||
if [ "$rc" = 0 ] || [ "$ans" = "" ]; then
|
if [ "$rc" == 0 ] || [ "$ans" == "" ]; then
|
||||||
break
|
break
|
||||||
elif [ "$ans" = "Install cloud_backup" ] || [ "$ans" = "Reinstall cloud_backup" ]; then
|
elif [ "$ans" == "Install cloud_backup" ] || [ "$ans" == "Reinstall cloud_backup" ]; then
|
||||||
rclone_install
|
rclone_install
|
||||||
elif [ "$ans" = "Pick Provider" ]; then
|
elif [ "$ans" == "Pick Provider" ]; then
|
||||||
rclone_pickProvider
|
rclone_pickProvider
|
||||||
elif [ "$ans" = "Login to your cloud provider" ]; then
|
elif [ "$ans" == "Login to your cloud provider" ]; then
|
||||||
rclone_updateProvider
|
rclone_updateProvider
|
||||||
elif [ "$ans" = "Create Backup" ]; then
|
elif [ "$ans" == "Create Backup" ]; then
|
||||||
rclone_createBackup
|
rclone_createBackup
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -365,17 +365,17 @@ cloud_backup_createBackup(){
|
||||||
--extra-button "Run Backup Once" \
|
--extra-button "Run Backup Once" \
|
||||||
--ok-label Exit 2>/dev/null )
|
--ok-label Exit 2>/dev/null )
|
||||||
rc=$?
|
rc=$?
|
||||||
if [ "$rc" = 0 ] || [ "$ans" = "" ]; then
|
if [ "$rc" == 0 ] || [ "$ans" == "" ]; then
|
||||||
echo "nothing chosen"
|
echo "nothing chosen"
|
||||||
elif [ "$ans" = "Create Service" ]; then
|
elif [ "$ans" == "Create Service" ]; then
|
||||||
cloud_backup_createService
|
cloud_backup_createService
|
||||||
elif [ "$ans" = "Start Service" ]; then
|
elif [ "$ans" == "Start Service" ]; then
|
||||||
cloud_backup_startService
|
cloud_backup_startService
|
||||||
elif [ "$ans" = "Stop Service" ]; then
|
elif [ "$ans" == "Stop Service" ]; then
|
||||||
cloud_backup_stopService
|
cloud_backup_stopService
|
||||||
elif [ "$ans" = "Restore Cloud Files" ]; then
|
elif [ "$ans" == "Restore Cloud Files" ]; then
|
||||||
cloud_backup_downloadFiles
|
cloud_backup_downloadFiles
|
||||||
elif [ "$ans" = "Run Backup Once" ]; then
|
elif [ "$ans" == "Run Backup Once" ]; then
|
||||||
cloud_backup_runJobOnce
|
cloud_backup_runJobOnce
|
||||||
fi
|
fi
|
||||||
}
|
}
|
|
@ -75,7 +75,7 @@ createCloudFile() {
|
||||||
|
|
||||||
cloud_sync_setup_providers(){
|
cloud_sync_setup_providers(){
|
||||||
startLog ${FUNCNAME[0]}
|
startLog ${FUNCNAME[0]}
|
||||||
if [ "$cloud_sync_provider" = "Emudeck-NextCloud" ]; then
|
if [ "$cloud_sync_provider" == "Emudeck-NextCloud" ]; then
|
||||||
|
|
||||||
local url
|
local url
|
||||||
local username
|
local username
|
||||||
|
@ -100,7 +100,7 @@ cloud_sync_setup_providers(){
|
||||||
else
|
else
|
||||||
echo "Cancel Nextcloud Login"
|
echo "Cancel Nextcloud Login"
|
||||||
fi
|
fi
|
||||||
elif [ "$cloud_sync_provider" = "Emudeck-SFTP" ]; then
|
elif [ "$cloud_sync_provider" == "Emudeck-SFTP" ]; then
|
||||||
|
|
||||||
NCInput=$(zenity --forms \
|
NCInput=$(zenity --forms \
|
||||||
--title="SFTP Sign in" \
|
--title="SFTP Sign in" \
|
||||||
|
@ -124,11 +124,11 @@ cloud_sync_setup_providers(){
|
||||||
else
|
else
|
||||||
echo "Cancel SFTP Login"
|
echo "Cancel SFTP Login"
|
||||||
fi
|
fi
|
||||||
elif [ "$cloud_sync_provider" = "Emudeck-OneDrive" ]; then
|
elif [ "$cloud_sync_provider" == "Emudeck-OneDrive" ]; then
|
||||||
find "$savesPath" -type d -exec bash -c 'createCloudFile "$0"' {} \;
|
find "$savesPath" -type d -exec bash -c 'createCloudFile "$0"' {} \;
|
||||||
"$cloud_sync_bin" config update "$cloud_sync_provider" && "$cloud_sync_bin" mkdir "$cloud_sync_provider:Emudeck\saves" && "$cloud_sync_bin" copy "$savesPath" "$cloud_sync_provider:Emudeck\saves" --include "*.cloud" echo "true"
|
"$cloud_sync_bin" config update "$cloud_sync_provider" && "$cloud_sync_bin" mkdir "$cloud_sync_provider:Emudeck\saves" && "$cloud_sync_bin" copy "$savesPath" "$cloud_sync_provider:Emudeck\saves" --include "*.cloud" echo "true"
|
||||||
find "$savesPath" -type f -name "*.cloud" -exec rm {} \;
|
find "$savesPath" -type f -name "*.cloud" -exec rm {} \;
|
||||||
elif [ "$cloud_sync_provider" = "Emudeck-SMB" ]; then
|
elif [ "$cloud_sync_provider" == "Emudeck-SMB" ]; then
|
||||||
|
|
||||||
NCInput=$(zenity --forms \
|
NCInput=$(zenity --forms \
|
||||||
--title="SMB Sign in" \
|
--title="SMB Sign in" \
|
||||||
|
@ -162,10 +162,10 @@ cloud_sync_setup_providers(){
|
||||||
startLog ${FUNCNAME[0]}
|
startLog ${FUNCNAME[0]}
|
||||||
while read line
|
while read line
|
||||||
do
|
do
|
||||||
if [[ "$line" = *"[Emudeck"* ]]
|
if [[ "$line" == *"[Emudeck"* ]]
|
||||||
then
|
then
|
||||||
section=$line
|
section=$line
|
||||||
elif [[ "$line" = *"token = "* ]]; then
|
elif [[ "$line" == *"token == "* ]]; then
|
||||||
token=$line
|
token=$line
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
@ -175,7 +175,7 @@ cloud_sync_setup_providers(){
|
||||||
replace_with=""
|
replace_with=""
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
token=${token/"token = "/$replace_with}
|
token=${token/"token == "/$replace_with}
|
||||||
token=$(echo "$token" | sed "s/\"/'/g")
|
token=$(echo "$token" | sed "s/\"/'/g")
|
||||||
section=$(echo "$section" | sed 's/[][]//g; s/"//g')
|
section=$(echo "$section" | sed 's/[][]//g; s/"//g')
|
||||||
|
|
||||||
|
@ -268,7 +268,7 @@ cloud_sync_upload(){
|
||||||
local emuName=$1
|
local emuName=$1
|
||||||
local timestamp=$(date +%s)
|
local timestamp=$(date +%s)
|
||||||
|
|
||||||
if [ "$cloud_sync_status" = "true" ]; then
|
if [ "$cloud_sync_status" == "true" ]; then
|
||||||
cloud_sync_lock
|
cloud_sync_lock
|
||||||
|
|
||||||
if [ "$emuName" = "all" ]; then
|
if [ "$emuName" = "all" ]; then
|
||||||
|
@ -297,11 +297,11 @@ cloud_sync_download(){
|
||||||
startLog ${FUNCNAME[0]}
|
startLog ${FUNCNAME[0]}
|
||||||
local emuName=$1
|
local emuName=$1
|
||||||
local timestamp=$(date +%s)
|
local timestamp=$(date +%s)
|
||||||
if [ "$cloud_sync_status" = "true" ]; then
|
if [ "$cloud_sync_status" == "true" ]; then
|
||||||
|
|
||||||
#We wait for any upload in progress in the background
|
#We wait for any upload in progress in the background
|
||||||
cloud_sync_check_lock
|
cloud_sync_check_lock
|
||||||
if [ "$emuName" = "all" ]; then
|
if [ "$emuName" == "all" ]; then
|
||||||
#We check the hashes
|
#We check the hashes
|
||||||
cloud_sync_save_hash "$savesPath/$emuName"
|
cloud_sync_save_hash "$savesPath/$emuName"
|
||||||
local filePath="$savesPath/.hash"
|
local filePath="$savesPath/.hash"
|
||||||
|
@ -365,7 +365,7 @@ cloud_sync_uploadEmu(){
|
||||||
local emuName=$1
|
local emuName=$1
|
||||||
local mode=$2
|
local mode=$2
|
||||||
local time_stamp
|
local time_stamp
|
||||||
if [ -f "$cloud_sync_bin" ] && [ "$cloud_sync_status" = "true" ]; then
|
if [ -f "$cloud_sync_bin" ] && [ "$cloud_sync_status" == "true" ]; then
|
||||||
if [[ $cloud_sync_provider != *"Emudeck"* ]]; then
|
if [[ $cloud_sync_provider != *"Emudeck"* ]]; then
|
||||||
|
|
||||||
text="$(printf "CloudSync is not properly configured, please configure it again from EmuDeck")"
|
text="$(printf "CloudSync is not properly configured, please configure it again from EmuDeck")"
|
||||||
|
@ -373,7 +373,7 @@ cloud_sync_uploadEmu(){
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
#We check for internet connection
|
#We check for internet connection
|
||||||
if [ $(check_internet_connection) = "true" ]; then
|
if [ $(check_internet_connection) == "true" ]; then
|
||||||
|
|
||||||
#Do we have a failed upload?
|
#Do we have a failed upload?
|
||||||
if [ -f $savesPath/$emuName/.fail_upload ]; then
|
if [ -f $savesPath/$emuName/.fail_upload ]; then
|
||||||
|
@ -438,7 +438,7 @@ cloud_sync_downloadEmu(){
|
||||||
|
|
||||||
if [ -f "$cloud_sync_bin" ]; then
|
if [ -f "$cloud_sync_bin" ]; then
|
||||||
local timestamp=$(date +%s)
|
local timestamp=$(date +%s)
|
||||||
if [ -f "$cloud_sync_bin" ] && [ "$cloud_sync_status" = "true" ]; then
|
if [ -f "$cloud_sync_bin" ] && [ "$cloud_sync_status" == "true" ]; then
|
||||||
if [[ $cloud_sync_provider != *"Emudeck"* ]]; then
|
if [[ $cloud_sync_provider != *"Emudeck"* ]]; then
|
||||||
|
|
||||||
text="$(printf "CloudSync is not properly configured, please configure it again from EmuDeck")"
|
text="$(printf "CloudSync is not properly configured, please configure it again from EmuDeck")"
|
||||||
|
@ -447,7 +447,7 @@ cloud_sync_downloadEmu(){
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#We check for internet connection
|
#We check for internet connection
|
||||||
if [ $(check_internet_connection) = "true" ]; then
|
if [ $(check_internet_connection) == "true" ]; then
|
||||||
|
|
||||||
#Do we have a pending upload?
|
#Do we have a pending upload?
|
||||||
if [ -f $savesPath/$emuName/.pending_upload ]; then
|
if [ -f $savesPath/$emuName/.pending_upload ]; then
|
||||||
|
@ -621,7 +621,7 @@ cloud_sync_check_lock(){
|
||||||
|
|
||||||
cloud_decky_check_status(){
|
cloud_decky_check_status(){
|
||||||
startLog ${FUNCNAME[0]}
|
startLog ${FUNCNAME[0]}
|
||||||
if [ $(check_internet_connection) = "true" ]; then
|
if [ $(check_internet_connection) == "true" ]; then
|
||||||
if [ $cloud_sync_status = "true" ]; then
|
if [ $cloud_sync_status = "true" ]; then
|
||||||
if [ -f "$savesPath/.gaming" ] && [ ! -f "$HOME/emudeck/cloud.lock" ]; then
|
if [ -f "$savesPath/.gaming" ] && [ ! -f "$HOME/emudeck/cloud.lock" ]; then
|
||||||
echo "started"
|
echo "started"
|
||||||
|
|
|
@ -16,10 +16,10 @@ es_settingsFile="$HOME/.emulationstation/es_settings.xml"
|
||||||
|
|
||||||
ESDE_SetAppImageURLS() {
|
ESDE_SetAppImageURLS() {
|
||||||
local json="$(curl -s $ESDE_releaseJSON)"
|
local json="$(curl -s $ESDE_releaseJSON)"
|
||||||
ESDE_releaseURL=$(echo "$json" | jq -r '.stable.packages[] | select(.name = "LinuxSteamDeckAppImage") | .url')
|
ESDE_releaseURL=$(echo "$json" | jq -r '.stable.packages[] | select(.name == "LinuxSteamDeckAppImage") | .url')
|
||||||
ESDE_releaseMD5=$(echo "$json" | jq -r '.stable.packages[] | select(.name = "LinuxSteamDeckAppImage") | .md5')
|
ESDE_releaseMD5=$(echo "$json" | jq -r '.stable.packages[] | select(.name == "LinuxSteamDeckAppImage") | .md5')
|
||||||
ESDE_prereleaseURL=$(echo "$json" | jq -r '.prerelease.packages[] | select(.name = "LinuxSteamDeckAppImage") | .url')
|
ESDE_prereleaseURL=$(echo "$json" | jq -r '.prerelease.packages[] | select(.name == "LinuxSteamDeckAppImage") | .url')
|
||||||
ESDE_prereleaseMD5=$(echo "$json" | jq -r '.prerelease.packages[] | select(.name = "LinuxSteamDeckAppImage") | .md5')
|
ESDE_prereleaseMD5=$(echo "$json" | jq -r '.prerelease.packages[] | select(.name == "LinuxSteamDeckAppImage") | .md5')
|
||||||
}
|
}
|
||||||
|
|
||||||
#cleanupOlderThings
|
#cleanupOlderThings
|
||||||
|
@ -82,7 +82,7 @@ ESDE_install(){
|
||||||
#
|
#
|
||||||
# if safeDownload "$ESDE_toolName" "$ESDE_prereleaseURL" "$ESDE_toolPath" "$showProgress"; then
|
# if safeDownload "$ESDE_toolName" "$ESDE_prereleaseURL" "$ESDE_toolPath" "$showProgress"; then
|
||||||
# ESDE_md5sum=($(md5sum $ESDE_toolPath)) # get first element
|
# ESDE_md5sum=($(md5sum $ESDE_toolPath)) # get first element
|
||||||
# if [ "$ESDE_md5sum" = "$ESDE_prereleaseMD5" ]; then
|
# if [ "$ESDE_md5sum" == "$ESDE_prereleaseMD5" ]; then
|
||||||
# echo "ESDE PASSED HASH CHECK."
|
# echo "ESDE PASSED HASH CHECK."
|
||||||
# chmod +x "$ESDE_toolPath"
|
# chmod +x "$ESDE_toolPath"
|
||||||
# else
|
# else
|
||||||
|
@ -122,7 +122,7 @@ ESDE_init(){
|
||||||
ESDE_finalize
|
ESDE_finalize
|
||||||
ESDE_migrateEpicNoir
|
ESDE_migrateEpicNoir
|
||||||
|
|
||||||
if [ "$system" = "chimeraos" ] || [ "$system" = "ChimeraOS" ]; then
|
if [ "$system" == "chimeraos" ] || [ "$system" == "ChimeraOS" ]; then
|
||||||
ESDE_chimeraOS
|
ESDE_chimeraOS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ ESDE_update(){
|
||||||
|
|
||||||
ESDE_addCustomSystems(){
|
ESDE_addCustomSystems(){
|
||||||
#insert cemu custom system if it doesn't exist, but the file does
|
#insert cemu custom system if it doesn't exist, but the file does
|
||||||
if [[ $(grep -rnw "$es_systemsFile" -e 'wiiu') = "" ]]; then
|
if [[ $(grep -rnw "$es_systemsFile" -e 'wiiu') == "" ]]; then
|
||||||
xmlstarlet ed -S --inplace --subnode '/systemList' --type elem --name 'system' \
|
xmlstarlet ed -S --inplace --subnode '/systemList' --type elem --name 'system' \
|
||||||
--var newSystem '$prev' \
|
--var newSystem '$prev' \
|
||||||
--subnode '$newSystem' --type elem --name 'name' -v 'wiiu' \
|
--subnode '$newSystem' --type elem --name 'name' -v 'wiiu' \
|
||||||
|
@ -212,8 +212,8 @@ ESDE_setEmulationFolder(){
|
||||||
echo "updating $es_systemsFile"
|
echo "updating $es_systemsFile"
|
||||||
|
|
||||||
#insert new commands
|
#insert new commands
|
||||||
if [[ ! $(grep -rnw "$es_systemsFile" -e 'wiiu') = "" ]]; then
|
if [[ ! $(grep -rnw "$es_systemsFile" -e 'wiiu') == "" ]]; then
|
||||||
if [[ $(grep -rnw "$es_systemsFile" -e 'Cemu (Proton)') = "" ]]; then
|
if [[ $(grep -rnw "$es_systemsFile" -e 'Cemu (Proton)') == "" ]]; then
|
||||||
#insert
|
#insert
|
||||||
xmlstarlet ed -S --inplace --subnode 'systemList/system[name="wiiu"]' --type elem --name 'commandP' -v "/usr/bin/bash ${toolsPath}/launchers/cemu.sh -w -f -g z:%ROM%" \
|
xmlstarlet ed -S --inplace --subnode 'systemList/system[name="wiiu"]' --type elem --name 'commandP' -v "/usr/bin/bash ${toolsPath}/launchers/cemu.sh -w -f -g z:%ROM%" \
|
||||||
--insert 'systemList/system/commandP' --type attr --name 'label' --value "Cemu (Proton)" \
|
--insert 'systemList/system/commandP' --type attr --name 'label' --value "Cemu (Proton)" \
|
||||||
|
@ -227,7 +227,7 @@ ESDE_setEmulationFolder(){
|
||||||
cemuProtonCommandString="/usr/bin/bash ${toolsPath}/launchers/cemu.sh -w -f -g z:%ROM%"
|
cemuProtonCommandString="/usr/bin/bash ${toolsPath}/launchers/cemu.sh -w -f -g z:%ROM%"
|
||||||
xmlstarlet ed -L -u '/systemList/system/command[@label="Cemu (Proton)"]' -v "$cemuProtonCommandString" "$es_systemsFile"
|
xmlstarlet ed -L -u '/systemList/system/command[@label="Cemu (Proton)"]' -v "$cemuProtonCommandString" "$es_systemsFile"
|
||||||
fi
|
fi
|
||||||
if [[ $(grep -rnw "$es_systemsFile" -e 'Cemu (Native)') = "" ]]; then
|
if [[ $(grep -rnw "$es_systemsFile" -e 'Cemu (Native)') == "" ]]; then
|
||||||
#insert
|
#insert
|
||||||
xmlstarlet ed -S --inplace --subnode 'systemList/system[name="wiiu"]' --type elem --name 'commandN' -v "/usr/bin/bash ${toolsPath}/launchers/cemu.sh -f -g %ROM%" \
|
xmlstarlet ed -S --inplace --subnode 'systemList/system[name="wiiu"]' --type elem --name 'commandN' -v "/usr/bin/bash ${toolsPath}/launchers/cemu.sh -f -g %ROM%" \
|
||||||
--insert 'systemList/system/commandN' --type attr --name 'label' --value "Cemu (Native)" \
|
--insert 'systemList/system/commandN' --type attr --name 'label' --value "Cemu (Native)" \
|
||||||
|
@ -242,8 +242,8 @@ ESDE_setEmulationFolder(){
|
||||||
xmlstarlet ed -L -u '/systemList/system/command[@label="Cemu (Native)"]' -v "$cemuNativeCommandString" "$es_systemsFile"
|
xmlstarlet ed -L -u '/systemList/system/command[@label="Cemu (Native)"]' -v "$cemuNativeCommandString" "$es_systemsFile"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ ! $(grep -rnw "$es_systemsFile" -e 'xbox360') = "" ]]; then
|
if [[ ! $(grep -rnw "$es_systemsFile" -e 'xbox360') == "" ]]; then
|
||||||
if [[ $(grep -rnw "$es_systemsFile" -e 'Xenia (Proton)') = "" ]]; then
|
if [[ $(grep -rnw "$es_systemsFile" -e 'Xenia (Proton)') == "" ]]; then
|
||||||
#insert
|
#insert
|
||||||
xmlstarlet ed -S --inplace --subnode 'systemList/system[name="xbox360"]' --type elem --name 'commandP' -v "/usr/bin/bash ${toolsPath}/launchers/xenia.sh %ROM%" \
|
xmlstarlet ed -S --inplace --subnode 'systemList/system[name="xbox360"]' --type elem --name 'commandP' -v "/usr/bin/bash ${toolsPath}/launchers/xenia.sh %ROM%" \
|
||||||
--insert 'systemList/system/commandP' --type attr --name 'label' --value "Xenia (Proton)" \
|
--insert 'systemList/system/commandP' --type attr --name 'label' --value "Xenia (Proton)" \
|
||||||
|
@ -271,7 +271,7 @@ ESDE_setEmulationFolder(){
|
||||||
mediaDirFound=$(grep -rnw "$es_settingsFile" -e 'MediaDirectory')
|
mediaDirFound=$(grep -rnw "$es_settingsFile" -e 'MediaDirectory')
|
||||||
mediaDirEmpty=$(grep -rnw "$es_settingsFile" -e '<string name="MediaDirectory" value="" />')
|
mediaDirEmpty=$(grep -rnw "$es_settingsFile" -e '<string name="MediaDirectory" value="" />')
|
||||||
mediaDirEmulation=$(grep -rnw "$es_settingsFile" -e 'Emulation/tools/downloaded_media')
|
mediaDirEmulation=$(grep -rnw "$es_settingsFile" -e 'Emulation/tools/downloaded_media')
|
||||||
if [[ $mediaDirFound = '' ]]; then
|
if [[ $mediaDirFound == '' ]]; then
|
||||||
echo "adding ES-DE ${esDE_MediaDir}"
|
echo "adding ES-DE ${esDE_MediaDir}"
|
||||||
sed -i -e '$a'"${esDE_MediaDir}" "$es_settingsFile" # use config file instead of link
|
sed -i -e '$a'"${esDE_MediaDir}" "$es_settingsFile" # use config file instead of link
|
||||||
elif [[ -z $mediaDirEmpty || -n $mediaDirEmulation ]]; then
|
elif [[ -z $mediaDirEmpty || -n $mediaDirEmulation ]]; then
|
||||||
|
@ -334,11 +334,11 @@ ESDE_setEmu(){
|
||||||
mkdir -p "$HOME/.emulationstation/gamelists/$system" && cp "$EMUDECKGIT/configs/emulationstation/gamelists/$system/gamelist.xml" "$gamelistFile"
|
mkdir -p "$HOME/.emulationstation/gamelists/$system" && cp "$EMUDECKGIT/configs/emulationstation/gamelists/$system/gamelist.xml" "$gamelistFile"
|
||||||
else
|
else
|
||||||
gamelistFound=$(grep -rnw "$gamelistFile" -e 'gameList')
|
gamelistFound=$(grep -rnw "$gamelistFile" -e 'gameList')
|
||||||
if [[ $gamelistFound = '' ]]; then
|
if [[ $gamelistFound == '' ]]; then
|
||||||
sed -i -e '$a\<gameList />' "$gamelistFile"
|
sed -i -e '$a\<gameList />' "$gamelistFile"
|
||||||
fi
|
fi
|
||||||
alternativeEmu=$(grep -rnw "$gamelistFile" -e 'alternativeEmulator')
|
alternativeEmu=$(grep -rnw "$gamelistFile" -e 'alternativeEmulator')
|
||||||
if [[ $alternativeEmu = '' ]]; then
|
if [[ $alternativeEmu == '' ]]; then
|
||||||
echo "<alternativeEmulator><label>$emu</label></alternativeEmulator>" >> "$gamelistFile"
|
echo "<alternativeEmulator><label>$emu</label></alternativeEmulator>" >> "$gamelistFile"
|
||||||
fi
|
fi
|
||||||
sed -i "s|<?xml version=\"1.0\">|<?xml version=\"1.0\"?>|g" "$gamelistFile"
|
sed -i "s|<?xml version=\"1.0\">|<?xml version=\"1.0\"?>|g" "$gamelistFile"
|
||||||
|
|
|
@ -159,7 +159,7 @@ Migration_fix_SDPaths(){
|
||||||
|
|
||||||
text="$(printf "<b>Only use this if you have your roms on your SDCard and SteamOS 3.5 has been released and your Steam shortcuts no longer work.</b>\n\nYour old path was:\n${oldPath}\n\nYour new path is:\n${newPath}/\n\nDo you want me to change it?")"
|
text="$(printf "<b>Only use this if you have your roms on your SDCard and SteamOS 3.5 has been released and your Steam shortcuts no longer work.</b>\n\nYour old path was:\n${oldPath}\n\nYour new path is:\n${newPath}/\n\nDo you want me to change it?")"
|
||||||
zenity --question --title="Confirm path fix" --width 400 --text="${text}" --ok-label="Yes" --cancel-label="No" 2>/dev/null
|
zenity --question --title="Confirm path fix" --width 400 --text="${text}" --ok-label="Yes" --cancel-label="No" 2>/dev/null
|
||||||
if [[ $? = 0 ]]; then
|
if [[ $? == 0 ]]; then
|
||||||
kill -15 $(pidof steam)
|
kill -15 $(pidof steam)
|
||||||
Migration_updateSRM "$oldPath" "$newPath/" && Migration_updatePaths "$oldPath/Emulation" "$newPath/Emulation" && Migration_updateParsers "$oldPath" "$newPath/" && Migration_ESDE && echo "true"
|
Migration_updateSRM "$oldPath" "$newPath/" && Migration_updatePaths "$oldPath/Emulation" "$newPath/Emulation" && Migration_updateParsers "$oldPath" "$newPath/" && Migration_ESDE && echo "true"
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ Plugins_checkPassword(){
|
||||||
if [ "$password" = "Decky!" ]; then
|
if [ "$password" = "Decky!" ]; then
|
||||||
#We create the password
|
#We create the password
|
||||||
yes "$password" | passwd $(whoami)
|
yes "$password" | passwd $(whoami)
|
||||||
elif [ "$system" = "chimeraos" ]; then
|
elif [ "$system" == "chimeraos" ]; then
|
||||||
password="gamer"
|
password="gamer"
|
||||||
else
|
else
|
||||||
if ( echo "$PASS" | sudo -S -k true ); then
|
if ( echo "$PASS" | sudo -S -k true ); then
|
||||||
|
|
|
@ -247,65 +247,65 @@ SRM_createParsers(){
|
||||||
exclusionList=$exclusionList"nintendo_gb-mGBA.json\n"
|
exclusionList=$exclusionList"nintendo_gb-mGBA.json\n"
|
||||||
|
|
||||||
#Exclusion based on install status.
|
#Exclusion based on install status.
|
||||||
if [ $doInstallPrimeHack = "false" ] || [ $(Primehack_IsInstalled) = "false" ]; then
|
if [ $doInstallPrimeHack == "false" ] || [ $(Primehack_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"nintendo_primehack.json\n"
|
exclusionList=$exclusionList"nintendo_primehack.json\n"
|
||||||
fi
|
fi
|
||||||
if [ $doInstallRPCS3 = "false" ] || [ $(RPCS3_IsInstalled) = "false" ]; then
|
if [ $doInstallRPCS3 == "false" ] || [ $(RPCS3_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"sony_ps3-rpcs3-extracted_iso_psn.json\n"
|
exclusionList=$exclusionList"sony_ps3-rpcs3-extracted_iso_psn.json\n"
|
||||||
exclusionList=$exclusionList"sony_ps3-rpcs3-pkg.json\n"
|
exclusionList=$exclusionList"sony_ps3-rpcs3-pkg.json\n"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if [ $doInstallCitra = "false" ] || [ $(Citra_IsInstalled) = "false" ]; then
|
if [ $doInstallCitra == "false" ] || [ $(Citra_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"nintendo_3ds-citra.json\n"
|
exclusionList=$exclusionList"nintendo_3ds-citra.json\n"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if [ $doInstallDolphin = "false" ] || [ $(Dolphin_IsInstalled) = "false" ]; then
|
if [ $doInstallDolphin == "false" ] || [ $(Dolphin_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"nintendo_gc-dolphin.json\n"
|
exclusionList=$exclusionList"nintendo_gc-dolphin.json\n"
|
||||||
exclusionList=$exclusionList"nintendo_wii-dolphin.json\n"
|
exclusionList=$exclusionList"nintendo_wii-dolphin.json\n"
|
||||||
fi
|
fi
|
||||||
if [ $doInstallDuck = "false" ] || [ $(DuckStation_IsInstalled) = "false" ]; then
|
if [ $doInstallDuck == "false" ] || [ $(DuckStation_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"sony_psx-duckstation.json\n"
|
exclusionList=$exclusionList"sony_psx-duckstation.json\n"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if [ $doInstallPPSSPP = "false" ] || [ $(PPSSPP_IsInstalled) = "false" ]; then
|
if [ $doInstallPPSSPP == "false" ] || [ $(PPSSPP_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"sony_psp-ppsspp.json\n"
|
exclusionList=$exclusionList"sony_psp-ppsspp.json\n"
|
||||||
fi
|
fi
|
||||||
if [ $doInstallXemu = "false" ] || [ $(Xemu_IsInstalled) = "false" ]; then
|
if [ $doInstallXemu == "false" ] || [ $(Xemu_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"microsoft_xbox-xemu.json\n"
|
exclusionList=$exclusionList"microsoft_xbox-xemu.json\n"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if [ $doInstallXenia = "false" ] || [ $(Xenia_IsInstalled) = "false" ]; then
|
if [ $doInstallXenia == "false" ] || [ $(Xenia_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"microsoft_xbox_360-xenia-xbla.json\n"
|
exclusionList=$exclusionList"microsoft_xbox_360-xenia-xbla.json\n"
|
||||||
exclusionList=$exclusionList"microsoft_xbox_360-xenia.json\n"
|
exclusionList=$exclusionList"microsoft_xbox_360-xenia.json\n"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
if [ $doInstallScummVM = "false" ] || [ $(ScummVM_IsInstalled) = "false" ]; then
|
if [ $doInstallScummVM == "false" ] || [ $(ScummVM_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"scumm_scummvm.json\n"
|
exclusionList=$exclusionList"scumm_scummvm.json\n"
|
||||||
fi
|
fi
|
||||||
if [ $doInstallRMG = "false" ] || [ $(RMG_IsInstalled) = "false" ]; then
|
if [ $doInstallRMG == "false" ] || [ $(RMG_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"nintendo_64-rmg.json\n"
|
exclusionList=$exclusionList"nintendo_64-rmg.json\n"
|
||||||
fi
|
fi
|
||||||
if [ $doInstallmelonDS = "false" ] || [ $(melonDS_IsInstalled) = "false" ]; then
|
if [ $doInstallmelonDS == "false" ] || [ $(melonDS_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"nintendo_ds-melonds.json\n"
|
exclusionList=$exclusionList"nintendo_ds-melonds.json\n"
|
||||||
fi
|
fi
|
||||||
if [ $doInstallVita3K = "false" ] || [ $(Vita3K_IsInstalled) = "false" ]; then
|
if [ $doInstallVita3K == "false" ] || [ $(Vita3K_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"sony_psvita-vita3k-pkg.json\n"
|
exclusionList=$exclusionList"sony_psvita-vita3k-pkg.json\n"
|
||||||
fi
|
fi
|
||||||
if [ $doInstallMGBA = "false" ] || [ $(mGBA_IsInstalled) = "false" ]; then
|
if [ $doInstallMGBA == "false" ] || [ $(mGBA_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"nintendo_gb-mGBA.json\n"
|
exclusionList=$exclusionList"nintendo_gb-mGBA.json\n"
|
||||||
exclusionList=$exclusionList"nintendo_gba-mgba.json\n"
|
exclusionList=$exclusionList"nintendo_gba-mgba.json\n"
|
||||||
exclusionList=$exclusionList"nintendo_gbc-mgba.json\n"
|
exclusionList=$exclusionList"nintendo_gbc-mgba.json\n"
|
||||||
fi
|
fi
|
||||||
if [ $doInstallMAME = "false" ] || [ $(MAME_IsInstalled) = "false" ]; then
|
if [ $doInstallMAME == "false" ] || [ $(MAME_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"arcade-mame.json\n"
|
exclusionList=$exclusionList"arcade-mame.json\n"
|
||||||
fi
|
fi
|
||||||
if [ $doInstallYuzu = "false" ] || [ $(Yuzu_IsInstalled) = "false" ]; then
|
if [ $doInstallYuzu == "false" ] || [ $(Yuzu_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"nintendo_switch-yuzu.json\n"
|
exclusionList=$exclusionList"nintendo_switch-yuzu.json\n"
|
||||||
fi
|
fi
|
||||||
if [ $doInstallRyujinx = "false" ] || [ $(Ryujinx_IsInstalled) = "false" ]; then
|
if [ $doInstallRyujinx == "false" ] || [ $(Ryujinx_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"nintendo_switch-ryujinx.json\n"
|
exclusionList=$exclusionList"nintendo_switch-ryujinx.json\n"
|
||||||
fi
|
fi
|
||||||
if [ "$doInstallPCSX2QT" = "false" ] || [ $(PCSX2QT_IsInstalled) = "false" ]; then
|
if [ "$doInstallPCSX2QT" == "false" ] || [ $(PCSX2QT_IsInstalled) == "false" ]; then
|
||||||
exclusionList=$exclusionList"sony_ps2-pcsx2.json\n"
|
exclusionList=$exclusionList"sony_ps2-pcsx2.json\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
Decky_autoSave(){
|
Decky_autoSave(){
|
||||||
if [ "$RABezels" = true ]; then
|
if [ "$RABezels" == true ]; then
|
||||||
RetroArch_bezelOnAll
|
RetroArch_bezelOnAll
|
||||||
else
|
else
|
||||||
RetroArch_bezelOffAll
|
RetroArch_bezelOffAll
|
||||||
|
@ -9,7 +9,7 @@ Decky_autoSave(){
|
||||||
}
|
}
|
||||||
|
|
||||||
Decky_bezels(){
|
Decky_bezels(){
|
||||||
if [ "$RABezels" = true ]; then
|
if [ "$RABezels" == true ]; then
|
||||||
RetroArch_bezelOnAll
|
RetroArch_bezelOnAll
|
||||||
else
|
else
|
||||||
RetroArch_bezelOffAll
|
RetroArch_bezelOffAll
|
||||||
|
@ -17,7 +17,7 @@ Decky_bezels(){
|
||||||
}
|
}
|
||||||
|
|
||||||
Decky_shaders_LCD(){
|
Decky_shaders_LCD(){
|
||||||
if [ "$RAHandHeldShader" = true ]; then
|
if [ "$RAHandHeldShader" == true ]; then
|
||||||
RetroArch_MATshadersOnAll
|
RetroArch_MATshadersOnAll
|
||||||
else
|
else
|
||||||
RetroArch_MATshadersOffAll
|
RetroArch_MATshadersOffAll
|
||||||
|
@ -25,7 +25,7 @@ Decky_shaders_LCD(){
|
||||||
}
|
}
|
||||||
|
|
||||||
Decky_shaders_2D(){
|
Decky_shaders_2D(){
|
||||||
if [ "$RAHandClassic2D" = true ]; then
|
if [ "$RAHandClassic2D" == true ]; then
|
||||||
RetroArch_CRTshaderOnAll
|
RetroArch_CRTshaderOnAll
|
||||||
else
|
else
|
||||||
RetroArch_CRTshaderOffAll
|
RetroArch_CRTshaderOffAll
|
||||||
|
@ -33,7 +33,7 @@ Decky_shaders_2D(){
|
||||||
}
|
}
|
||||||
|
|
||||||
Decky_shaders_3D(){
|
Decky_shaders_3D(){
|
||||||
if [ "$RAHandClassic3D" = true ]; then
|
if [ "$RAHandClassic3D" == true ]; then
|
||||||
RetroArch_3DCRTshaderOnAll
|
RetroArch_3DCRTshaderOnAll
|
||||||
else
|
else
|
||||||
RetroArch_3DCRTshaderOffAll
|
RetroArch_3DCRTshaderOffAll
|
||||||
|
@ -41,7 +41,7 @@ Decky_shaders_3D(){
|
||||||
}
|
}
|
||||||
|
|
||||||
Decky_ar_snes(){
|
Decky_ar_snes(){
|
||||||
if [ "$arSnes" = 87 ]; then
|
if [ "$arSnes" == 87 ]; then
|
||||||
RetroArch_snes_ar87
|
RetroArch_snes_ar87
|
||||||
RetroArch_nes_ar87
|
RetroArch_nes_ar87
|
||||||
else
|
else
|
||||||
|
@ -60,7 +60,7 @@ Decky_setAR(){
|
||||||
}
|
}
|
||||||
|
|
||||||
Decky_setClourd(){
|
Decky_setClourd(){
|
||||||
if [ $cloud_sync_status = "false" ]; then
|
if [ $cloud_sync_status == "false" ]; then
|
||||||
setSetting cloud_sync_status "true" > /dev/null
|
setSetting cloud_sync_status "true" > /dev/null
|
||||||
else
|
else
|
||||||
setSetting cloud_sync_status "false" > /dev/null
|
setSetting cloud_sync_status "false" > /dev/null
|
||||||
|
|
|
@ -4,7 +4,7 @@ if [ appleChip != "Linux" ]; then
|
||||||
PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
|
PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$EMUDECKGIT" = "" ]]; then
|
if [[ "$EMUDECKGIT" == "" ]]; then
|
||||||
EMUDECKGIT="$HOME/.config/EmuDeck/backend"
|
EMUDECKGIT="$HOME/.config/EmuDeck/backend"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
appImageInit() {
|
appImageInit() {
|
||||||
|
|
||||||
if [ "$system" = "chimeraos" ]; then
|
if [ "$system" == "chimeraos" ]; then
|
||||||
ESDE_chimeraOS
|
ESDE_chimeraOS
|
||||||
mkdir -p $HOME/Applications
|
mkdir -p $HOME/Applications
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ checkPS1BIOS(){
|
||||||
PSBios=(239665b1a3dade1b5a52c06338011044 2118230527a9f51bd9216e32fa912842 849515939161e62f6b866f6853006780 dc2b9bf8da62ec93e868cfd29f0d067d 54847e693405ffeb0359c6287434cbef cba733ceeff5aef5c32254f1d617fa62 da27e8b6dab242d8f91a9b25d80c63b8 417b34706319da7cf001e76e40136c23 57a06303dfa9cf9351222dfcbb4a29d9 81328b966e6dcf7ea1e32e55e1c104bb 924e392ed05558ffdb115408c263dccf e2110b8a2b97a8e0b857a45d32f7e187 ca5cfc321f916756e3f0effbfaeba13b 8dd7d5296a650fac7319bce665a6a53c 490f666e1afb15b7362b406ed1cea246 32736f17079d0b2b7024407c39bd3050 8e4c14f567745eff2f0408c8129f72a6 b84be139db3ee6cbd075630aa20a6553 1e68c231d0896b7eadcad1d7d8e76129 b9d9a0286c33dc6b7237bb13cd46fdee 8abc1b549a4a80954addc48ef02c4521 9a09ab7e49b422c007e6d54d7c49b965 b10f5e0e3d9eb60e5159690680b1e774 6e3735ff4c7dc899ee98981385f6f3d0 de93caec13d1a141a40a79f5c86168d6 c53ca5908936d412331790f4426c6c33 476d68a94ccec3b9c8303bbd1daf2810 d8f485717a5237285e4d7c5f881b7f32 fbb5f59ec332451debccf1e377017237 81bbe60ba7a3d1cea1d48c14cbcc647b)
|
PSBios=(239665b1a3dade1b5a52c06338011044 2118230527a9f51bd9216e32fa912842 849515939161e62f6b866f6853006780 dc2b9bf8da62ec93e868cfd29f0d067d 54847e693405ffeb0359c6287434cbef cba733ceeff5aef5c32254f1d617fa62 da27e8b6dab242d8f91a9b25d80c63b8 417b34706319da7cf001e76e40136c23 57a06303dfa9cf9351222dfcbb4a29d9 81328b966e6dcf7ea1e32e55e1c104bb 924e392ed05558ffdb115408c263dccf e2110b8a2b97a8e0b857a45d32f7e187 ca5cfc321f916756e3f0effbfaeba13b 8dd7d5296a650fac7319bce665a6a53c 490f666e1afb15b7362b406ed1cea246 32736f17079d0b2b7024407c39bd3050 8e4c14f567745eff2f0408c8129f72a6 b84be139db3ee6cbd075630aa20a6553 1e68c231d0896b7eadcad1d7d8e76129 b9d9a0286c33dc6b7237bb13cd46fdee 8abc1b549a4a80954addc48ef02c4521 9a09ab7e49b422c007e6d54d7c49b965 b10f5e0e3d9eb60e5159690680b1e774 6e3735ff4c7dc899ee98981385f6f3d0 de93caec13d1a141a40a79f5c86168d6 c53ca5908936d412331790f4426c6c33 476d68a94ccec3b9c8303bbd1daf2810 d8f485717a5237285e4d7c5f881b7f32 fbb5f59ec332451debccf1e377017237 81bbe60ba7a3d1cea1d48c14cbcc647b)
|
||||||
for i in "${PSBios[@]}"
|
for i in "${PSBios[@]}"
|
||||||
do
|
do
|
||||||
if [[ "$md5" = *"${i}"* ]]; then
|
if [[ "$md5" == *"${i}"* ]]; then
|
||||||
PSXBIOS=true
|
PSXBIOS=true
|
||||||
#mv "$entry" "${entry,,}"
|
#mv "$entry" "${entry,,}"
|
||||||
break
|
break
|
||||||
|
@ -25,7 +25,7 @@ checkPS1BIOS(){
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
if [ $PSXBIOS = true ]; then
|
if [ $PSXBIOS == true ]; then
|
||||||
echo "$entry true";
|
echo "$entry true";
|
||||||
else
|
else
|
||||||
echo "false";
|
echo "false";
|
||||||
|
@ -45,7 +45,7 @@ checkPS2BIOS(){
|
||||||
PS2Bios=(32f2e4d5ff5ee11072a6bc45530f5765 acf4730ceb38ac9d8c7d8e21f2614600 acf9968c8f596d2b15f42272082513d1 b1459d7446c69e3e97e6ace3ae23dd1c d3f1853a16c2ec18f3cd1ae655213308 63e6fd9b3c72e0d7b920e80cf76645cd a20c97c02210f16678ca3010127caf36 8db2fbbac7413bf3e7154c1e0715e565 91c87cb2f2eb6ce529a2360f80ce2457 3016b3dd42148a67e2c048595ca4d7ce b7fa11e87d51752a98b38e3e691cbf17 f63bc530bd7ad7c026fcd6f7bd0d9525 cee06bd68c333fc5768244eae77e4495 0bf988e9c7aaa4c051805b0fa6eb3387 8accc3c49ac45f5ae2c5db0adc854633 6f9a6feb749f0533aaae2cc45090b0ed 838544f12de9b0abc90811279ee223c8 bb6bbc850458fff08af30e969ffd0175 815ac991d8bc3b364696bead3457de7d b107b5710042abe887c0f6175f6e94bb ab55cceea548303c22c72570cfd4dd71 18bcaadb9ff74ed3add26cdf709fff2e 491209dd815ceee9de02dbbc408c06d6 7200a03d51cacc4c14fcdfdbc4898431 8359638e857c8bc18c3c18ac17d9cc3c 352d2ff9b3f68be7e6fa7e6dd8389346 d5ce2c7d119f563ce04bc04dbc3a323e 0d2228e6fd4fb639c9c39d077a9ec10c 72da56fccb8fcd77bba16d1b6f479914 5b1f47fbeb277c6be2fccdd6344ff2fd 315a4003535dfda689752cb25f24785c 312ad4816c232a9606e56f946bc0678a 666018ffec65c5c7e04796081295c6c7 6e69920fa6eef8522a1d688a11e41bc6 eb960de68f0c0f7f9fa083e9f79d0360 8aa12ce243210128c5074552d3b86251 240d4c5ddd4b54069bdc4a3cd2faf99d 1c6cd089e6c83da618fbf2a081eb4888 463d87789c555a4a7604e97d7db545d1 35461cecaa51712b300b2d6798825048 bd6415094e1ce9e05daabe85de807666 2e70ad008d4ec8549aada8002fdf42fb b53d51edc7fc086685e31b811dc32aad 1b6e631b536247756287b916f9396872 00da1b177096cfd2532c8fa22b43e667 afde410bd026c16be605a1ae4bd651fd 81f4336c1de607dd0865011c0447052e 0eee5d1c779aa50e94edd168b4ebf42e d333558cc14561c1fdc334c75d5f37b7 dc752f160044f2ed5fc1f4964db2a095 63ead1d74893bf7f36880af81f68a82d 3e3e030c0f600442fa05b94f87a1e238 1ad977bb539fc9448a08ab276a836bbc eb4f40fcf4911ede39c1bbfe91e7a89a 9959ad7a8685cad66206e7752ca23f8b 929a14baca1776b00869f983aa6e14d2 573f7d4a430c32b3cc0fd0c41e104bbd df63a604e8bff5b0599bd1a6c2721bd0 5b1ba4bb914406fae75ab8e38901684d cb801b7920a7d536ba07b6534d2433ca af60e6d1a939019d55e5b330d24b1c25 549a66d0c698635ca9fa3ab012da7129 5de9d0d730ff1e7ad122806335332524 21fe4cad111f7dc0f9af29477057f88d 40c11c063b3b9409aa5e4058e984e30c 80bbb237a6af9c611df43b16b930b683 c37bce95d32b2be480f87dd32704e664 80ac46fa7e77b8ab4366e86948e54f83 21038400dc633070a78ad53090c53017 dc69f0643a3030aaa4797501b483d6c4 30d56e79d89fbddf10938fa67fe3f34e 93ea3bcee4252627919175ff1b16a1d9 d3e81e95db25f5a86a7b7474550a2155)
|
PS2Bios=(32f2e4d5ff5ee11072a6bc45530f5765 acf4730ceb38ac9d8c7d8e21f2614600 acf9968c8f596d2b15f42272082513d1 b1459d7446c69e3e97e6ace3ae23dd1c d3f1853a16c2ec18f3cd1ae655213308 63e6fd9b3c72e0d7b920e80cf76645cd a20c97c02210f16678ca3010127caf36 8db2fbbac7413bf3e7154c1e0715e565 91c87cb2f2eb6ce529a2360f80ce2457 3016b3dd42148a67e2c048595ca4d7ce b7fa11e87d51752a98b38e3e691cbf17 f63bc530bd7ad7c026fcd6f7bd0d9525 cee06bd68c333fc5768244eae77e4495 0bf988e9c7aaa4c051805b0fa6eb3387 8accc3c49ac45f5ae2c5db0adc854633 6f9a6feb749f0533aaae2cc45090b0ed 838544f12de9b0abc90811279ee223c8 bb6bbc850458fff08af30e969ffd0175 815ac991d8bc3b364696bead3457de7d b107b5710042abe887c0f6175f6e94bb ab55cceea548303c22c72570cfd4dd71 18bcaadb9ff74ed3add26cdf709fff2e 491209dd815ceee9de02dbbc408c06d6 7200a03d51cacc4c14fcdfdbc4898431 8359638e857c8bc18c3c18ac17d9cc3c 352d2ff9b3f68be7e6fa7e6dd8389346 d5ce2c7d119f563ce04bc04dbc3a323e 0d2228e6fd4fb639c9c39d077a9ec10c 72da56fccb8fcd77bba16d1b6f479914 5b1f47fbeb277c6be2fccdd6344ff2fd 315a4003535dfda689752cb25f24785c 312ad4816c232a9606e56f946bc0678a 666018ffec65c5c7e04796081295c6c7 6e69920fa6eef8522a1d688a11e41bc6 eb960de68f0c0f7f9fa083e9f79d0360 8aa12ce243210128c5074552d3b86251 240d4c5ddd4b54069bdc4a3cd2faf99d 1c6cd089e6c83da618fbf2a081eb4888 463d87789c555a4a7604e97d7db545d1 35461cecaa51712b300b2d6798825048 bd6415094e1ce9e05daabe85de807666 2e70ad008d4ec8549aada8002fdf42fb b53d51edc7fc086685e31b811dc32aad 1b6e631b536247756287b916f9396872 00da1b177096cfd2532c8fa22b43e667 afde410bd026c16be605a1ae4bd651fd 81f4336c1de607dd0865011c0447052e 0eee5d1c779aa50e94edd168b4ebf42e d333558cc14561c1fdc334c75d5f37b7 dc752f160044f2ed5fc1f4964db2a095 63ead1d74893bf7f36880af81f68a82d 3e3e030c0f600442fa05b94f87a1e238 1ad977bb539fc9448a08ab276a836bbc eb4f40fcf4911ede39c1bbfe91e7a89a 9959ad7a8685cad66206e7752ca23f8b 929a14baca1776b00869f983aa6e14d2 573f7d4a430c32b3cc0fd0c41e104bbd df63a604e8bff5b0599bd1a6c2721bd0 5b1ba4bb914406fae75ab8e38901684d cb801b7920a7d536ba07b6534d2433ca af60e6d1a939019d55e5b330d24b1c25 549a66d0c698635ca9fa3ab012da7129 5de9d0d730ff1e7ad122806335332524 21fe4cad111f7dc0f9af29477057f88d 40c11c063b3b9409aa5e4058e984e30c 80bbb237a6af9c611df43b16b930b683 c37bce95d32b2be480f87dd32704e664 80ac46fa7e77b8ab4366e86948e54f83 21038400dc633070a78ad53090c53017 dc69f0643a3030aaa4797501b483d6c4 30d56e79d89fbddf10938fa67fe3f34e 93ea3bcee4252627919175ff1b16a1d9 d3e81e95db25f5a86a7b7474550a2155)
|
||||||
for i in "${PS2Bios[@]}"
|
for i in "${PS2Bios[@]}"
|
||||||
do
|
do
|
||||||
if [[ "$md5" = *"${i}"* ]]; then
|
if [[ "$md5" == *"${i}"* ]]; then
|
||||||
PS2BIOS=true
|
PS2BIOS=true
|
||||||
#mv "$entry" "${entry,,}"
|
#mv "$entry" "${entry,,}"
|
||||||
break
|
break
|
||||||
|
@ -58,7 +58,7 @@ checkPS2BIOS(){
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
if [ $PS2BIOS = true ]; then
|
if [ $PS2BIOS == true ]; then
|
||||||
echo "true";
|
echo "true";
|
||||||
else
|
else
|
||||||
echo "false";
|
echo "false";
|
||||||
|
@ -87,7 +87,7 @@ checkSegaCDBios(){
|
||||||
CDBios=(bc6ae4e1db01a2f349d9af392bf7e2bd 29ad9ce848b49d0f9cefc294137f653c cc049159d7e744c15eee080c241273b4 278a9397d192149e84e820ac621a8edd a3ddcc8483b0368141adfd99d9a1e466 bdeb4c47da613946d422d97d98b21cda 96ea588d647f2ab1f291279fc691663c 2efd74e3232ff260e371b99f84024f7f e66fa1dc5820d254611fdcdba0662372 683a8a9e273662561172468dfa2858eb 310a9081d2edf2d316ab38813136725e 9b562ebf2d095bf1dabadbc1881f519a 854b9150240a198070150e4566ae1290 b10c0a97abc57b758497d3fae6ab35a4 ecc837c31d77b774c6e27e38f828aa9a baca1df271d7c11fe50087c0358f4eb5)
|
CDBios=(bc6ae4e1db01a2f349d9af392bf7e2bd 29ad9ce848b49d0f9cefc294137f653c cc049159d7e744c15eee080c241273b4 278a9397d192149e84e820ac621a8edd a3ddcc8483b0368141adfd99d9a1e466 bdeb4c47da613946d422d97d98b21cda 96ea588d647f2ab1f291279fc691663c 2efd74e3232ff260e371b99f84024f7f e66fa1dc5820d254611fdcdba0662372 683a8a9e273662561172468dfa2858eb 310a9081d2edf2d316ab38813136725e 9b562ebf2d095bf1dabadbc1881f519a 854b9150240a198070150e4566ae1290 b10c0a97abc57b758497d3fae6ab35a4 ecc837c31d77b774c6e27e38f828aa9a baca1df271d7c11fe50087c0358f4eb5)
|
||||||
for i in "${CDBios[@]}"
|
for i in "${CDBios[@]}"
|
||||||
do
|
do
|
||||||
if [[ "$md5" = *"${i}"* ]]; then
|
if [[ "$md5" == *"${i}"* ]]; then
|
||||||
SEGACDBIOS=true
|
SEGACDBIOS=true
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
|
@ -99,7 +99,7 @@ checkSegaCDBios(){
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
if [ $SEGACDBIOS = true ]; then
|
if [ $SEGACDBIOS == true ]; then
|
||||||
echo "true";
|
echo "true";
|
||||||
else
|
else
|
||||||
echo "false";
|
echo "false";
|
||||||
|
@ -119,7 +119,7 @@ checkSaturnBios(){
|
||||||
SaturnBios=(af5828fdff51384f99b3c4926be27762 85ec9ca47d8f6807718151cbcca8b964 f273555d7d91e8a5a6bfd9bcf066331c 3240872c70984b6cbfda1586cab68dbe ac4e4b6522e200c0d23d371a8cecbfd3 3ea3202e2634cb47cb90f3a05c015010 cb2cebc1b6e573b7c44523d037edcd45 0306c0e408d6682dd2d86324bd4ac661)
|
SaturnBios=(af5828fdff51384f99b3c4926be27762 85ec9ca47d8f6807718151cbcca8b964 f273555d7d91e8a5a6bfd9bcf066331c 3240872c70984b6cbfda1586cab68dbe ac4e4b6522e200c0d23d371a8cecbfd3 3ea3202e2634cb47cb90f3a05c015010 cb2cebc1b6e573b7c44523d037edcd45 0306c0e408d6682dd2d86324bd4ac661)
|
||||||
for i in "${SaturnBios[@]}"
|
for i in "${SaturnBios[@]}"
|
||||||
do
|
do
|
||||||
if [[ "$md5" = *"${i}"* ]]; then
|
if [[ "$md5" == *"${i}"* ]]; then
|
||||||
SATURNBIOS=true
|
SATURNBIOS=true
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
|
@ -131,7 +131,7 @@ checkSaturnBios(){
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
if [ $SATURNBIOS = true ]; then
|
if [ $SATURNBIOS == true ]; then
|
||||||
echo "true";
|
echo "true";
|
||||||
else
|
else
|
||||||
echo "false";
|
echo "false";
|
||||||
|
@ -152,7 +152,7 @@ checkDreamcastBios(){
|
||||||
local hashes=(d407fcf70b56acb84b8c77c93b0e5327 e10c53c2f8b90bab96ead2d368858623 93a9766f14159b403178ac77417c6b68 0a93f7940c455905bea6e392dfde92a4)
|
local hashes=(d407fcf70b56acb84b8c77c93b0e5327 e10c53c2f8b90bab96ead2d368858623 93a9766f14159b403178ac77417c6b68 0a93f7940c455905bea6e392dfde92a4)
|
||||||
for i in "${hashes[@]}"
|
for i in "${hashes[@]}"
|
||||||
do
|
do
|
||||||
if [[ "$md5" = *"${i}"* ]]; then
|
if [[ "$md5" == *"${i}"* ]]; then
|
||||||
BIOS=true
|
BIOS=true
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
|
@ -164,7 +164,7 @@ checkDreamcastBios(){
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
if [ $BIOS = true ]; then
|
if [ $BIOS == true ]; then
|
||||||
echo "true";
|
echo "true";
|
||||||
else
|
else
|
||||||
echo "false";
|
echo "false";
|
||||||
|
@ -184,7 +184,7 @@ checkDSBios(){
|
||||||
local hashes=(145eaef5bd3037cbc247c213bb3da1b3 df692a80a5b1bc90728bc3dfc76cd948 a392174eb3e572fed6447e956bde4b25)
|
local hashes=(145eaef5bd3037cbc247c213bb3da1b3 df692a80a5b1bc90728bc3dfc76cd948 a392174eb3e572fed6447e956bde4b25)
|
||||||
for i in "${hashes[@]}"
|
for i in "${hashes[@]}"
|
||||||
do
|
do
|
||||||
if [[ "$md5" = *"${i}"* ]]; then
|
if [[ "$md5" == *"${i}"* ]]; then
|
||||||
BIOS=true
|
BIOS=true
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
|
@ -196,7 +196,7 @@ checkDSBios(){
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
if [ $BIOS = true ]; then
|
if [ $BIOS == true ]; then
|
||||||
echo "true";
|
echo "true";
|
||||||
else
|
else
|
||||||
echo "false";
|
echo "false";
|
||||||
|
|
|
@ -102,7 +102,7 @@ manageServicesMenu() {
|
||||||
# Check if installed
|
# Check if installed
|
||||||
isInstalled() {
|
isInstalled() {
|
||||||
local ID="$1"
|
local ID="$1"
|
||||||
if [ "$(flatpak --columns=app list | grep "$1")" = "$1" ]; then
|
if [ "$(flatpak --columns=app list | grep "$1")" == "$1" ]; then
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
return 0
|
return 0
|
||||||
|
@ -124,7 +124,7 @@ manageRPSMenu() {
|
||||||
declare -a arrAllRP=()
|
declare -a arrAllRP=()
|
||||||
Chiaki_IsInstalled
|
Chiaki_IsInstalled
|
||||||
ans=$?
|
ans=$?
|
||||||
if [ "$ans" = "1" ]; then
|
if [ "$ans" == "1" ]; then
|
||||||
arrAllRP+=(true "Chiaki")
|
arrAllRP+=(true "Chiaki")
|
||||||
else
|
else
|
||||||
arrAllRP+=(false "Chiaki")
|
arrAllRP+=(false "Chiaki")
|
||||||
|
@ -132,7 +132,7 @@ manageRPSMenu() {
|
||||||
|
|
||||||
Greenlight_IsInstalled
|
Greenlight_IsInstalled
|
||||||
ans=$?
|
ans=$?
|
||||||
if [ "$ans" = "1" ]; then
|
if [ "$ans" == "1" ]; then
|
||||||
arrAllRP+=(true "Greenlight")
|
arrAllRP+=(true "Greenlight")
|
||||||
else
|
else
|
||||||
arrAllRP+=(false "Greenlight")
|
arrAllRP+=(false "Greenlight")
|
||||||
|
@ -140,7 +140,7 @@ manageRPSMenu() {
|
||||||
|
|
||||||
Moonlight_IsInstalled
|
Moonlight_IsInstalled
|
||||||
ans=$?
|
ans=$?
|
||||||
if [ "$ans" = "1" ]; then
|
if [ "$ans" == "1" ]; then
|
||||||
arrAllRP+=(true "Moonlight")
|
arrAllRP+=(true "Moonlight")
|
||||||
else
|
else
|
||||||
arrAllRP+=(false "Moonlight")
|
arrAllRP+=(false "Moonlight")
|
||||||
|
@ -148,7 +148,7 @@ manageRPSMenu() {
|
||||||
|
|
||||||
Parsec_IsInstalled
|
Parsec_IsInstalled
|
||||||
ans=$?
|
ans=$?
|
||||||
if [ "$ans" = "1" ]; then
|
if [ "$ans" == "1" ]; then
|
||||||
arrAllRP+=(true "Parsec")
|
arrAllRP+=(true "Parsec")
|
||||||
else
|
else
|
||||||
arrAllRP+=(false "Parsec")
|
arrAllRP+=(false "Parsec")
|
||||||
|
@ -171,34 +171,34 @@ manageRPSMenu() {
|
||||||
IFS='|' read -r -a arrChosen <<< "$RP"
|
IFS='|' read -r -a arrChosen <<< "$RP"
|
||||||
for i in "${arrChosen[@]}"; do
|
for i in "${arrChosen[@]}"; do
|
||||||
# Install/Update selected
|
# Install/Update selected
|
||||||
if [ "$i" = "Chiaki" ]; then
|
if [ "$i" == "Chiaki" ]; then
|
||||||
Chiaki_IsInstalled
|
Chiaki_IsInstalled
|
||||||
ans=$?
|
ans=$?
|
||||||
if [ "$ans" = "1" ]; then
|
if [ "$ans" == "1" ]; then
|
||||||
Chiaki_update
|
Chiaki_update
|
||||||
else
|
else
|
||||||
Chiaki_install
|
Chiaki_install
|
||||||
fi
|
fi
|
||||||
elif [ "$i" = "Greenlight" ]; then
|
elif [ "$i" == "Greenlight" ]; then
|
||||||
Greenlight_IsInstalled
|
Greenlight_IsInstalled
|
||||||
ans=$?
|
ans=$?
|
||||||
if [ "$ans" = "1" ]; then
|
if [ "$ans" == "1" ]; then
|
||||||
Greenlight_update
|
Greenlight_update
|
||||||
else
|
else
|
||||||
Greenlight_install
|
Greenlight_install
|
||||||
fi
|
fi
|
||||||
elif [ "$i" = "Moonlight" ]; then
|
elif [ "$i" == "Moonlight" ]; then
|
||||||
Moonlight_IsInstalled
|
Moonlight_IsInstalled
|
||||||
ans=$?
|
ans=$?
|
||||||
if [ "$ans" = "1" ]; then
|
if [ "$ans" == "1" ]; then
|
||||||
Moonlight_update
|
Moonlight_update
|
||||||
else
|
else
|
||||||
Moonlight_install
|
Moonlight_install
|
||||||
fi
|
fi
|
||||||
elif [ "$i" = "Parsec" ]; then
|
elif [ "$i" == "Parsec" ]; then
|
||||||
Parsec_IsInstalled
|
Parsec_IsInstalled
|
||||||
ans=$?
|
ans=$?
|
||||||
if [ "$ans" = "1" ]; then
|
if [ "$ans" == "1" ]; then
|
||||||
Parsec_update
|
Parsec_update
|
||||||
else
|
else
|
||||||
Parsec_install
|
Parsec_install
|
||||||
|
@ -248,7 +248,7 @@ changeSettingsMenu() {
|
||||||
)
|
)
|
||||||
isInstalled "$defaultBrowser"
|
isInstalled "$defaultBrowser"
|
||||||
ans=$?
|
ans=$?
|
||||||
if [ "$ans" = "1" ]; then
|
if [ "$ans" == "1" ]; then
|
||||||
arrBrowsOpts+=(false "System Default: $defaultBrowser" true)
|
arrBrowsOpts+=(false "System Default: $defaultBrowser" true)
|
||||||
else
|
else
|
||||||
arrBrowsOpts+=(false "System Default: $defaultBrowser" false)
|
arrBrowsOpts+=(false "System Default: $defaultBrowser" false)
|
||||||
|
@ -256,7 +256,7 @@ changeSettingsMenu() {
|
||||||
|
|
||||||
# Add supported browsers to selection list
|
# Add supported browsers to selection list
|
||||||
for brows in "${arrSupBrows[@]}"; do
|
for brows in "${arrSupBrows[@]}"; do
|
||||||
if [[ "$(flatpak --columns=app list | grep "${brows}")" = *"${brows}"* ]]; then
|
if [[ "$(flatpak --columns=app list | grep "${brows}")" == *"${brows}"* ]]; then
|
||||||
arrBrowsOpts+=(false "$brows" true)
|
arrBrowsOpts+=(false "$brows" true)
|
||||||
else
|
else
|
||||||
arrBrowsOpts+=(false "$brows" false)
|
arrBrowsOpts+=(false "$brows" false)
|
||||||
|
@ -277,10 +277,10 @@ changeSettingsMenu() {
|
||||||
arrChosen=()
|
arrChosen=()
|
||||||
IFS='|' read -r -a arrChosen <<< "$BROWSER"
|
IFS='|' read -r -a arrChosen <<< "$BROWSER"
|
||||||
for BROWSER in "${arrChosen[@]}"; do
|
for BROWSER in "${arrChosen[@]}"; do
|
||||||
if [ "$BROWSER" = "System Default: $defaultBrowser" ]; then
|
if [ "$BROWSER" == "System Default: $defaultBrowser" ]; then
|
||||||
isInstalled "$defaultBrowser"
|
isInstalled "$defaultBrowser"
|
||||||
ans=$?
|
ans=$?
|
||||||
if [ "$ans" = "0" ]; then
|
if [ "$ans" == "0" ]; then
|
||||||
installFP "$defaultBrowser"
|
installFP "$defaultBrowser"
|
||||||
fi
|
fi
|
||||||
setCloudSetting BROWSERAPP "$defaultBrowser"
|
setCloudSetting BROWSERAPP "$defaultBrowser"
|
||||||
|
@ -288,7 +288,7 @@ changeSettingsMenu() {
|
||||||
else
|
else
|
||||||
isInstalled "$BROWSER"
|
isInstalled "$BROWSER"
|
||||||
ans=$?
|
ans=$?
|
||||||
if [ "$ans" = "0" ]; then
|
if [ "$ans" == "0" ]; then
|
||||||
installFP "$BROWSER"
|
installFP "$BROWSER"
|
||||||
fi
|
fi
|
||||||
setCloudSetting BROWSERAPP "$BROWSER"
|
setCloudSetting BROWSERAPP "$BROWSER"
|
||||||
|
@ -348,20 +348,20 @@ csmMainMenu() {
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CHOICE" = "Manage Cloud Services" ]; then
|
if [ "$CHOICE" == "Manage Cloud Services" ]; then
|
||||||
manageServicesMenu
|
manageServicesMenu
|
||||||
elif [ "$CHOICE" = "Manage Remote Play Clients" ]; then
|
elif [ "$CHOICE" == "Manage Remote Play Clients" ]; then
|
||||||
manageRPSMenu
|
manageRPSMenu
|
||||||
elif [ "$CHOICE" = "Change Settings" ]; then
|
elif [ "$CHOICE" == "Change Settings" ]; then
|
||||||
changeSettingsMenu
|
changeSettingsMenu
|
||||||
elif [ "$CHOICE" = "Quit" ]; then
|
elif [ "$CHOICE" == "Quit" ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
fixCloudScripts() {
|
fixCloudScripts() {
|
||||||
###v1.0 Fixes
|
###v1.0 Fixes
|
||||||
if [ "$cloudconfversion" = "" ]; then
|
if [ "$cloudconfversion" == "" ]; then
|
||||||
### Substitute "BROWSERAPP" for "FILEFORWARDING" in cloud scripts and cloud.conf
|
### Substitute "BROWSERAPP" for "FILEFORWARDING" in cloud scripts and cloud.conf
|
||||||
cd "$romsPath/cloud"
|
cd "$romsPath/cloud"
|
||||||
for file in ./*.sh; do
|
for file in ./*.sh; do
|
||||||
|
@ -409,7 +409,7 @@ fixCloudScripts() {
|
||||||
# Initialization #
|
# Initialization #
|
||||||
##################
|
##################
|
||||||
|
|
||||||
if [[ "$EMUDECKGIT" = "" ]]; then
|
if [[ "$EMUDECKGIT" == "" ]]; then
|
||||||
EMUDECKGIT="$HOME/.config/EmuDeck/backend"
|
EMUDECKGIT="$HOME/.config/EmuDeck/backend"
|
||||||
fi
|
fi
|
||||||
LOCALCLOUDFILES="$EMUDECKGIT/tools/cloud"
|
LOCALCLOUDFILES="$EMUDECKGIT/tools/cloud"
|
||||||
|
|
|
@ -7,7 +7,7 @@ configEmuAI(){
|
||||||
gitLocation=$4
|
gitLocation=$4
|
||||||
overwrite=$5
|
overwrite=$5
|
||||||
|
|
||||||
if [[ $overwrite = 'true' ]]; then
|
if [[ $overwrite == 'true' ]]; then
|
||||||
overwrite="--backup --suffix=.bak"
|
overwrite="--backup --suffix=.bak"
|
||||||
else
|
else
|
||||||
overwrite="--ignore-existing"
|
overwrite="--ignore-existing"
|
||||||
|
|
|
@ -5,7 +5,7 @@ configEmuFP(){
|
||||||
ID=$2
|
ID=$2
|
||||||
overwrite=$3
|
overwrite=$3
|
||||||
|
|
||||||
if [[ $overwrite = 'true' ]]; then
|
if [[ $overwrite == 'true' ]]; then
|
||||||
overwrite="--backup --suffix=.bak"
|
overwrite="--backup --suffix=.bak"
|
||||||
else
|
else
|
||||||
overwrite="--ignore-existing"
|
overwrite="--ignore-existing"
|
||||||
|
|
|
@ -36,7 +36,7 @@ function Filebrowser()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curdir=$(pwd)
|
curdir=$(pwd)
|
||||||
if [ "$curdir" = "/" ] ; then # Check if you are at root folder
|
if [ "$curdir" == "/" ] ; then # Check if you are at root folder
|
||||||
selection=$(whiptail --title "$1" \
|
selection=$(whiptail --title "$1" \
|
||||||
--menu "PgUp/PgDn/Arrow Enter Selects File/Folder\nor Tab Key\n$curdir" 0 0 0 \
|
--menu "PgUp/PgDn/Arrow Enter Selects File/Folder\nor Tab Key\n$curdir" 0 0 0 \
|
||||||
--cancel-button Cancel \
|
--cancel-button Cancel \
|
||||||
|
@ -55,7 +55,7 @@ function Filebrowser()
|
||||||
if [[ -d "$selection" ]]; then # Check if Directory Selected
|
if [[ -d "$selection" ]]; then # Check if Directory Selected
|
||||||
Filebrowser "$1" "$selection"
|
Filebrowser "$1" "$selection"
|
||||||
elif [[ -f "$selection" ]]; then # Check if File Selected
|
elif [[ -f "$selection" ]]; then # Check if File Selected
|
||||||
if [[ $selection = *$filext ]]; then # Check if selected File has .jpg extension
|
if [[ $selection == *$filext ]]; then # Check if selected File has .jpg extension
|
||||||
if (whiptail --title "Confirm Selection" --yesno "DirPath : $curdir\nFileName: $selection" 0 0 \
|
if (whiptail --title "Confirm Selection" --yesno "DirPath : $curdir\nFileName: $selection" 0 0 \
|
||||||
--yes-button "Confirm" \
|
--yes-button "Confirm" \
|
||||||
--no-button "Retry"); then
|
--no-button "Retry"); then
|
||||||
|
|
|
@ -40,9 +40,9 @@ function getScreenAR(){
|
||||||
fi
|
fi
|
||||||
|
|
||||||
aspectRatio=$(awk -v screenWidth="$screenWidth" -v screenHeight="$screenHeight" 'BEGIN{printf "%.2f\n", (screenWidth/screenHeight)}')
|
aspectRatio=$(awk -v screenWidth="$screenWidth" -v screenHeight="$screenHeight" 'BEGIN{printf "%.2f\n", (screenWidth/screenHeight)}')
|
||||||
if [ "$aspectRatio" = 1.60 ]; then
|
if [ "$aspectRatio" == 1.60 ]; then
|
||||||
ar=1610
|
ar=1610
|
||||||
elif [ "$aspectRatio" = 1.78 ]; then
|
elif [ "$aspectRatio" == 1.78 ]; then
|
||||||
ar=169
|
ar=169
|
||||||
else
|
else
|
||||||
ar=0
|
ar=0
|
||||||
|
@ -107,7 +107,7 @@ function testLocationValid(){
|
||||||
local testLocation=$2
|
local testLocation=$2
|
||||||
local result=""
|
local result=""
|
||||||
|
|
||||||
if [[ "$testLocation" = *" "* ]]; then
|
if [[ "$testLocation" == *" "* ]]; then
|
||||||
result="Invalid: $locationName contains spaces"
|
result="Invalid: $locationName contains spaces"
|
||||||
else
|
else
|
||||||
touch "$testLocation/testwrite"
|
touch "$testLocation/testwrite"
|
||||||
|
@ -192,13 +192,13 @@ function setSetting () {
|
||||||
local new_val=$2
|
local new_val=$2
|
||||||
|
|
||||||
settingExists=$(grep -rw "$emuDecksettingsFile" -e "$var")
|
settingExists=$(grep -rw "$emuDecksettingsFile" -e "$var")
|
||||||
if [[ $settingExists = '' ]]; then
|
if [[ $settingExists == '' ]]; then
|
||||||
#insert setting to end
|
#insert setting to end
|
||||||
echo "variable not found in settings. Adding $var=$new_val to $emuDecksettingsFile"
|
echo "variable not found in settings. Adding $var=$new_val to $emuDecksettingsFile"
|
||||||
sed -i -e '$a\'"$var=$new_val" "$emuDecksettingsFile"
|
sed -i -e '$a\'"$var=$new_val" "$emuDecksettingsFile"
|
||||||
elif [[ ! $settingExists = '' ]]; then
|
elif [[ ! $settingExists == '' ]]; then
|
||||||
echo "Old value $settingExists"
|
echo "Old value $settingExists"
|
||||||
if [[ $settingExists = "$var=$new_val" ]]; then
|
if [[ $settingExists == "$var=$new_val" ]]; then
|
||||||
echo "Setting unchanged, skipping"
|
echo "Setting unchanged, skipping"
|
||||||
else
|
else
|
||||||
changeLine "$var=" "$var=$new_val" "$emuDecksettingsFile"
|
changeLine "$var=" "$var=$new_val" "$emuDecksettingsFile"
|
||||||
|
@ -232,7 +232,7 @@ function updateOrAppendConfigLine(){
|
||||||
touch "$configFile"
|
touch "$configFile"
|
||||||
|
|
||||||
local optionFound=$(grep -rnw "$configFile" -e "$option")
|
local optionFound=$(grep -rnw "$configFile" -e "$option")
|
||||||
if [[ "$optionFound" = '' ]]; then
|
if [[ "$optionFound" == '' ]]; then
|
||||||
echo "appending: $replacement to $configFile"
|
echo "appending: $replacement to $configFile"
|
||||||
echo "$replacement" >> "$configFile"
|
echo "$replacement" >> "$configFile"
|
||||||
else
|
else
|
||||||
|
@ -375,13 +375,13 @@ function checkForFile(){
|
||||||
local file=$1
|
local file=$1
|
||||||
local delete=$2
|
local delete=$2
|
||||||
local finished=false
|
local finished=false
|
||||||
while [ $finished = false ]
|
while [ $finished == false ]
|
||||||
do
|
do
|
||||||
test=$(test -f "$file" && echo true)
|
test=$(test -f "$file" && echo true)
|
||||||
if [[ $test = true ]]; then
|
if [[ $test == true ]]; then
|
||||||
finished=true;
|
finished=true;
|
||||||
clear
|
clear
|
||||||
if [[ $delete = 'delete' ]]; then
|
if [[ $delete == 'delete' ]]; then
|
||||||
rm "$file"
|
rm "$file"
|
||||||
fi
|
fi
|
||||||
echo 'true';
|
echo 'true';
|
||||||
|
@ -397,7 +397,7 @@ function getLatestReleaseURLGH(){
|
||||||
local url
|
local url
|
||||||
#local token=$(tokenGenerator)
|
#local token=$(tokenGenerator)
|
||||||
|
|
||||||
if [ "$url" = "" ]; then
|
if [ "$url" == "" ]; then
|
||||||
url="https://api.github.com/repos/${repository}/releases/latest"
|
url="https://api.github.com/repos/${repository}/releases/latest"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -412,15 +412,15 @@ function getReleaseURLGH(){
|
||||||
local fileNameContains=$3
|
local fileNameContains=$3
|
||||||
#local token=$(tokenGenerator)
|
#local token=$(tokenGenerator)
|
||||||
|
|
||||||
if [ $system = "darwin" ]; then
|
if [ $system == "darwin" ]; then
|
||||||
fileType="dmg"
|
fileType="dmg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $system = "darwin" ]; then
|
if [ $system == "darwin" ]; then
|
||||||
fileType="dmg"
|
fileType="dmg"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$url" = "" ]; then
|
if [ "$url" == "" ]; then
|
||||||
url="https://api.github.com/repos/$repository/releases"
|
url="https://api.github.com/repos/$repository/releases"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -444,7 +444,7 @@ function linkToSaveFolder(){
|
||||||
if [ ! -L "$savesPath/$emu/$folderName" ]; then
|
if [ ! -L "$savesPath/$emu/$folderName" ]; then
|
||||||
echo "$savesPath/$emu/$folderName is not a link. Please check it."
|
echo "$savesPath/$emu/$folderName is not a link. Please check it."
|
||||||
else
|
else
|
||||||
if [ $(readlink $savesPath/$emu/$folderName) = $path ]; then
|
if [ $(readlink $savesPath/$emu/$folderName) == $path ]; then
|
||||||
echo "$savesPath/$emu/$folderName is already linked."
|
echo "$savesPath/$emu/$folderName is already linked."
|
||||||
echo " Target: $(readlink $savesPath/$emu/$folderName)"
|
echo " Target: $(readlink $savesPath/$emu/$folderName)"
|
||||||
else
|
else
|
||||||
|
@ -468,7 +468,7 @@ function moveSaveFolder(){
|
||||||
|
|
||||||
if [[ ! -e "$savesPath/$emu/$folderName" ]]; then
|
if [[ ! -e "$savesPath/$emu/$folderName" ]]; then
|
||||||
mkdir -p "$savesPath/$emu/$folderName"
|
mkdir -p "$savesPath/$emu/$folderName"
|
||||||
if [[ "$linkedTarget" = "$path" ]]; then
|
if [[ "$linkedTarget" == "$path" ]]; then
|
||||||
setMSG "Moving $emu $folderName to the Emulation/saves/$emu/$folderName folder"
|
setMSG "Moving $emu $folderName to the Emulation/saves/$emu/$folderName folder"
|
||||||
rsync -avh "$path/" "$savesPath/$emu/$folderName" && mv "$path" "${path}.bak"
|
rsync -avh "$path/" "$savesPath/$emu/$folderName" && mv "$path" "${path}.bak"
|
||||||
ln -sn "$savesPath/$emu/$folderName" "$path"
|
ln -sn "$savesPath/$emu/$folderName" "$path"
|
||||||
|
@ -538,7 +538,7 @@ function desktopShortcutFieldUpdate(){
|
||||||
|
|
||||||
if [ -f "$shortcutFile" ]; then
|
if [ -f "$shortcutFile" ]; then
|
||||||
# update icon if name is updated
|
# update icon if name is updated
|
||||||
if [ "$shortcutKey" = "Name" ]; then
|
if [ "$shortcutKey" == "Name" ]; then
|
||||||
name=$shortcutValue
|
name=$shortcutValue
|
||||||
cp -v "$EMUDECKGIT/icons/$(cut -d " " -f1 <<< "$name").{svg,jpg,png}" "$HOME/.local/share/icons/emudeck/" 2>/dev/null
|
cp -v "$EMUDECKGIT/icons/$(cut -d " " -f1 <<< "$name").{svg,jpg,png}" "$HOME/.local/share/icons/emudeck/" 2>/dev/null
|
||||||
icon=$(find "$HOME/.local/share/icons/emudeck/" -type f \( -iname "$(cut -d " " -f1 <<< "$name").svg" -o -iname "$(cut -d " " -f1 <<< "$name").jpg" -o -iname "$(cut -d " " -f1 <<< "$name").png" \) -print -quit)
|
icon=$(find "$HOME/.local/share/icons/emudeck/" -type f \( -iname "$(cut -d " " -f1 <<< "$name").svg" -o -iname "$(cut -d " " -f1 <<< "$name").jpg" -o -iname "$(cut -d " " -f1 <<< "$name").png" \) -print -quit)
|
||||||
|
@ -667,7 +667,7 @@ safeDownload() {
|
||||||
echo "- $headers"
|
echo "- $headers"
|
||||||
|
|
||||||
|
|
||||||
if [ "$showProgress" = "true" ] || [[ $showProgress -eq 1 ]]; then
|
if [ "$showProgress" == "true" ] || [[ $showProgress -eq 1 ]]; then
|
||||||
request=$(curl -w $'\1'"%{response_code}" --fail -L "$url" -H "$headers" -o "$outFile.temp" 2>&1 | tee >(stdbuf -oL tr '\r' '\n' | sed -u 's/^ *\([0-9][0-9]*\).*\( [0-9].*$\)/\1\n#Download Speed\:\2/' | zenity --progress --title "Downloading $name" --width 600 --auto-close --no-cancel 2>/dev/null) && echo $'\2'${PIPESTATUS[0]})
|
request=$(curl -w $'\1'"%{response_code}" --fail -L "$url" -H "$headers" -o "$outFile.temp" 2>&1 | tee >(stdbuf -oL tr '\r' '\n' | sed -u 's/^ *\([0-9][0-9]*\).*\( [0-9].*$\)/\1\n#Download Speed\:\2/' | zenity --progress --title "Downloading $name" --width 600 --auto-close --no-cancel 2>/dev/null) && echo $'\2'${PIPESTATUS[0]})
|
||||||
else
|
else
|
||||||
request=$(curl -w $'\1'"%{response_code}" --fail -L "$url" -H "$headers" -o "$outFile.temp" 2>&1 && echo $'\2'0 || echo $'\2'$?)
|
request=$(curl -w $'\1'"%{response_code}" --fail -L "$url" -H "$headers" -o "$outFile.temp" 2>&1 && echo $'\2'0 || echo $'\2'$?)
|
||||||
|
@ -679,7 +679,7 @@ safeDownload() {
|
||||||
echo "$requestInfo"
|
echo "$requestInfo"
|
||||||
echo "HTTP response code: $httpCode"
|
echo "HTTP response code: $httpCode"
|
||||||
echo "CURL exit code: $exitCode"
|
echo "CURL exit code: $exitCode"
|
||||||
if [ "$httpCode" = "200" ] && [ "$exitCode" = "0" ]; then
|
if [ "$httpCode" = "200" ] && [ "$exitCode" == "0" ]; then
|
||||||
echo "$name downloaded successfully";
|
echo "$name downloaded successfully";
|
||||||
mv -v "$outFile.temp" "$outFile"
|
mv -v "$outFile.temp" "$outFile"
|
||||||
return 0
|
return 0
|
||||||
|
|
|
@ -7,7 +7,7 @@ installEmuAI(){
|
||||||
local lastVerFile="$5"
|
local lastVerFile="$5"
|
||||||
local latestVer="$6"
|
local latestVer="$6"
|
||||||
|
|
||||||
if [[ "$fileName" = "" ]]; then
|
if [[ "$fileName" == "" ]]; then
|
||||||
fileName="$name"
|
fileName="$name"
|
||||||
fi
|
fi
|
||||||
echo "$name"
|
echo "$name"
|
||||||
|
|
|
@ -8,7 +8,7 @@ installEmuBI(){
|
||||||
local lastVerFile="$6"
|
local lastVerFile="$6"
|
||||||
local latestVer="$7"
|
local latestVer="$7"
|
||||||
|
|
||||||
if [[ "$fileName" = "" ]]; then
|
if [[ "$fileName" == "" ]]; then
|
||||||
fileName="$name"
|
fileName="$name"
|
||||||
fi
|
fi
|
||||||
echo "$name"
|
echo "$name"
|
||||||
|
|
|
@ -11,7 +11,7 @@ installEmuFP(){
|
||||||
flatpak override "$ID" --filesystem=host --user
|
flatpak override "$ID" --filesystem=host --user
|
||||||
flatpak override "$ID" --share=network --user
|
flatpak override "$ID" --share=network --user
|
||||||
#remove old system flatpak after we detect user flatpak is installed
|
#remove old system flatpak after we detect user flatpak is installed
|
||||||
if [ "$(flatpak --columns=app list --user | grep "$ID")" = "$ID" ]; then
|
if [ "$(flatpak --columns=app list --user | grep "$ID")" == "$ID" ]; then
|
||||||
flatpak uninstall "$ID" --system -y
|
flatpak uninstall "$ID" --system -y
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ installToolAI(){
|
||||||
local lastVerFile="$5"
|
local lastVerFile="$5"
|
||||||
local latestVer="$6"
|
local latestVer="$6"
|
||||||
|
|
||||||
if [[ "$fileName" = "" ]]; then
|
if [[ "$fileName" == "" ]]; then
|
||||||
fileName="$name"
|
fileName="$name"
|
||||||
fi
|
fi
|
||||||
echo "$name"
|
echo "$name"
|
||||||
|
@ -45,7 +45,7 @@ installToolAI(){
|
||||||
# echo "deploying $l"
|
# echo "deploying $l"
|
||||||
# launcherFileName=$(basename "$l")
|
# launcherFileName=$(basename "$l")
|
||||||
# folderName=$(dirname "$l" | sed 's!.*/!!')
|
# folderName=$(dirname "$l" | sed 's!.*/!!')
|
||||||
# if [ $folderName = "launchers" ]; then
|
# if [ $folderName == "launchers" ]; then
|
||||||
# folderName=""
|
# folderName=""
|
||||||
# fi
|
# fi
|
||||||
# chmod +x "$l"
|
# chmod +x "$l"
|
||||||
|
|
|
@ -32,7 +32,7 @@ if [ ! -f "$migrationFlag" ]; then
|
||||||
doMigrate="Migrate Data"
|
doMigrate="Migrate Data"
|
||||||
|
|
||||||
echo "$emu Do migration? User chose: $doMigrate"
|
echo "$emu Do migration? User chose: $doMigrate"
|
||||||
if [ "$doMigrate" = "Migrate Data" ]; then
|
if [ "$doMigrate" == "Migrate Data" ]; then
|
||||||
n=$(( ${#migrationTable[@]} - 1 ))
|
n=$(( ${#migrationTable[@]} - 1 ))
|
||||||
#odd should be flatpak
|
#odd should be flatpak
|
||||||
#even should be appimage
|
#even should be appimage
|
||||||
|
@ -53,11 +53,11 @@ if [ ! -f "$migrationFlag" ]; then
|
||||||
--extra-button "Keep AppImage Data" \
|
--extra-button "Keep AppImage Data" \
|
||||||
--extra-button "Migrate Flatpak Data" 2>/dev/null)
|
--extra-button "Migrate Flatpak Data" 2>/dev/null)
|
||||||
rc=$?
|
rc=$?
|
||||||
if [[ ! $ans = "" ]]; then #user didn't cancel
|
if [[ ! $ans == "" ]]; then #user didn't cancel
|
||||||
echo "$emu flatpak/appimage data choice. User Chose: $ans"
|
echo "$emu flatpak/appimage data choice. User Chose: $ans"
|
||||||
for ((i=0; i<=n; i=(i+2))) { # for each pair of dirs
|
for ((i=0; i<=n; i=(i+2))) { # for each pair of dirs
|
||||||
|
|
||||||
if [[ $ans = "Migrate Flatpak Data" ]]; then
|
if [[ $ans == "Migrate Flatpak Data" ]]; then
|
||||||
fromDir=${migrationTable[i]}
|
fromDir=${migrationTable[i]}
|
||||||
toDir=${migrationTable[i+1]}
|
toDir=${migrationTable[i+1]}
|
||||||
echo "Migrating ${fromDir} to ${toDir}"
|
echo "Migrating ${fromDir} to ${toDir}"
|
||||||
|
@ -79,7 +79,7 @@ if [ ! -f "$migrationFlag" ]; then
|
||||||
#link .config to .var so flatpak still works
|
#link .config to .var so flatpak still works
|
||||||
ln -sfn ${toDir} .
|
ln -sfn ${toDir} .
|
||||||
|
|
||||||
elif [[ $ans = "Keep AppImage Data" ]]; then
|
elif [[ $ans == "Keep AppImage Data" ]]; then
|
||||||
fromDir=${migrationTable[i+1]}
|
fromDir=${migrationTable[i+1]}
|
||||||
toDir=${migrationTable[i]}
|
toDir=${migrationTable[i]}
|
||||||
cd ${toDir}
|
cd ${toDir}
|
||||||
|
@ -121,7 +121,7 @@ if [ ! -f "$migrationFlag" ]; then
|
||||||
echo "do nothing"
|
echo "do nothing"
|
||||||
fi
|
fi
|
||||||
touch $migrationFlag
|
touch $migrationFlag
|
||||||
elif [ $doMigrate = "Leave ${emu} alone forever" ]; then
|
elif [ $doMigrate == "Leave ${emu} alone forever" ]; then
|
||||||
touch $migrationFlag
|
touch $migrationFlag
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -9,7 +9,7 @@ function getLatestReleaseURLGH(){
|
||||||
local url
|
local url
|
||||||
#local token=$(tokenGenerator)
|
#local token=$(tokenGenerator)
|
||||||
|
|
||||||
if [ "$url" = "" ]; then
|
if [ "$url" == "" ]; then
|
||||||
url="https://api.github.com/repos/${repository}/releases/latest"
|
url="https://api.github.com/repos/${repository}/releases/latest"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ safeDownload() {
|
||||||
local outFile="$3"
|
local outFile="$3"
|
||||||
local showProgress="$4"
|
local showProgress="$4"
|
||||||
local headers="$5"
|
local headers="$5"
|
||||||
if [ "$showProgress" = "true" ]; then
|
if [ "$showProgress" == "true" ]; then
|
||||||
echo "safeDownload()"
|
echo "safeDownload()"
|
||||||
echo "- $name"
|
echo "- $name"
|
||||||
echo "- $url"
|
echo "- $url"
|
||||||
|
@ -47,7 +47,7 @@ safeDownload() {
|
||||||
httpCode="${returnCodes%$'\2'*}"
|
httpCode="${returnCodes%$'\2'*}"
|
||||||
exitCode="${returnCodes#*$'\2'}"
|
exitCode="${returnCodes#*$'\2'}"
|
||||||
|
|
||||||
if [ "$httpCode" = "200" ] && [ "$exitCode" = "0" ]; then
|
if [ "$httpCode" = "200" ] && [ "$exitCode" == "0" ]; then
|
||||||
#echo "$name downloaded successfully";
|
#echo "$name downloaded successfully";
|
||||||
mv -v "$outFile.temp" "$outFile" &>/dev/null
|
mv -v "$outFile.temp" "$outFile" &>/dev/null
|
||||||
volumeName=$(yes | hdiutil attach "$outFile" | grep -o '/Volumes/.*$')
|
volumeName=$(yes | hdiutil attach "$outFile" | grep -o '/Volumes/.*$')
|
||||||
|
@ -74,13 +74,13 @@ function prompt() {
|
||||||
EOT
|
EOT
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $hasBrew = "false" ]; then
|
if [ $hasBrew == "false" ]; then
|
||||||
pass="$(prompt 'EmuDeck needs to install Brew, and for that you need to input your password:' '')"
|
pass="$(prompt 'EmuDeck needs to install Brew, and for that you need to input your password:' '')"
|
||||||
echo $pass | sudo -v -S && {
|
echo $pass | sudo -v -S && {
|
||||||
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSLk https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSLk https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $appleChip = "arm64" ];then
|
if [ $appleChip == "arm64" ];then
|
||||||
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.bash_profile && source ~/.bash_profile
|
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.bash_profile && source ~/.bash_profile
|
||||||
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc && source ~/.zshrc
|
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc && source ~/.zshrc
|
||||||
else
|
else
|
||||||
|
@ -101,7 +101,7 @@ fi
|
||||||
|
|
||||||
alert "All prerequisite packages have been installed. EmuDeck's DMG will be installed now!. Please press OK"
|
alert "All prerequisite packages have been installed. EmuDeck's DMG will be installed now!. Please press OK"
|
||||||
|
|
||||||
if [ $appleChip = "arm64" ];then
|
if [ $appleChip == "arm64" ];then
|
||||||
EmuDeckURL="$(getLatestReleaseURLGH "EmuDeck/emudeck-electron-early" "arm64.dmg")"
|
EmuDeckURL="$(getLatestReleaseURLGH "EmuDeck/emudeck-electron-early" "arm64.dmg")"
|
||||||
else
|
else
|
||||||
EmuDeckURL="$(getLatestReleaseURLGH "EmuDeck/emudeck-electron-early" ".dmg")"
|
EmuDeckURL="$(getLatestReleaseURLGH "EmuDeck/emudeck-electron-early" ".dmg")"
|
||||||
|
|
|
@ -15,12 +15,12 @@ elif [ $linuxID != "SteamOS" ]; then
|
||||||
PASSWD="$(zenity --password --title="Password Entry" --text="Enter you user sudo password to install required depencies" 2>/dev/null)"
|
PASSWD="$(zenity --password --title="Password Entry" --text="Enter you user sudo password to install required depencies" 2>/dev/null)"
|
||||||
echo "$PASSWD" | sudo -v -S
|
echo "$PASSWD" | sudo -v -S
|
||||||
ans=$?
|
ans=$?
|
||||||
if [[ $ans = 1 ]]; then
|
if [[ $ans == 1 ]]; then
|
||||||
#incorrect password
|
#incorrect password
|
||||||
PASSWD="$(zenity --password --title="Password Entry" --text="Password was incorrect. Try again. (Did you remember to set a password for linux before running this?)" 2>/dev/null)"
|
PASSWD="$(zenity --password --title="Password Entry" --text="Password was incorrect. Try again. (Did you remember to set a password for linux before running this?)" 2>/dev/null)"
|
||||||
echo "$PASSWD" | sudo -v -S
|
echo "$PASSWD" | sudo -v -S
|
||||||
ans=$?
|
ans=$?
|
||||||
if [[ $ans = 1 ]]; then
|
if [[ $ans == 1 ]]; then
|
||||||
text="$(printf "<b>Password not accepted.</b>\n Expert mode tools which require a password will not work. Disabling them.")"
|
text="$(printf "<b>Password not accepted.</b>\n Expert mode tools which require a password will not work. Disabling them.")"
|
||||||
zenity --error \
|
zenity --error \
|
||||||
--title="EmuDeck" \
|
--title="EmuDeck" \
|
||||||
|
|
|
@ -22,13 +22,13 @@ function setSetting() {
|
||||||
local new_val=$2
|
local new_val=$2
|
||||||
|
|
||||||
settingExists=$(grep -rw "$emuDecksettingsFile" -e "$var")
|
settingExists=$(grep -rw "$emuDecksettingsFile" -e "$var")
|
||||||
if [[ $settingExists = '' ]]; then
|
if [[ $settingExists == '' ]]; then
|
||||||
#insert setting to end
|
#insert setting to end
|
||||||
echo "variable not found in settings. Adding $var=$new_val to $emuDecksettingsFile"
|
echo "variable not found in settings. Adding $var=$new_val to $emuDecksettingsFile"
|
||||||
sed -i -e '$a\'"$var=$new_val" "$emuDecksettingsFile"
|
sed -i -e '$a\'"$var=$new_val" "$emuDecksettingsFile"
|
||||||
elif [[ ! $settingExists = '' ]]; then
|
elif [[ ! $settingExists == '' ]]; then
|
||||||
echo "Old value $settingExists"
|
echo "Old value $settingExists"
|
||||||
if [[ $settingExists = "$var=$new_val" ]]; then
|
if [[ $settingExists == "$var=$new_val" ]]; then
|
||||||
echo "Setting unchanged, skipping"
|
echo "Setting unchanged, skipping"
|
||||||
else
|
else
|
||||||
changeLine "$var=" "$var=$new_val" "$emuDecksettingsFile"
|
changeLine "$var=" "$var=$new_val" "$emuDecksettingsFile"
|
||||||
|
@ -166,7 +166,7 @@ setDefaults
|
||||||
# Welcome, Quick or custom?
|
# Welcome, Quick or custom?
|
||||||
source "$EMUDECKGIT"/whiptail/WelcomePage.sh
|
source "$EMUDECKGIT"/whiptail/WelcomePage.sh
|
||||||
|
|
||||||
if [ $expert = 'false' ]; then
|
if [ $expert == 'false' ]; then
|
||||||
cp "$EMUDECKGIT/settings.sh" "$emuDecksettingsFile"
|
cp "$EMUDECKGIT/settings.sh" "$emuDecksettingsFile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -179,12 +179,12 @@ source "$EMUDECKGIT"/whiptail/RomStoragePage.sh
|
||||||
## Custom mode Questions
|
## Custom mode Questions
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ $expert = 'true' ]; then
|
if [ $expert == 'true' ]; then
|
||||||
|
|
||||||
# Emulators
|
# Emulators
|
||||||
source $EMUDECKGIT/whiptail/EmulatorSelectorPage.sh
|
source $EMUDECKGIT/whiptail/EmulatorSelectorPage.sh
|
||||||
|
|
||||||
# if [ $second = true ]; then
|
# if [ $second == true ]; then
|
||||||
# # Overwrite configuration?
|
# # Overwrite configuration?
|
||||||
# source "$EMUDECKGIT"/whiptail/EmulatorConfigurationPage.sh
|
# source "$EMUDECKGIT"/whiptail/EmulatorConfigurationPage.sh
|
||||||
# fi
|
# fi
|
||||||
|
@ -219,7 +219,7 @@ if [ $expert = 'true' ]; then
|
||||||
source "$EMUDECKGIT"/whiptail/PegasusInstallPage.sh
|
source "$EMUDECKGIT"/whiptail/PegasusInstallPage.sh
|
||||||
|
|
||||||
# Pegasus Theme
|
# Pegasus Theme
|
||||||
if [ $doInstallPegasus = true ]; then
|
if [ $doInstallPegasus == true ]; then
|
||||||
source "$EMUDECKGIT"/whiptail/PegasusThemePage.sh
|
source "$EMUDECKGIT"/whiptail/PegasusThemePage.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
126
setup.sh
126
setup.sh
|
@ -147,133 +147,133 @@ cp "${EMUDECKGIT}/tools/emu-launch.sh" "${toolsPath}/emu-launch.sh"
|
||||||
chmod +x "${toolsPath}/emu-launch.sh"
|
chmod +x "${toolsPath}/emu-launch.sh"
|
||||||
|
|
||||||
#ESDE Installation
|
#ESDE Installation
|
||||||
if [ $doInstallESDE = "true" ]; then
|
if [ $doInstallESDE == "true" ]; then
|
||||||
echo "install esde"
|
echo "install esde"
|
||||||
ESDE_install
|
ESDE_install
|
||||||
fi
|
fi
|
||||||
#Pegasus Installation
|
#Pegasus Installation
|
||||||
if [ $doInstallPegasus = "true" ]; then
|
if [ $doInstallPegasus == "true" ]; then
|
||||||
echo "install Pegasus"
|
echo "install Pegasus"
|
||||||
Pegasus_install
|
Pegasus_install
|
||||||
fi
|
fi
|
||||||
#SRM Installation
|
#SRM Installation
|
||||||
if [ $doInstallSRM = "true" ]; then
|
if [ $doInstallSRM == "true" ]; then
|
||||||
echo "install srm"
|
echo "install srm"
|
||||||
SRM_install
|
SRM_install
|
||||||
fi
|
fi
|
||||||
if [ "$doInstallPCSX2QT" = "true" ]; then
|
if [ "$doInstallPCSX2QT" == "true" ]; then
|
||||||
echo "install pcsx2Qt"
|
echo "install pcsx2Qt"
|
||||||
PCSX2QT_install
|
PCSX2QT_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallPrimeHack = "true" ]; then
|
if [ $doInstallPrimeHack == "true" ]; then
|
||||||
echo "install primehack"
|
echo "install primehack"
|
||||||
Primehack_install
|
Primehack_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallRPCS3 = "true" ]; then
|
if [ $doInstallRPCS3 == "true" ]; then
|
||||||
echo "install rpcs3"
|
echo "install rpcs3"
|
||||||
RPCS3_install
|
RPCS3_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallCitra = "true" ]; then
|
if [ $doInstallCitra == "true" ]; then
|
||||||
echo "install Citra"
|
echo "install Citra"
|
||||||
Citra_install
|
Citra_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallDolphin = "true" ]; then
|
if [ $doInstallDolphin == "true" ]; then
|
||||||
echo "install Dolphin"
|
echo "install Dolphin"
|
||||||
Dolphin_install
|
Dolphin_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallDuck = "true" ]; then
|
if [ $doInstallDuck == "true" ]; then
|
||||||
echo "DuckStation_install"
|
echo "DuckStation_install"
|
||||||
DuckStation_install
|
DuckStation_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallRA = "true" ]; then
|
if [ $doInstallRA == "true" ]; then
|
||||||
echo "RetroArch_install"
|
echo "RetroArch_install"
|
||||||
RetroArch_install
|
RetroArch_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallRMG = "true" ]; then
|
if [ $doInstallRMG == "true" ]; then
|
||||||
echo "RMG_install"
|
echo "RMG_install"
|
||||||
RMG_install
|
RMG_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallares = "true" ]; then
|
if [ $doInstallares == "true" ]; then
|
||||||
echo "ares_install"
|
echo "ares_install"
|
||||||
ares_install
|
ares_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallPPSSPP = "true" ]; then
|
if [ $doInstallPPSSPP == "true" ]; then
|
||||||
echo "PPSSPP_install"
|
echo "PPSSPP_install"
|
||||||
PPSSPP_install
|
PPSSPP_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallYuzu = "true" ]; then
|
if [ $doInstallYuzu == "true" ]; then
|
||||||
echo "Yuzu_install"
|
echo "Yuzu_install"
|
||||||
Yuzu_install
|
Yuzu_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallRyujinx = "true" ]; then
|
if [ $doInstallRyujinx == "true" ]; then
|
||||||
echo "Ryujinx_install"
|
echo "Ryujinx_install"
|
||||||
Ryujinx_install
|
Ryujinx_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallMAME = "true" ]; then
|
if [ $doInstallMAME == "true" ]; then
|
||||||
echo "MAME_install"
|
echo "MAME_install"
|
||||||
MAME_install
|
MAME_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallXemu = "true" ]; then
|
if [ $doInstallXemu == "true" ]; then
|
||||||
echo "Xemu_install"
|
echo "Xemu_install"
|
||||||
Xemu_install
|
Xemu_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallCemu = "true" ]; then
|
if [ $doInstallCemu == "true" ]; then
|
||||||
echo "Cemu_install"
|
echo "Cemu_install"
|
||||||
Cemu_install
|
Cemu_install
|
||||||
fi
|
fi
|
||||||
if [ "${doInstallCemuNative}" = "true" ]; then
|
if [ "${doInstallCemuNative}" == "true" ]; then
|
||||||
echo "CemuNative_install"
|
echo "CemuNative_install"
|
||||||
CemuNative_install
|
CemuNative_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallScummVM = "true" ]; then
|
if [ $doInstallScummVM == "true" ]; then
|
||||||
echo "ScummVM_install"
|
echo "ScummVM_install"
|
||||||
ScummVM_install
|
ScummVM_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallVita3K = "true" ]; then
|
if [ $doInstallVita3K == "true" ]; then
|
||||||
echo "Vita3K_install"
|
echo "Vita3K_install"
|
||||||
Vita3K_install
|
Vita3K_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallMGBA = "true" ]; then
|
if [ $doInstallMGBA == "true" ]; then
|
||||||
echo "mGBA_install"
|
echo "mGBA_install"
|
||||||
mGBA_install
|
mGBA_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallFlycast = "true" ]; then
|
if [ $doInstallFlycast == "true" ]; then
|
||||||
echo "Flycast_install"
|
echo "Flycast_install"
|
||||||
Flycast_install
|
Flycast_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallRMG = "true" ]; then
|
if [ $doInstallRMG == "true" ]; then
|
||||||
echo "RMG_install"
|
echo "RMG_install"
|
||||||
RMG_install
|
RMG_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallares = "true" ]; then
|
if [ $doInstallares == "true" ]; then
|
||||||
echo "ares_install"
|
echo "ares_install"
|
||||||
ares_install
|
ares_install
|
||||||
fi
|
fi
|
||||||
if [ $doInstallmelonDS = "true" ]; then
|
if [ $doInstallmelonDS == "true" ]; then
|
||||||
echo "melonDS_install"
|
echo "melonDS_install"
|
||||||
melonDS_install
|
melonDS_install
|
||||||
fi
|
fi
|
||||||
#Xenia - We need to install Xenia after creating the Roms folders!
|
#Xenia - We need to install Xenia after creating the Roms folders!
|
||||||
if [ "$doInstallXenia" = "true" ]; then
|
if [ "$doInstallXenia" == "true" ]; then
|
||||||
echo "Xenia_install"
|
echo "Xenia_install"
|
||||||
Xenia_install
|
Xenia_install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Steam RomManager Config
|
#Steam RomManager Config
|
||||||
|
|
||||||
if [ "$doSetupSRM" = "true" ]; then
|
if [ "$doSetupSRM" == "true" ]; then
|
||||||
echo "SRM_init"
|
echo "SRM_init"
|
||||||
SRM_init
|
SRM_init
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#ESDE Config
|
#ESDE Config
|
||||||
if [ "$doSetupESDE" = "true" ]; then
|
if [ "$doSetupESDE" == "true" ]; then
|
||||||
echo "ESDE_init"
|
echo "ESDE_init"
|
||||||
ESDE_update
|
ESDE_update
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Pegasus Config
|
#Pegasus Config
|
||||||
#if [ $doSetupPegasus = "true" ]; then
|
#if [ $doSetupPegasus == "true" ]; then
|
||||||
# echo "Pegasus_init"
|
# echo "Pegasus_init"
|
||||||
# Pegasus_init
|
# Pegasus_init
|
||||||
#fi
|
#fi
|
||||||
|
@ -284,92 +284,92 @@ fi
|
||||||
|
|
||||||
setMSG "Configuring emulators.."
|
setMSG "Configuring emulators.."
|
||||||
|
|
||||||
if [ "$doSetupRA" = "true" ]; then
|
if [ "$doSetupRA" == "true" ]; then
|
||||||
echo "RetroArch_init"
|
echo "RetroArch_init"
|
||||||
RetroArch_init
|
RetroArch_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupPrimehack" = "true" ]; then
|
if [ "$doSetupPrimehack" == "true" ]; then
|
||||||
echo "Primehack_init"
|
echo "Primehack_init"
|
||||||
Primehack_init
|
Primehack_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupDolphin" = "true" ]; then
|
if [ "$doSetupDolphin" == "true" ]; then
|
||||||
echo "Dolphin_init"
|
echo "Dolphin_init"
|
||||||
Dolphin_init
|
Dolphin_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupPCSX2QT" = "true" ]; then
|
if [ "$doSetupPCSX2QT" == "true" ]; then
|
||||||
echo "PCSX2QT_init"
|
echo "PCSX2QT_init"
|
||||||
PCSX2QT_init
|
PCSX2QT_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupRPCS3" = "true" ]; then
|
if [ "$doSetupRPCS3" == "true" ]; then
|
||||||
echo "RPCS3_init"
|
echo "RPCS3_init"
|
||||||
RPCS3_init
|
RPCS3_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupCitra" = "true" ]; then
|
if [ "$doSetupCitra" == "true" ]; then
|
||||||
echo "Citra_init"
|
echo "Citra_init"
|
||||||
Citra_init
|
Citra_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupDuck" = "true" ]; then
|
if [ "$doSetupDuck" == "true" ]; then
|
||||||
echo "DuckStation_init"
|
echo "DuckStation_init"
|
||||||
DuckStation_init
|
DuckStation_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupYuzu" = "true" ]; then
|
if [ "$doSetupYuzu" == "true" ]; then
|
||||||
echo "Yuzu_init"
|
echo "Yuzu_init"
|
||||||
Yuzu_init
|
Yuzu_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupRyujinx" = "true" ]; then
|
if [ "$doSetupRyujinx" == "true" ]; then
|
||||||
echo "Ryujinx_init"
|
echo "Ryujinx_init"
|
||||||
Ryujinx_init
|
Ryujinx_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupPPSSPP" = "true" ]; then
|
if [ "$doSetupPPSSPP" == "true" ]; then
|
||||||
echo "PPSSPP_init"
|
echo "PPSSPP_init"
|
||||||
PPSSPP_init
|
PPSSPP_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupXemu" = "true" ]; then
|
if [ "$doSetupXemu" == "true" ]; then
|
||||||
echo "Xemu_init"
|
echo "Xemu_init"
|
||||||
Xemu_init
|
Xemu_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupMAME" = "true" ]; then
|
if [ "$doSetupMAME" == "true" ]; then
|
||||||
echo "MAME_init"
|
echo "MAME_init"
|
||||||
MAME_init
|
MAME_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupScummVM" = "true" ]; then
|
if [ "$doSetupScummVM" == "true" ]; then
|
||||||
echo "ScummVM_init"
|
echo "ScummVM_init"
|
||||||
ScummVM_init
|
ScummVM_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupVita3K" = "true" ]; then
|
if [ "$doSetupVita3K" == "true" ]; then
|
||||||
echo "Vita3K_init"
|
echo "Vita3K_init"
|
||||||
Vita3K_init
|
Vita3K_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupRMG" = "true" ]; then
|
if [ "$doSetupRMG" == "true" ]; then
|
||||||
echo "RMG_init"
|
echo "RMG_init"
|
||||||
RMG_init
|
RMG_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupares" = "true" ]; then
|
if [ "$doSetupares" == "true" ]; then
|
||||||
echo "ares_init"
|
echo "ares_init"
|
||||||
ares_init
|
ares_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupmelonDS" = "true" ]; then
|
if [ "$doSetupmelonDS" == "true" ]; then
|
||||||
echo "melonDS_init"
|
echo "melonDS_init"
|
||||||
melonDS_init
|
melonDS_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupMGBA" = "true" ]; then
|
if [ "$doSetupMGBA" == "true" ]; then
|
||||||
echo "mGBA_init"
|
echo "mGBA_init"
|
||||||
mGBA_init
|
mGBA_init
|
||||||
fi
|
fi
|
||||||
if [ "${doSetupCemuNative}" = "true" ]; then
|
if [ "${doSetupCemuNative}" == "true" ]; then
|
||||||
echo "CemuNative_init"
|
echo "CemuNative_init"
|
||||||
CemuNative_init
|
CemuNative_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupFlycast" = "true" ]; then
|
if [ "$doSetupFlycast" == "true" ]; then
|
||||||
echo "Flycast_init"
|
echo "Flycast_init"
|
||||||
Flycast_init
|
Flycast_init
|
||||||
fi
|
fi
|
||||||
#Proton Emus
|
#Proton Emus
|
||||||
if [ "$doSetupCemu" = "true" ]; then
|
if [ "$doSetupCemu" == "true" ]; then
|
||||||
echo "Cemu_init"
|
echo "Cemu_init"
|
||||||
Cemu_init
|
Cemu_init
|
||||||
fi
|
fi
|
||||||
if [ "$doSetupXenia" = "true" ]; then
|
if [ "$doSetupXenia" == "true" ]; then
|
||||||
echo "Xenia_init"
|
echo "Xenia_init"
|
||||||
Xenia_init
|
Xenia_init
|
||||||
fi
|
fi
|
||||||
|
@ -393,12 +393,12 @@ fi
|
||||||
# if [ -n "$PASSWD" ]; then
|
# if [ -n "$PASSWD" ]; then
|
||||||
# pwstatus=0
|
# pwstatus=0
|
||||||
# echo "$PASSWD" | sudo -v -S &>/dev/null && pwstatus=1 || echo "sudo password was incorrect" #refresh sudo cache
|
# echo "$PASSWD" | sudo -v -S &>/dev/null && pwstatus=1 || echo "sudo password was incorrect" #refresh sudo cache
|
||||||
# if [ $pwstatus = 1 ]; then
|
# if [ $pwstatus == 1 ]; then
|
||||||
# if [ "$doInstallGyro" = "true" ]; then
|
# if [ "$doInstallGyro" == "true" ]; then
|
||||||
# Plugins_installSteamDeckGyroDSU
|
# Plugins_installSteamDeckGyroDSU
|
||||||
# fi
|
# fi
|
||||||
#
|
#
|
||||||
# if [ "$doInstallPowertools" = "true" ]; then
|
# if [ "$doInstallPowertools" == "true" ]; then
|
||||||
# Plugins_installPluginLoader
|
# Plugins_installPluginLoader
|
||||||
# Plugins_installPowerTools
|
# Plugins_installPowerTools
|
||||||
# fi
|
# fi
|
||||||
|
@ -421,18 +421,18 @@ CHD_install
|
||||||
#
|
#
|
||||||
#Fixes for 16:9 Screens
|
#Fixes for 16:9 Screens
|
||||||
#
|
#
|
||||||
if [ "$doSetupRA" = "true" ]; then
|
if [ "$doSetupRA" == "true" ]; then
|
||||||
if [ "$(getScreenAR)" = 169 ];then
|
if [ "$(getScreenAR)" == 169 ];then
|
||||||
nonDeck_169Screen
|
nonDeck_169Screen
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Anbernic Win600 Special configuration
|
#Anbernic Win600 Special configuration
|
||||||
if [ "$(getProductName)" = "Win600" ];then
|
if [ "$(getProductName)" == "Win600" ];then
|
||||||
nonDeck_win600
|
nonDeck_win600
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$system" = "chimeraos" ]; then
|
if [ "$system" == "chimeraos" ]; then
|
||||||
mkdir -p $HOME/Applications
|
mkdir -p $HOME/Applications
|
||||||
|
|
||||||
downloads_dir="$HOME/Downloads"
|
downloads_dir="$HOME/Downloads"
|
||||||
|
@ -449,7 +449,7 @@ fi
|
||||||
|
|
||||||
createDesktopIcons
|
createDesktopIcons
|
||||||
|
|
||||||
if [ "$doInstallHomeBrewGames" = "true" ]; then
|
if [ "$doInstallHomeBrewGames" == "true" ]; then
|
||||||
emuDeckInstallHomebrewGames
|
emuDeckInstallHomebrewGames
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -460,7 +460,7 @@ fi
|
||||||
#
|
#
|
||||||
if [ "$system" != "darwin" ]; then
|
if [ "$system" != "darwin" ]; then
|
||||||
#Decky Plugins
|
#Decky Plugins
|
||||||
if [ "$system" = "chimeraos" ]; then
|
if [ "$system" == "chimeraos" ]; then
|
||||||
defaultPass="gamer"
|
defaultPass="gamer"
|
||||||
else
|
else
|
||||||
defaultPass="Decky!"
|
defaultPass="Decky!"
|
||||||
|
@ -469,7 +469,7 @@ if [ "$system" != "darwin" ]; then
|
||||||
if ( echo "$defaultPass" | sudo -S -k true ); then
|
if ( echo "$defaultPass" | sudo -S -k true ); then
|
||||||
echo $defaultPass | sudo -v -S && {
|
echo $defaultPass | sudo -v -S && {
|
||||||
Plugins_installEmuDecky $defaultPass
|
Plugins_installEmuDecky $defaultPass
|
||||||
if [ "$system" = "chimeraos" ]; then
|
if [ "$system" == "chimeraos" ]; then
|
||||||
Plugins_installPowerControl $defaultPass
|
Plugins_installPowerControl $defaultPass
|
||||||
else
|
else
|
||||||
Plugins_installPowerTools $defaultPass
|
Plugins_installPowerTools $defaultPass
|
||||||
|
@ -486,7 +486,7 @@ fi
|
||||||
#chmod +x "${toolsPath}/updater/emudeck-updater.sh"
|
#chmod +x "${toolsPath}/updater/emudeck-updater.sh"
|
||||||
|
|
||||||
#RemotePlayWhatever
|
#RemotePlayWhatever
|
||||||
# if [[ ! $branch = "main" ]]; then
|
# if [[ ! $branch == "main" ]]; then
|
||||||
# RemotePlayWhatever_install
|
# RemotePlayWhatever_install
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ def main():
|
||||||
print(get_app_id(exe, appname))
|
print(get_app_id(exe, appname))
|
||||||
|
|
||||||
|
|
||||||
if __name__ = "__main__":
|
if __name__ == "__main__":
|
||||||
# If there aren't the correct number of arguments, fail with error
|
# If there aren't the correct number of arguments, fail with error
|
||||||
if len(sys.argv) != 3:
|
if len(sys.argv) != 3:
|
||||||
sys.exit("Not enough arguments")
|
sys.exit("Not enough arguments")
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
# shellcheck source=functions/all.sh
|
# shellcheck source=functions/all.sh
|
||||||
. "$HOME/.config/EmuDeck/backend/functions/all.sh"
|
. "$HOME/.config/EmuDeck/backend/functions/all.sh"
|
||||||
if [ "$?" = "1" ]; then
|
if [ "$?" == "1" ]; then
|
||||||
echo "functions could not be loaded."
|
echo "functions could not be loaded."
|
||||||
zenity --error \
|
zenity --error \
|
||||||
--text="EmuDeck Functions could not be loaded. Please re-run Emudeck install." 2>/dev/null
|
--text="EmuDeck Functions could not be loaded. Please re-run Emudeck install." 2>/dev/null
|
||||||
|
@ -79,7 +79,7 @@ function runBinDownloads {
|
||||||
|
|
||||||
echo "User selected: $binsToDL"
|
echo "User selected: $binsToDL"
|
||||||
|
|
||||||
if [[ "$binsToDL" = *"esde"* ]]; then
|
if [[ "$binsToDL" == *"esde"* ]]; then
|
||||||
echo "0"
|
echo "0"
|
||||||
echo "# Updating EmulationStation-DE"
|
echo "# Updating EmulationStation-DE"
|
||||||
if ESDE_install "true" 2>&1; then
|
if ESDE_install "true" 2>&1; then
|
||||||
|
@ -88,7 +88,7 @@ function runBinDownloads {
|
||||||
messages+=("There was a problem updating EmulationStation-DE")
|
messages+=("There was a problem updating EmulationStation-DE")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "$binsToDL" = *"srm"* ]]; then
|
if [[ "$binsToDL" == *"srm"* ]]; then
|
||||||
((progresspct += pct)) || true
|
((progresspct += pct)) || true
|
||||||
echo "$progresspct"
|
echo "$progresspct"
|
||||||
echo "# Updating SteamRomManager"
|
echo "# Updating SteamRomManager"
|
||||||
|
@ -98,7 +98,7 @@ function runBinDownloads {
|
||||||
messages+=("There was a problem updating SteamRomManager")
|
messages+=("There was a problem updating SteamRomManager")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "$binsToDL" = *"mgba"* ]]; then
|
if [[ "$binsToDL" == *"mgba"* ]]; then
|
||||||
((progresspct += pct)) || true
|
((progresspct += pct)) || true
|
||||||
echo "$progresspct"
|
echo "$progresspct"
|
||||||
echo "# Updating mGBA"
|
echo "# Updating mGBA"
|
||||||
|
@ -108,7 +108,7 @@ function runBinDownloads {
|
||||||
messages+=("There was a problem updating mGBA")
|
messages+=("There was a problem updating mGBA")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "$binsToDL" = *"yuzu (early access)"* ]]; then
|
if [[ "$binsToDL" == *"yuzu (early access)"* ]]; then
|
||||||
((progresspct += pct)) || true
|
((progresspct += pct)) || true
|
||||||
echo "$progresspct"
|
echo "$progresspct"
|
||||||
echo "# Updating Yuzu Early Access"
|
echo "# Updating Yuzu Early Access"
|
||||||
|
@ -118,7 +118,7 @@ function runBinDownloads {
|
||||||
messages+=("There was a problem updating Yuzu Early Access")
|
messages+=("There was a problem updating Yuzu Early Access")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "$binsToDL" = *"yuzu (mainline)"* ]]; then
|
if [[ "$binsToDL" == *"yuzu (mainline)"* ]]; then
|
||||||
((progresspct += pct)) || true
|
((progresspct += pct)) || true
|
||||||
echo "$progresspct"
|
echo "$progresspct"
|
||||||
echo "# Updating Yuzu"
|
echo "# Updating Yuzu"
|
||||||
|
@ -128,7 +128,7 @@ function runBinDownloads {
|
||||||
messages+=("There was a problem updating Yuzu")
|
messages+=("There was a problem updating Yuzu")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "$binsToDL" = *"pcsx2-qt"* ]]; then
|
if [[ "$binsToDL" == *"pcsx2-qt"* ]]; then
|
||||||
((progresspct += pct)) || true
|
((progresspct += pct)) || true
|
||||||
echo "$progresspct"
|
echo "$progresspct"
|
||||||
echo "# Updating PCSX2-QT"
|
echo "# Updating PCSX2-QT"
|
||||||
|
@ -138,7 +138,7 @@ function runBinDownloads {
|
||||||
messages+=("There was a problem updating PCSX2-QT")
|
messages+=("There was a problem updating PCSX2-QT")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "$binsToDL" = *"ryujinx"* ]]; then
|
if [[ "$binsToDL" == *"ryujinx"* ]]; then
|
||||||
((progresspct += pct)) || true
|
((progresspct += pct)) || true
|
||||||
echo "$progresspct"
|
echo "$progresspct"
|
||||||
echo "# Updating Ryujinx"
|
echo "# Updating Ryujinx"
|
||||||
|
@ -148,7 +148,7 @@ function runBinDownloads {
|
||||||
messages+=("There was a problem updating Ryujinx")
|
messages+=("There was a problem updating Ryujinx")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "$binsToDL" = *"cemu (win/proton)"* ]]; then
|
if [[ "$binsToDL" == *"cemu (win/proton)"* ]]; then
|
||||||
((progresspct += pct)) || true
|
((progresspct += pct)) || true
|
||||||
echo "$progresspct"
|
echo "$progresspct"
|
||||||
echo "# Updating Cemu (win/proton)"
|
echo "# Updating Cemu (win/proton)"
|
||||||
|
@ -158,7 +158,7 @@ function runBinDownloads {
|
||||||
messages+=("There was a problem updating Cemu (win/proton")
|
messages+=("There was a problem updating Cemu (win/proton")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "$binsToDL" = *"cemu (native)"* ]]; then
|
if [[ "$binsToDL" == *"cemu (native)"* ]]; then
|
||||||
((progresspct += pct)) || true
|
((progresspct += pct)) || true
|
||||||
echo "$progresspct"
|
echo "$progresspct"
|
||||||
echo "# Updating Cemu (Native)"
|
echo "# Updating Cemu (Native)"
|
||||||
|
@ -168,7 +168,7 @@ function runBinDownloads {
|
||||||
messages+=("There was a problem updating Cemu (Native)")
|
messages+=("There was a problem updating Cemu (Native)")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "$binsToDL" = *"vita3k"* ]]; then
|
if [[ "$binsToDL" == *"vita3k"* ]]; then
|
||||||
((progresspct += pct)) || true
|
((progresspct += pct)) || true
|
||||||
echo "$progresspct"
|
echo "$progresspct"
|
||||||
echo "# Updating Vita3K"
|
echo "# Updating Vita3K"
|
||||||
|
@ -178,7 +178,7 @@ function runBinDownloads {
|
||||||
messages+=("There was a problem updating Vita3K")
|
messages+=("There was a problem updating Vita3K")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "$binsToDL" = *"xenia"* ]]; then
|
if [[ "$binsToDL" == *"xenia"* ]]; then
|
||||||
((progresspct += pct)) || true
|
((progresspct += pct)) || true
|
||||||
echo "$progresspct"
|
echo "$progresspct"
|
||||||
echo "# Updating Xenia-Canary"
|
echo "# Updating Xenia-Canary"
|
||||||
|
@ -188,7 +188,7 @@ function runBinDownloads {
|
||||||
messages+=("There was a problem updating Xenia")
|
messages+=("There was a problem updating Xenia")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ "$binsToDL" = *"rpcs3"* ]]; then
|
if [[ "$binsToDL" == *"rpcs3"* ]]; then
|
||||||
((progresspct += pct)) || true
|
((progresspct += pct)) || true
|
||||||
echo "$progresspct"
|
echo "$progresspct"
|
||||||
echo "# Updating RPCS3"
|
echo "# Updating RPCS3"
|
||||||
|
@ -212,40 +212,40 @@ LOGFILE="${scriptPath}/binupdate-$TIMESTAMP.log"
|
||||||
exec > >(tee "${LOGFILE}") 2>&1
|
exec > >(tee "${LOGFILE}") 2>&1
|
||||||
|
|
||||||
binTable=()
|
binTable=()
|
||||||
if [ "$(ESDE_IsInstalled)" = "true" ]; then
|
if [ "$(ESDE_IsInstalled)" == "true" ]; then
|
||||||
binTable+=(TRUE "EmulationStation-DE" "esde")
|
binTable+=(TRUE "EmulationStation-DE" "esde")
|
||||||
fi
|
fi
|
||||||
if [ "$(SRM_IsInstalled)" = "true" ]; then
|
if [ "$(SRM_IsInstalled)" == "true" ]; then
|
||||||
binTable+=(TRUE "Steam ROM Manager" "srm")
|
binTable+=(TRUE "Steam ROM Manager" "srm")
|
||||||
fi
|
fi
|
||||||
if [ "$(mGBA_IsInstalled)" = "true" ]; then
|
if [ "$(mGBA_IsInstalled)" == "true" ]; then
|
||||||
binTable+=(TRUE "GameBoy / Color / Advance Emu" "mgba")
|
binTable+=(TRUE "GameBoy / Color / Advance Emu" "mgba")
|
||||||
fi
|
fi
|
||||||
if [ "$(Yuzu_IsInstalled)" = "true" ]; then
|
if [ "$(Yuzu_IsInstalled)" == "true" ]; then
|
||||||
binTable+=(TRUE "Nintendo Switch Emu" "yuzu (mainline)")
|
binTable+=(TRUE "Nintendo Switch Emu" "yuzu (mainline)")
|
||||||
fi
|
fi
|
||||||
if [ "$(YuzuEA_IsInstalled)" = "true" ] && [ -e "$YuzuEA_tokenFile" ]; then
|
if [ "$(YuzuEA_IsInstalled)" == "true" ] && [ -e "$YuzuEA_tokenFile" ]; then
|
||||||
binTable+=(TRUE "Nintendo Switch Emu" "yuzu (early access)")
|
binTable+=(TRUE "Nintendo Switch Emu" "yuzu (early access)")
|
||||||
fi
|
fi
|
||||||
if [ "$(Ryujinx_IsInstalled)" = "true" ]; then
|
if [ "$(Ryujinx_IsInstalled)" == "true" ]; then
|
||||||
binTable+=(TRUE "Nintendo Switch Emu" "ryujinx")
|
binTable+=(TRUE "Nintendo Switch Emu" "ryujinx")
|
||||||
fi
|
fi
|
||||||
if [ "$(PCSX2QT_IsInstalled)" = "true" ]; then
|
if [ "$(PCSX2QT_IsInstalled)" == "true" ]; then
|
||||||
binTable+=(TRUE "Sony PlayStation 2 Emu" "pcsx2-qt")
|
binTable+=(TRUE "Sony PlayStation 2 Emu" "pcsx2-qt")
|
||||||
fi
|
fi
|
||||||
if [ "$(Cemu_IsInstalled)" = "true" ]; then
|
if [ "$(Cemu_IsInstalled)" == "true" ]; then
|
||||||
binTable+=(TRUE "Nintendo WiiU Emu (Proton)" "cemu (win/proton)")
|
binTable+=(TRUE "Nintendo WiiU Emu (Proton)" "cemu (win/proton)")
|
||||||
fi
|
fi
|
||||||
if [ "$(CemuNative_IsInstalled)" = "true" ]; then
|
if [ "$(CemuNative_IsInstalled)" == "true" ]; then
|
||||||
binTable+=(TRUE "Nintendo WiiU Emu (Native)" "cemu (native)")
|
binTable+=(TRUE "Nintendo WiiU Emu (Native)" "cemu (native)")
|
||||||
fi
|
fi
|
||||||
if [ "$(Vita3K_IsInstalled)" = "true" ]; then
|
if [ "$(Vita3K_IsInstalled)" == "true" ]; then
|
||||||
binTable+=(TRUE "Sony PlayStation Vita Emu" "vita3k")
|
binTable+=(TRUE "Sony PlayStation Vita Emu" "vita3k")
|
||||||
fi
|
fi
|
||||||
if [ "$(Xenia_IsInstalled)" = "true" ]; then
|
if [ "$(Xenia_IsInstalled)" == "true" ]; then
|
||||||
binTable+=(TRUE "Xbox 360 Emu" "xenia")
|
binTable+=(TRUE "Xbox 360 Emu" "xenia")
|
||||||
fi
|
fi
|
||||||
if [ "$(RPCS3_IsInstalled)" = "true" ]; then
|
if [ "$(RPCS3_IsInstalled)" == "true" ]; then
|
||||||
binTable+=(TRUE "PlayStation 3 Emu" "rpcs3")
|
binTable+=(TRUE "PlayStation 3 Emu" "rpcs3")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# shellcheck source=/home/deck/emudeck/settings.sh
|
# shellcheck source=/home/deck/emudeck/settings.sh
|
||||||
. ~/emudeck/settings.sh
|
. ~/emudeck/settings.sh
|
||||||
|
|
||||||
if [[ "$EMUDECKGIT" = "" ]]; then
|
if [[ "$EMUDECKGIT" == "" ]]; then
|
||||||
EMUDECKGIT="$HOME/.config/EmuDeck/backend"
|
EMUDECKGIT="$HOME/.config/EmuDeck/backend"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -35,9 +35,9 @@ compressCHD() {
|
||||||
CUEDIR="$(dirname "${file}")"
|
CUEDIR="$(dirname "${file}")"
|
||||||
echo "Compressing ${file%.*}.chd"
|
echo "Compressing ${file%.*}.chd"
|
||||||
chdman5 createcd -i "$file" -o "${file%.*}.chd" && successful="true"
|
chdman5 createcd -i "$file" -o "${file%.*}.chd" && successful="true"
|
||||||
if [[ $successful = "true" ]]; then
|
if [[ $successful == "true" ]]; then
|
||||||
echo "successfully created ${file%.*}.chd"
|
echo "successfully created ${file%.*}.chd"
|
||||||
if [[ ! ("$fileType" = 'iso' || "$fileType" = 'ISO') ]]; then
|
if [[ ! ("$fileType" == 'iso' || "$fileType" == 'ISO') ]]; then
|
||||||
find "${CUEDIR}" -maxdepth 1 -type f | while read -r b; do
|
find "${CUEDIR}" -maxdepth 1 -type f | while read -r b; do
|
||||||
fileName="$(basename "${b}")"
|
fileName="$(basename "${b}")"
|
||||||
found=$(grep "${fileName}" "${file}")
|
found=$(grep "${fileName}" "${file}")
|
||||||
|
@ -58,7 +58,7 @@ compressRVZ() {
|
||||||
local file=$1
|
local file=$1
|
||||||
local successful=''
|
local successful=''
|
||||||
${dolphintool} convert -f rvz -b 131072 -c zstd -l 5 -i "$file" -o "${file%.*}.rvz" && successful="true"
|
${dolphintool} convert -f rvz -b 131072 -c zstd -l 5 -i "$file" -o "${file%.*}.rvz" && successful="true"
|
||||||
if [[ $successful = "true" ]]; then
|
if [[ $successful == "true" ]]; then
|
||||||
echo "$file succesfully converted to ${file%.*}.rvz"
|
echo "$file succesfully converted to ${file%.*}.rvz"
|
||||||
rm -f "$file"
|
rm -f "$file"
|
||||||
else
|
else
|
||||||
|
@ -71,7 +71,7 @@ compressCSO() {
|
||||||
local file=$1
|
local file=$1
|
||||||
local successful=''
|
local successful=''
|
||||||
ciso 9 "$file" "${file%.*}.cso" && successful="true"
|
ciso 9 "$file" "${file%.*}.cso" && successful="true"
|
||||||
if [[ $successful = "true" ]]; then
|
if [[ $successful == "true" ]]; then
|
||||||
echo "$file succesfully converted to ${file%.*}.cso"
|
echo "$file succesfully converted to ${file%.*}.cso"
|
||||||
rm -f "$file"
|
rm -f "$file"
|
||||||
else
|
else
|
||||||
|
@ -91,7 +91,7 @@ selection=$(zenity --question \
|
||||||
--cancel-label="Exit" \
|
--cancel-label="Exit" \
|
||||||
--text="${text}" 2>/dev/null && echo "bulk")
|
--text="${text}" 2>/dev/null && echo "bulk")
|
||||||
|
|
||||||
if [ "$selection" = "bulk" ]; then
|
if [ "$selection" == "bulk" ]; then
|
||||||
|
|
||||||
#paths update via sed in main script
|
#paths update via sed in main script
|
||||||
#romsPath="/run/media/mmcblk0p1/Emulation/roms" #use path from settings
|
#romsPath="/run/media/mmcblk0p1/Emulation/roms" #use path from settings
|
||||||
|
@ -129,7 +129,7 @@ if [ "$selection" = "bulk" ]; then
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if ((${#searchFolderList[@]} = 0)); then
|
if ((${#searchFolderList[@]} == 0)); then
|
||||||
echo "No eligible files found."
|
echo "No eligible files found."
|
||||||
text="$(printf "<b>No suitable roms were found for conversion.</b>\n\nPlease check if you have any cue / gdi / iso files for compatible systems.")"
|
text="$(printf "<b>No suitable roms were found for conversion.</b>\n\nPlease check if you have any cue / gdi / iso files for compatible systems.")"
|
||||||
zenity --error \
|
zenity --error \
|
||||||
|
@ -217,7 +217,7 @@ if [ "$selection" = "bulk" ]; then
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
elif [ "$selection" = "Pick a file" ]; then
|
elif [ "$selection" == "Pick a file" ]; then
|
||||||
|
|
||||||
#/bin/bash
|
#/bin/bash
|
||||||
f=$(zenity --file-selection --file-filter='Discs (cue,gdi,iso,gcm) | *.cue *.gdi *.iso *.gcm' --file-filter='All files | *' 2>/dev/null)
|
f=$(zenity --file-selection --file-filter='Discs (cue,gdi,iso,gcm) | *.cue *.gdi *.iso *.gcm' --file-filter='All files | *' 2>/dev/null)
|
||||||
|
@ -256,7 +256,7 @@ if [ "$uiMode" != 'zenity' ]; then
|
||||||
--text="${text}" 2>/dev/null
|
--text="${text}" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$uiMode" = 'zenity' ]; then
|
if [ "$uiMode" == 'zenity' ]; then
|
||||||
|
|
||||||
text="$(printf "<b>Done!</b>\n\n If you use Steam ROM Manager to catalog your games you will need to open it now to update your games")"
|
text="$(printf "<b>Done!</b>\n\n If you use Steam ROM Manager to catalog your games you will need to open it now to update your games")"
|
||||||
zenity --question \
|
zenity --question \
|
||||||
|
|
|
@ -42,7 +42,7 @@ for dir in "$savesPath"/*/*; do
|
||||||
done
|
done
|
||||||
|
|
||||||
# Loop that runs every second
|
# Loop that runs every second
|
||||||
while [ 1 = 1 ]
|
while [ 1 == 1 ]
|
||||||
do
|
do
|
||||||
|
|
||||||
# Check for changes in hashes
|
# Check for changes in hashes
|
||||||
|
@ -59,7 +59,7 @@ do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# if [[ $dir = *"citra/saves"* ]]; then
|
# if [[ $dir == *"citra/saves"* ]]; then
|
||||||
# echo "$dir - ${current_hashes[$dir]}" >> $HOME/emudeck/logs/CloudWatcher.log
|
# echo "$dir - ${current_hashes[$dir]}" >> $HOME/emudeck/logs/CloudWatcher.log
|
||||||
# echo "$dir - $new_hash" >> $HOME/emudeck/logs/CloudWatcher.log
|
# echo "$dir - $new_hash" >> $HOME/emudeck/logs/CloudWatcher.log
|
||||||
# fi
|
# fi
|
||||||
|
@ -72,12 +72,12 @@ do
|
||||||
# echo $currentEmu >> $HOME/emudeck/logs/CloudWatcher.log
|
# echo $currentEmu >> $HOME/emudeck/logs/CloudWatcher.log
|
||||||
# echo $dir >> $HOME/emudeck/logs/CloudWatcher.log
|
# echo $dir >> $HOME/emudeck/logs/CloudWatcher.log
|
||||||
|
|
||||||
if [ "${current_hashes[$dir]}" != "$new_hash" ] && [[ $dir = *"$currentEmu"* ]]; then
|
if [ "${current_hashes[$dir]}" != "$new_hash" ] && [[ $dir == *"$currentEmu"* ]]; then
|
||||||
# Show the name of the folder immediately behind "saves"
|
# Show the name of the folder immediately behind "saves"
|
||||||
echo "SERVICE - CHANGES DETECTED on $dir, LETS CHECK IF ITS A DUPLICATE" >> $HOME/emudeck/logs/CloudWatcher.log
|
echo "SERVICE - CHANGES DETECTED on $dir, LETS CHECK IF ITS A DUPLICATE" >> $HOME/emudeck/logs/CloudWatcher.log
|
||||||
timestamp=$(date +%s)
|
timestamp=$(date +%s)
|
||||||
|
|
||||||
if [ $((timestamp - lastSavedTime)) = 0 ]; then
|
if [ $((timestamp - lastSavedTime)) == 0 ]; then
|
||||||
echo "SERVICE - IGNORED, same timestamp" >> $HOME/emudeck/logs/CloudWatcher.log
|
echo "SERVICE - IGNORED, same timestamp" >> $HOME/emudeck/logs/CloudWatcher.log
|
||||||
fi
|
fi
|
||||||
echo $((timestamp - lastSavedTime)) >> $HOME/emudeck/logs/CloudWatcher.log
|
echo $((timestamp - lastSavedTime)) >> $HOME/emudeck/logs/CloudWatcher.log
|
||||||
|
|
|
@ -140,7 +140,7 @@ main () {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Only run if run directly
|
# Only run if run directly
|
||||||
if [[ "${BASH_SOURCE[0]}" = "${0}" ]]; then
|
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
||||||
# Get own directory
|
# Get own directory
|
||||||
selfDir="$( dirname "${BASH_SOURCE[0]}" )"
|
selfDir="$( dirname "${BASH_SOURCE[0]}" )"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
. "$HOME/.config/EmuDeck/backend/functions/all.sh"
|
. "$HOME/.config/EmuDeck/backend/functions/all.sh"
|
||||||
if [ "$?" = "1" ]; then
|
if [ "$?" == "1" ]; then
|
||||||
echo "functions could not be loaded."
|
echo "functions could not be loaded."
|
||||||
zenity --error \
|
zenity --error \
|
||||||
--text="EmuDeck Functions could not be loaded. Please re-run Emudeck install." 2>/dev/null
|
--text="EmuDeck Functions could not be loaded. Please re-run Emudeck install." 2>/dev/null
|
||||||
|
@ -8,39 +8,39 @@ if [ "$?" = "1" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
emuTable=()
|
emuTable=()
|
||||||
if [ "$(RetroArch_IsInstalled)" = "true" ]; then
|
if [ "$(RetroArch_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "Multiple" "RetroArch")
|
emuTable+=(TRUE "Multiple" "RetroArch")
|
||||||
fi
|
fi
|
||||||
if [ "$(Primehack_IsInstalled)" = "true" ]; then
|
if [ "$(Primehack_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "Metroid Prime" "PrimeHack")
|
emuTable+=(TRUE "Metroid Prime" "PrimeHack")
|
||||||
fi
|
fi
|
||||||
if [ "$(RPCS3_IsInstalled)" = "true" ]; then
|
if [ "$(RPCS3_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "PS3" "RPCS3")
|
emuTable+=(TRUE "PS3" "RPCS3")
|
||||||
fi
|
fi
|
||||||
if [ "$(Citra_IsInstalled)" = "true" ]; then
|
if [ "$(Citra_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "3DS" "Citra")
|
emuTable+=(TRUE "3DS" "Citra")
|
||||||
fi
|
fi
|
||||||
if [ "$(Dolphin_IsInstalled)" = "true" ]; then
|
if [ "$(Dolphin_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "GC/Wii" "Dolphin")
|
emuTable+=(TRUE "GC/Wii" "Dolphin")
|
||||||
fi
|
fi
|
||||||
if [ "$(DuckStation_IsInstalled)" = "true" ]; then
|
if [ "$(DuckStation_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "PSX" "DuckStation")
|
emuTable+=(TRUE "PSX" "DuckStation")
|
||||||
fi
|
fi
|
||||||
if [ "$(PPSSPP_IsInstalled)" = "true" ]; then
|
if [ "$(PPSSPP_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "PSP" "PPSSPP")
|
emuTable+=(TRUE "PSP" "PPSSPP")
|
||||||
fi
|
fi
|
||||||
if [ "$(Xemu_IsInstalled)" = "true" ]; then
|
if [ "$(Xemu_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "XBox" "Xemu")
|
emuTable+=(TRUE "XBox" "Xemu")
|
||||||
fi
|
fi
|
||||||
if [ "$(ScummVM_IsInstalled)" = "true" ]; then
|
if [ "$(ScummVM_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "Scumm/DOS" "ScummVM")
|
emuTable+=(TRUE "Scumm/DOS" "ScummVM")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(RMG_IsInstalled)" = "true" ]; then
|
if [ "$(RMG_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "N64" "RMG")
|
emuTable+=(TRUE "N64" "RMG")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(melonDS_IsInstalled)" = "true" ]; then
|
if [ "$(melonDS_IsInstalled)" == "true" ]; then
|
||||||
emuTable+=(TRUE "DS" "melonDS")
|
emuTable+=(TRUE "DS" "melonDS")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -71,84 +71,84 @@ if [ "${#emuTable[@]}" -gt 0 ]; then
|
||||||
|
|
||||||
echo "User selected: $emusToInstall"
|
echo "User selected: $emusToInstall"
|
||||||
|
|
||||||
if [[ "$emusToInstall" = *"RetroArch"* ]]; then
|
if [[ "$emusToInstall" == *"RetroArch"* ]]; then
|
||||||
doUpdateRA=true
|
doUpdateRA=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"PrimeHack"* ]]; then
|
if [[ "$emusToInstall" == *"PrimeHack"* ]]; then
|
||||||
doUpdatePrimeHack=true
|
doUpdatePrimeHack=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"RPCS3"* ]]; then
|
if [[ "$emusToInstall" == *"RPCS3"* ]]; then
|
||||||
doUpdateRPCS3=true
|
doUpdateRPCS3=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"Citra"* ]]; then
|
if [[ "$emusToInstall" == *"Citra"* ]]; then
|
||||||
doUpdateCitra=true
|
doUpdateCitra=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"Dolphin"* ]]; then
|
if [[ "$emusToInstall" == *"Dolphin"* ]]; then
|
||||||
doUpdateDolphin=true
|
doUpdateDolphin=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"DuckStation"* ]]; then
|
if [[ "$emusToInstall" == *"DuckStation"* ]]; then
|
||||||
doUpdateDuck=true
|
doUpdateDuck=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"PPSSPP"* ]]; then
|
if [[ "$emusToInstall" == *"PPSSPP"* ]]; then
|
||||||
doUpdatePPSSPP=true
|
doUpdatePPSSPP=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"Xemu"* ]]; then
|
if [[ "$emusToInstall" == *"Xemu"* ]]; then
|
||||||
doUpdateXemu=true
|
doUpdateXemu=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"ScummVM"* ]]; then
|
if [[ "$emusToInstall" == *"ScummVM"* ]]; then
|
||||||
doUpdateScummVM=true
|
doUpdateScummVM=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"MelonDS"* ]]; then
|
if [[ "$emusToInstall" == *"MelonDS"* ]]; then
|
||||||
doUpdateMelonDS=true
|
doUpdateMelonDS=true
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToInstall" = *"RMG"* ]]; then
|
if [[ "$emusToInstall" == *"RMG"* ]]; then
|
||||||
doUpdateRMG=true
|
doUpdateRMG=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
(
|
(
|
||||||
progressInstalled=""
|
progressInstalled=""
|
||||||
if [ "$doUpdateRA" = "true" ]; then
|
if [ "$doUpdateRA" == "true" ]; then
|
||||||
echo "###Updating RetroArch..."
|
echo "###Updating RetroArch..."
|
||||||
(updateEmuFP "RetroArch" "org.libretro.RetroArch" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|RetroArch" && echo "&&&$progressInstalled"
|
(updateEmuFP "RetroArch" "org.libretro.RetroArch" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|RetroArch" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdatePrimeHack" = "true" ]; then
|
if [ "$doUpdatePrimeHack" == "true" ]; then
|
||||||
echo "###Updating PrimeHack..."
|
echo "###Updating PrimeHack..."
|
||||||
(updateEmuFP "PrimeHack" "io.github.shiiion.primehack" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|PrimeHack" && echo "&&&$progressInstalled"
|
(updateEmuFP "PrimeHack" "io.github.shiiion.primehack" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|PrimeHack" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdateRPCS3" = "true" ]; then
|
if [ "$doUpdateRPCS3" == "true" ]; then
|
||||||
echo "###Updating RPCS3..."
|
echo "###Updating RPCS3..."
|
||||||
(updateEmuFP "RPCS3" "net.rpcs3.RPCS3" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|RPCS3" && echo "&&&$progressInstalled"
|
(updateEmuFP "RPCS3" "net.rpcs3.RPCS3" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|RPCS3" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdateCitra" = "true" ]; then
|
if [ "$doUpdateCitra" == "true" ]; then
|
||||||
echo "###Updating Citra..."
|
echo "###Updating Citra..."
|
||||||
(updateEmuFP "Citra" "org.citra_emu.citra" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|Citra" && echo "&&&$progressInstalled"
|
(updateEmuFP "Citra" "org.citra_emu.citra" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|Citra" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdateDolphin" = "true" ]; then
|
if [ "$doUpdateDolphin" == "true" ]; then
|
||||||
echo "###Updating Dolphin..."
|
echo "###Updating Dolphin..."
|
||||||
(updateEmuFP "dolphin-emu" "org.DolphinEmu.dolphin-emu" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|Dolphin" && echo "&&&$progressInstalled"
|
(updateEmuFP "dolphin-emu" "org.DolphinEmu.dolphin-emu" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|Dolphin" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdateDuck" = "true" ]; then
|
if [ "$doUpdateDuck" == "true" ]; then
|
||||||
echo "###Updating DuckStation..."
|
echo "###Updating DuckStation..."
|
||||||
(updateEmuFP "DuckStation" "org.duckstation.DuckStation" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|DuckStation" && echo "&&&$progressInstalled"
|
(updateEmuFP "DuckStation" "org.duckstation.DuckStation" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|DuckStation" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdatePPSSPP" = "true" ]; then
|
if [ "$doUpdatePPSSPP" == "true" ]; then
|
||||||
echo "###Updating PPSSPP..."
|
echo "###Updating PPSSPP..."
|
||||||
(updateEmuFP "PPSSPP" "org.ppsspp.PPSSPP" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|PPSSPP" && echo "&&&$progressInstalled"
|
(updateEmuFP "PPSSPP" "org.ppsspp.PPSSPP" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|PPSSPP" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdateXemu" = "true" ]; then
|
if [ "$doUpdateXemu" == "true" ]; then
|
||||||
echo "###Updating Xemu..."
|
echo "###Updating Xemu..."
|
||||||
(updateEmuFP "Xemu-Emu" "app.xemu.xemu" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|Xemu" && echo "&&&$progressInstalled"
|
(updateEmuFP "Xemu-Emu" "app.xemu.xemu" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|Xemu" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdateScummVM" = "true" ]; then
|
if [ "$doUpdateScummVM" == "true" ]; then
|
||||||
echo "###Updating ScummVM..."
|
echo "###Updating ScummVM..."
|
||||||
(updateEmuFP "ScummVM" "org.scummvm.ScummVM" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|ScummVM" && echo "&&&$progressInstalled"
|
(updateEmuFP "ScummVM" "org.scummvm.ScummVM" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|ScummVM" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
if [ "$doUpdateMelonDS" = "true" ]; then
|
if [ "$doUpdateMelonDS" == "true" ]; then
|
||||||
echo "###Updating melonDS..."
|
echo "###Updating melonDS..."
|
||||||
(updateEmuFP "melonDS" "net.kuribo64.melonDS" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|melonDS" && echo "&&&$progressInstalled"
|
(updateEmuFP "melonDS" "net.kuribo64.melonDS" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|melonDS" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$doUpdateRMG" = "true" ]; then
|
if [ "$doUpdateRMG" == "true" ]; then
|
||||||
echo "###Updating RMG..."
|
echo "###Updating RMG..."
|
||||||
(updateEmuFP "RMG" "com.github.Rosalie241.RMG" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|RMG" && echo "&&&$progressInstalled"
|
(updateEmuFP "RMG" "com.github.Rosalie241.RMG" || true) && let progresspct+=$pct && echo "%%%$progresspct" && progressInstalled+="|RMG" && echo "&&&$progressInstalled"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -9,13 +9,13 @@ reportError () {
|
||||||
# Report error to logfile
|
# Report error to logfile
|
||||||
echo "${1}" >> "${LOGFILE}"
|
echo "${1}" >> "${LOGFILE}"
|
||||||
# Open a Zenity dialog for the user
|
# Open a Zenity dialog for the user
|
||||||
if [ "${2}" = "true" ]; then
|
if [ "${2}" == "true" ]; then
|
||||||
zenity --error \
|
zenity --error \
|
||||||
--text="${1}"\
|
--text="${1}"\
|
||||||
--width=250
|
--width=250
|
||||||
fi
|
fi
|
||||||
# Exit the script
|
# Exit the script
|
||||||
if [ "${3}" = "true" ]; then
|
if [ "${3}" == "true" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,12 +6,12 @@ cloud_sync_downloadEmu "Cemu" && cloud_sync_startService
|
||||||
# Report Errors
|
# Report Errors
|
||||||
reportError () {
|
reportError () {
|
||||||
echo "${1}"
|
echo "${1}"
|
||||||
if [ "${2}" = "true" ]; then
|
if [ "${2}" == "true" ]; then
|
||||||
zenity --error \
|
zenity --error \
|
||||||
--text="${1}" \
|
--text="${1}" \
|
||||||
--width=250
|
--width=250
|
||||||
fi
|
fi
|
||||||
if [ "${3}" = "true" ]; then
|
if [ "${3}" == "true" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ main () {
|
||||||
doProton="false"
|
doProton="false"
|
||||||
|
|
||||||
# Check for -W Flag override to windows version
|
# Check for -W Flag override to windows version
|
||||||
if [ "$1" = "-w" ]; then
|
if [ "$1" == "-w" ]; then
|
||||||
doProton="true"
|
doProton="true"
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
@ -104,9 +104,9 @@ main () {
|
||||||
showArguments "${@}"
|
showArguments "${@}"
|
||||||
|
|
||||||
# Run Emulator
|
# Run Emulator
|
||||||
if [[ "${doProton}" = "false" ]]; then
|
if [[ "${doProton}" == "false" ]]; then
|
||||||
#If doProton is false, check that EMUPATH was set correctly
|
#If doProton is false, check that EMUPATH was set correctly
|
||||||
if [[ "${EMUPATH}" = "false" ]] || [[ -z "${EMUPATH}" ]]; then
|
if [[ "${EMUPATH}" == "false" ]] || [[ -z "${EMUPATH}" ]]; then
|
||||||
echo "Error: Unable to emulator path."
|
echo "Error: Unable to emulator path."
|
||||||
reportError "Error: Unable to emulator path." "true" "true"
|
reportError "Error: Unable to emulator path." "true" "true"
|
||||||
fi
|
fi
|
||||||
|
@ -182,7 +182,7 @@ main () {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Only run if run directly
|
# Only run if run directly
|
||||||
if [[ "${BASH_SOURCE[0]}" = "${0}" ]]; then
|
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
||||||
# Set a LOGFILE to proton-launch.log in the same directory this script runs from
|
# Set a LOGFILE to proton-launch.log in the same directory this script runs from
|
||||||
# LogFile
|
# LogFile
|
||||||
LOGFILE="$( dirname "${BASH_SOURCE[0]}" )/cemu-launch.log"
|
LOGFILE="$( dirname "${BASH_SOURCE[0]}" )/cemu-launch.log"
|
||||||
|
|
|
@ -8,7 +8,7 @@ emufolder="$HOME/Applications" # has to be applications for ES-DE to find it
|
||||||
exe=$(find $emufolder -iname "${emuName}*.AppImage" | sort -n | cut -d' ' -f 2- | tail -n 1 2>/dev/null)
|
exe=$(find $emufolder -iname "${emuName}*.AppImage" | sort -n | cut -d' ' -f 2- | tail -n 1 2>/dev/null)
|
||||||
|
|
||||||
#if appimage doesn't exist fall back to flatpak.
|
#if appimage doesn't exist fall back to flatpak.
|
||||||
if [[ $exe = '' ]]; then
|
if [[ $exe == '' ]]; then
|
||||||
#flatpak
|
#flatpak
|
||||||
flatpakApp=$(flatpak list --app --columns=application | grep $emuName)
|
flatpakApp=$(flatpak list --app --columns=application | grep $emuName)
|
||||||
exe="/usr/bin/flatpak run "$flatpakApp
|
exe="/usr/bin/flatpak run "$flatpakApp
|
||||||
|
|
|
@ -8,7 +8,7 @@ emufolder="$HOME/Applications" # has to be applications for ES-DE to find it
|
||||||
exe=$(find $emufolder -iname "${emuName}*.AppImage" | sort -n | cut -d' ' -f 2- | tail -n 1 2>/dev/null)
|
exe=$(find $emufolder -iname "${emuName}*.AppImage" | sort -n | cut -d' ' -f 2- | tail -n 1 2>/dev/null)
|
||||||
|
|
||||||
#if appimage doesn't exist fall back to flatpak.
|
#if appimage doesn't exist fall back to flatpak.
|
||||||
if [[ $exe = '' ]]; then
|
if [[ $exe == '' ]]; then
|
||||||
#flatpak
|
#flatpak
|
||||||
flatpakApp=$(flatpak list --app --columns=application | grep $emuName)
|
flatpakApp=$(flatpak list --app --columns=application | grep $emuName)
|
||||||
exe="/usr/bin/flatpak run "$flatpakApp
|
exe="/usr/bin/flatpak run "$flatpakApp
|
||||||
|
|
|
@ -8,7 +8,7 @@ emufolder="$HOME/Applications/publish" # has to be applications for ES-DE to fin
|
||||||
exe=$(find $emufolder -iname "${emuName}" | sort -n | cut -d' ' -f 2- | tail -n 1 2>/dev/null)
|
exe=$(find $emufolder -iname "${emuName}" | sort -n | cut -d' ' -f 2- | tail -n 1 2>/dev/null)
|
||||||
|
|
||||||
#if appimage doesn't exist fall back to flatpak.
|
#if appimage doesn't exist fall back to flatpak.
|
||||||
if [[ $exe = '' ]]; then
|
if [[ $exe == '' ]]; then
|
||||||
#flatpak
|
#flatpak
|
||||||
flatpakApp=$(flatpak list --app --columns=application | grep $emuName)
|
flatpakApp=$(flatpak list --app --columns=application | grep $emuName)
|
||||||
exe="/usr/bin/flatpak run "$flatpakApp
|
exe="/usr/bin/flatpak run "$flatpakApp
|
||||||
|
|
|
@ -7,13 +7,13 @@ reportError () {
|
||||||
# Report error to logfile
|
# Report error to logfile
|
||||||
echo "${1}" >> "${LOGFILE}"
|
echo "${1}" >> "${LOGFILE}"
|
||||||
# Open a Zenity dialog for the user
|
# Open a Zenity dialog for the user
|
||||||
if [ "${2}" = "true" ]; then
|
if [ "${2}" == "true" ]; then
|
||||||
zenity --error \
|
zenity --error \
|
||||||
--text="${1}"\
|
--text="${1}"\
|
||||||
--width=250
|
--width=250
|
||||||
fi
|
fi
|
||||||
# Exit the script
|
# Exit the script
|
||||||
if [ "${3}" = "true" ]; then
|
if [ "${3}" == "true" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,7 @@ set_env () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set SteamAppId
|
# Set SteamAppId
|
||||||
if [ -z ${SteamAppId+x} ] || [ "${SteamAppId}" = 0 ]; then
|
if [ -z ${SteamAppId+x} ] || [ "${SteamAppId}" == 0 ]; then
|
||||||
if [ -n "${APPID}" ]; then
|
if [ -n "${APPID}" ]; then
|
||||||
export SteamAppId="${APPID}"
|
export SteamAppId="${APPID}"
|
||||||
elif [ -z ${SteamAppId+x} ]; then
|
elif [ -z ${SteamAppId+x} ]; then
|
||||||
|
@ -219,7 +219,7 @@ main () {
|
||||||
shift "$(( OPTIND - 1 ))"
|
shift "$(( OPTIND - 1 ))"
|
||||||
|
|
||||||
# Make sure there weren't any odd arguments in the options
|
# Make sure there weren't any odd arguments in the options
|
||||||
if [[ "${*}" = *"--"* ]]; then
|
if [[ "${*}" == *"--"* ]]; then
|
||||||
echo "Error: Invalid argument in options." >> "${LOGFILE}"
|
echo "Error: Invalid argument in options." >> "${LOGFILE}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -268,7 +268,7 @@ main () {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Only run if run directly
|
# Only run if run directly
|
||||||
if [[ "${BASH_SOURCE[0]}" = "${0}" ]]; then
|
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
||||||
# Set a LOGFILE to proton-launch.log in the same directory this script runs from
|
# Set a LOGFILE to proton-launch.log in the same directory this script runs from
|
||||||
LOGFILE="$(dirname "${BASH_SOURCE[0]}")/proton-launch.log"
|
LOGFILE="$(dirname "${BASH_SOURCE[0]}")/proton-launch.log"
|
||||||
echo "$(date +'%m/%d/%Y - %H:%M:%S') - Started" > "${LOGFILE}"
|
echo "$(date +'%m/%d/%Y - %H:%M:%S') - Started" > "${LOGFILE}"
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
#
|
#
|
||||||
# STR=$romNameNoExtensionTrimmed
|
# STR=$romNameNoExtensionTrimmed
|
||||||
# SUB=', The'
|
# SUB=', The'
|
||||||
# if [[ "$STR" = *"$SUB"* ]]; then
|
# if [[ "$STR" == *"$SUB"* ]]; then
|
||||||
#
|
#
|
||||||
# firstString=$romNameNoExtensionTrimmed
|
# firstString=$romNameNoExtensionTrimmed
|
||||||
# secondString=""
|
# secondString=""
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
#
|
#
|
||||||
# romNameNoExtensionForLaunchbox=$(echo $romNameNoExtensionForLaunchbox | sed -r "s/,//g")
|
# romNameNoExtensionForLaunchbox=$(echo $romNameNoExtensionForLaunchbox | sed -r "s/,//g")
|
||||||
#
|
#
|
||||||
# if [ $startcapture = true ]; then
|
# if [ $startcapture == true ]; then
|
||||||
#
|
#
|
||||||
# hasWheel=false
|
# hasWheel=false
|
||||||
# hasSs=false
|
# hasSs=false
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
# fi
|
# fi
|
||||||
#
|
#
|
||||||
# #We only search games with no art
|
# #We only search games with no art
|
||||||
# if [ $hasWheel = false ] || [ $hasSs = false ] || [ $hasBox = false ]; then
|
# if [ $hasWheel == false ] || [ $hasSs == false ] || [ $hasBox == false ]; then
|
||||||
#
|
#
|
||||||
# content=$(cat ~/dragoonDoriseTools/pegasus-android-metadata/metadata.json)
|
# content=$(cat ~/dragoonDoriseTools/pegasus-android-metadata/metadata.json)
|
||||||
#
|
#
|
||||||
|
@ -126,7 +126,7 @@
|
||||||
#
|
#
|
||||||
# if [[ $urlMediaWheel != null ]]; then
|
# if [[ $urlMediaWheel != null ]]; then
|
||||||
#
|
#
|
||||||
# if [ $hasWheel = true ]; then
|
# if [ $hasWheel == true ]; then
|
||||||
# echo -e "Image already exists, ${YELLOW}ignoring${NONE}" &> /dev/null
|
# echo -e "Image already exists, ${YELLOW}ignoring${NONE}" &> /dev/null
|
||||||
# else
|
# else
|
||||||
# wget -q --show-progress "$urlMediaWheel" -O "$wheelSavePath"
|
# wget -q --show-progress "$urlMediaWheel" -O "$wheelSavePath"
|
||||||
|
@ -134,14 +134,14 @@
|
||||||
#
|
#
|
||||||
# fi
|
# fi
|
||||||
# if [[ $urlMediaSs != null ]]; then
|
# if [[ $urlMediaSs != null ]]; then
|
||||||
# if [ $hasSs = true ]; then
|
# if [ $hasSs == true ]; then
|
||||||
# echo -e "Image already exists, ${YELLOW}ignoring${NONE}" &> /dev/null
|
# echo -e "Image already exists, ${YELLOW}ignoring${NONE}" &> /dev/null
|
||||||
# else
|
# else
|
||||||
# wget -q --show-progress "$urlMediaSs" -O "$ssSavePath"
|
# wget -q --show-progress "$urlMediaSs" -O "$ssSavePath"
|
||||||
# fi
|
# fi
|
||||||
# fi
|
# fi
|
||||||
# if [[ $urlMediaBox != null ]]; then
|
# if [[ $urlMediaBox != null ]]; then
|
||||||
# if [ $hasBox = true ]; then
|
# if [ $hasBox == true ]; then
|
||||||
# echo -e "Image already exists, ${YELLOW}ignoring${NONE}" &> /dev/null
|
# echo -e "Image already exists, ${YELLOW}ignoring${NONE}" &> /dev/null
|
||||||
# else
|
# else
|
||||||
# wget -q --show-progress "$urlMediaBox" -O "$box2dfrontSavePath"
|
# wget -q --show-progress "$urlMediaBox" -O "$box2dfrontSavePath"
|
||||||
|
|
|
@ -20,7 +20,7 @@ romParser_RA_download(){
|
||||||
echo -e "Image already exists, ${YELLOW}ignoring${NONE}"
|
echo -e "Image already exists, ${YELLOW}ignoring${NONE}"
|
||||||
else
|
else
|
||||||
status=$(wget --spider "http://thumbnails.libretro.com/$remoteSystem/$RA_folder/$romName.png" 2>&1)
|
status=$(wget --spider "http://thumbnails.libretro.com/$remoteSystem/$RA_folder/$romName.png" 2>&1)
|
||||||
if [[ $status = *"image/png"* ]] || [[ $status = *"image/jpeg"* ]] || [[ $status = *"image/jpg"* ]]; then
|
if [[ $status == *"image/png"* ]] || [[ $status == *"image/jpeg"* ]] || [[ $status == *"image/jpg"* ]]; then
|
||||||
wget -q --show-progress "http://thumbnails.libretro.com/$remoteSystem/$RA_folder/$romName.png" -P "$romsPath/$system/media/$type/" |
|
wget -q --show-progress "http://thumbnails.libretro.com/$remoteSystem/$RA_folder/$romName.png" -P "$romsPath/$system/media/$type/" |
|
||||||
zenity --progress \
|
zenity --progress \
|
||||||
--title="EmuDeck RetroArch Parser" \
|
--title="EmuDeck RetroArch Parser" \
|
||||||
|
@ -186,7 +186,7 @@ romParser_RA_start(){
|
||||||
do
|
do
|
||||||
system=$(echo "$systemPath" | sed 's/.*\/\([^\/]*\)\/\?$/\1/')
|
system=$(echo "$systemPath" | sed 's/.*\/\([^\/]*\)\/\?$/\1/')
|
||||||
|
|
||||||
if [[ "$systemPath" = *tx* ]]; then
|
if [[ "$systemPath" == *tx* ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -47,19 +47,19 @@ romParser_SS_download(){
|
||||||
#ID Game
|
#ID Game
|
||||||
content=$(curl $urlIDSS)
|
content=$(curl $urlIDSS)
|
||||||
#Don't check art if screenscraper is closed
|
#Don't check art if screenscraper is closed
|
||||||
if [[ $content = *"API closed"* ]]; then
|
if [[ $content == *"API closed"* ]]; then
|
||||||
echo -e "The Screenscraper API is currently down, please try again later."
|
echo -e "The Screenscraper API is currently down, please try again later."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
#Don't check art after a failed curl request
|
#Don't check art after a failed curl request
|
||||||
if [[ $content = "" ]]; then
|
if [[ $content == "" ]]; then
|
||||||
echo -e "Request failed to send for $romName, ${YELLOW}skipping${NONE}"
|
echo -e "Request failed to send for $romName, ${YELLOW}skipping${NONE}"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Request failed for $romName"
|
echo "Request failed for $romName"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
#Don't check art if screenscraper can't find a match
|
#Don't check art if screenscraper can't find a match
|
||||||
if [[ $content = *"Erreur"* ]]; then
|
if [[ $content == *"Erreur"* ]]; then
|
||||||
echo -e "Couldn't find a match for $romName, ${YELLOW}skipping${NONE}"
|
echo -e "Couldn't find a match for $romName, ${YELLOW}skipping${NONE}"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Couldn't find a match for $romName"
|
echo "Couldn't find a match for $romName"
|
||||||
|
@ -78,7 +78,7 @@ romParser_SS_download(){
|
||||||
echo -e "${BOLD}Scraping: $media${NONE}"
|
echo -e "${BOLD}Scraping: $media${NONE}"
|
||||||
StatusString=$(wget --spider "$url" 2>&1)
|
StatusString=$(wget --spider "$url" 2>&1)
|
||||||
echo -ne "${BOLD}Searching World Region..."
|
echo -ne "${BOLD}Searching World Region..."
|
||||||
if [[ $StatusString = *"image/png"* ]] || [[ $StatusString = *"image/jpeg"* ]] || [[ $StatusString = *"image/jpg"* ]]; then
|
if [[ $StatusString == *"image/png"* ]] || [[ $StatusString == *"image/jpeg"* ]] || [[ $StatusString == *"image/jpg"* ]]; then
|
||||||
wget -q --show-progress "$url" -O "$urlSave" |
|
wget -q --show-progress "$url" -O "$urlSave" |
|
||||||
zenity --progress \
|
zenity --progress \
|
||||||
--title="EmuDeck RetroArch Parser" \
|
--title="EmuDeck RetroArch Parser" \
|
||||||
|
@ -93,7 +93,7 @@ romParser_SS_download(){
|
||||||
secondString="(us)"
|
secondString="(us)"
|
||||||
url="${firstString/(wor)/"$secondString"}"
|
url="${firstString/(wor)/"$secondString"}"
|
||||||
StatusString=$(wget --spider "$url" 2>&1)
|
StatusString=$(wget --spider "$url" 2>&1)
|
||||||
if [[ $StatusString = *"image/png"* ]] || [[ $StatusString = *"image/jpeg"* ]] || [[ $StatusString = *"image/jpg"* ]]; then
|
if [[ $StatusString == *"image/png"* ]] || [[ $StatusString == *"image/jpeg"* ]] || [[ $StatusString == *"image/jpg"* ]]; then
|
||||||
wget -q --show-progress "$url" -O "$urlSave" |
|
wget -q --show-progress "$url" -O "$urlSave" |
|
||||||
zenity --progress \
|
zenity --progress \
|
||||||
--title="EmuDeck RetroArch Parser" \
|
--title="EmuDeck RetroArch Parser" \
|
||||||
|
@ -108,7 +108,7 @@ romParser_SS_download(){
|
||||||
secondString="(eu)"
|
secondString="(eu)"
|
||||||
url="${firstString/(us)/"$secondString"}"
|
url="${firstString/(us)/"$secondString"}"
|
||||||
StatusString=$(wget --spider "$url" 2>&1)
|
StatusString=$(wget --spider "$url" 2>&1)
|
||||||
if [[ $StatusString = *"image/png"* ]] || [[ $StatusString = *"image/jpeg"* ]] || [[ $StatusString = *"image/jpg"* ]]; then
|
if [[ $StatusString == *"image/png"* ]] || [[ $StatusString == *"image/jpeg"* ]] || [[ $StatusString == *"image/jpg"* ]]; then
|
||||||
wget -q --show-progress "$url" -O "$urlSave" |
|
wget -q --show-progress "$url" -O "$urlSave" |
|
||||||
zenity --progress \
|
zenity --progress \
|
||||||
--title="EmuDeck RetroArch Parser" \
|
--title="EmuDeck RetroArch Parser" \
|
||||||
|
@ -124,7 +124,7 @@ romParser_SS_download(){
|
||||||
secondString="(usa)"
|
secondString="(usa)"
|
||||||
url="${firstString/(eu)/"$secondString"}"
|
url="${firstString/(eu)/"$secondString"}"
|
||||||
StatusString=$(wget --spider "$url" 2>&1)
|
StatusString=$(wget --spider "$url" 2>&1)
|
||||||
if [[ $StatusString = *"image/png"* ]] || [[ $StatusString = *"image/jpeg"* ]] || [[ $StatusString = *"image/jpg"* ]]; then
|
if [[ $StatusString == *"image/png"* ]] || [[ $StatusString == *"image/jpeg"* ]] || [[ $StatusString == *"image/jpg"* ]]; then
|
||||||
wget -q --show-progress "$url" -O "$urlSave" |
|
wget -q --show-progress "$url" -O "$urlSave" |
|
||||||
zenity --progress \
|
zenity --progress \
|
||||||
--title="EmuDeck RetroArch Parser" \
|
--title="EmuDeck RetroArch Parser" \
|
||||||
|
@ -139,7 +139,7 @@ romParser_SS_download(){
|
||||||
secondString="(cus)"
|
secondString="(cus)"
|
||||||
url="${firstString/(usa)/"$secondString"}"
|
url="${firstString/(usa)/"$secondString"}"
|
||||||
StatusString=$(wget --spider "$url" 2>&1)
|
StatusString=$(wget --spider "$url" 2>&1)
|
||||||
if [[ $StatusString = *"image/png"* ]] || [[ $StatusString = *"image/jpeg"* ]] || [[ $StatusString = *"image/jpg"* ]]; then
|
if [[ $StatusString == *"image/png"* ]] || [[ $StatusString == *"image/jpeg"* ]] || [[ $StatusString == *"image/jpg"* ]]; then
|
||||||
wget -q --show-progress "$url" -O "$urlSave" |
|
wget -q --show-progress "$url" -O "$urlSave" |
|
||||||
zenity --progress \
|
zenity --progress \
|
||||||
--title="EmuDeck RetroArch Parser" \
|
--title="EmuDeck RetroArch Parser" \
|
||||||
|
@ -154,7 +154,7 @@ romParser_SS_download(){
|
||||||
secondString=""
|
secondString=""
|
||||||
url="${firstString/(cus)/"$secondString"}"
|
url="${firstString/(cus)/"$secondString"}"
|
||||||
StatusString=$(wget --spider "$url" 2>&1)
|
StatusString=$(wget --spider "$url" 2>&1)
|
||||||
if [[ $StatusString = *"image/png"* ]] || [[ $StatusString = *"image/jpeg"* ]] || [[ $StatusString = *"image/jpg"* ]]; then
|
if [[ $StatusString == *"image/png"* ]] || [[ $StatusString == *"image/jpeg"* ]] || [[ $StatusString == *"image/jpg"* ]]; then
|
||||||
wget -q --show-progress "$url" -O "$urlSave" &> /dev/null
|
wget -q --show-progress "$url" -O "$urlSave" &> /dev/null
|
||||||
echo -e "${GREEN}Found it!${NONE}"|
|
echo -e "${GREEN}Found it!${NONE}"|
|
||||||
zenity --progress \
|
zenity --progress \
|
||||||
|
@ -399,7 +399,7 @@ romParser_SS_start(){
|
||||||
|
|
||||||
for systemPath in $romsPath/*;
|
for systemPath in $romsPath/*;
|
||||||
do
|
do
|
||||||
if [[ "$systemPath" = *tx* ]]; then
|
if [[ "$systemPath" == *tx* ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
90
uninstall.sh
90
uninstall.sh
|
@ -52,7 +52,7 @@ fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
if [ "$doUninstall" = true ]; then
|
if [ "$doUninstall" == true ]; then
|
||||||
|
|
||||||
text="`printf "If you would like to delete all your ROM shortcuts in Steam, click the Launch Steam ROM Manager button below.\n\nOnce Steam ROM Manager is launched, go to Settings and select <b>Remove All added app entries</b>\n\n Exit Steam ROM Manager and click Continue to proceed with uninstalling EmuDeck."`"
|
text="`printf "If you would like to delete all your ROM shortcuts in Steam, click the Launch Steam ROM Manager button below.\n\nOnce Steam ROM Manager is launched, go to Settings and select <b>Remove All added app entries</b>\n\n Exit Steam ROM Manager and click Continue to proceed with uninstalling EmuDeck."`"
|
||||||
|
|
||||||
|
@ -111,70 +111,70 @@ if [ "$doUninstall" = true ]; then
|
||||||
ans=$?
|
ans=$?
|
||||||
if [ $ans -eq 0 ]; then
|
if [ $ans -eq 0 ]; then
|
||||||
|
|
||||||
if [[ "$emusToUninstall" = *"ares"* ]]; then
|
if [[ "$emusToUninstall" == *"ares"* ]]; then
|
||||||
doUninstallares=false
|
doUninstallares=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"Cemu"* ]]; then
|
if [[ "$emusToUninstall" == *"Cemu"* ]]; then
|
||||||
doUninstallCemu=false
|
doUninstallCemu=false
|
||||||
fi
|
fi
|
||||||
if [[ "${emusToUninstall}" = *"Cemu Native"* ]]; then
|
if [[ "${emusToUninstall}" == *"Cemu Native"* ]]; then
|
||||||
doUninstallCemuNative="false"
|
doUninstallCemuNative="false"
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"Citra"* ]]; then
|
if [[ "$emusToUninstall" == *"Citra"* ]]; then
|
||||||
doUninstallCitra=false
|
doUninstallCitra=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"Dolphin"* ]]; then
|
if [[ "$emusToUninstall" == *"Dolphin"* ]]; then
|
||||||
doUninstallDolphin=false
|
doUninstallDolphin=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"Duckstation"* ]]; then
|
if [[ "$emusToUninstall" == *"Duckstation"* ]]; then
|
||||||
doUninstallDuck=false
|
doUninstallDuck=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"Flycast"* ]]; then
|
if [[ "$emusToUninstall" == *"Flycast"* ]]; then
|
||||||
doUninstallFlycast=false
|
doUninstallFlycast=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"Mame"* ]]; then
|
if [[ "$emusToUninstall" == *"Mame"* ]]; then
|
||||||
doUninstallMame=false
|
doUninstallMame=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"melonDS"* ]]; then
|
if [[ "$emusToUninstall" == *"melonDS"* ]]; then
|
||||||
doUninstallmelonDS=false
|
doUninstallmelonDS=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"mGBA"* ]]; then
|
if [[ "$emusToUninstall" == *"mGBA"* ]]; then
|
||||||
doUninstallMGBA=false
|
doUninstallMGBA=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"PrimeHack"* ]]; then
|
if [[ "$emusToUninstall" == *"PrimeHack"* ]]; then
|
||||||
doUninstallPrimeHacks=false
|
doUninstallPrimeHacks=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"PCSX2"* ]]; then
|
if [[ "$emusToUninstall" == *"PCSX2"* ]]; then
|
||||||
doUninstallPCSX2=false
|
doUninstallPCSX2=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"PPSSPP"* ]]; then
|
if [[ "$emusToUninstall" == *"PPSSPP"* ]]; then
|
||||||
doUninstallPPSSPP=false
|
doUninstallPPSSPP=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"RetroArch"* ]]; then
|
if [[ "$emusToUninstall" == *"RetroArch"* ]]; then
|
||||||
doUninstallRA=false
|
doUninstallRA=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"RPCS3"* ]]; then
|
if [[ "$emusToUninstall" == *"RPCS3"* ]]; then
|
||||||
doUninstallRPCS3=false
|
doUninstallRPCS3=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"RMG"* ]]; then
|
if [[ "$emusToUninstall" == *"RMG"* ]]; then
|
||||||
doUninstallRMG=false
|
doUninstallRMG=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"Ryujinx"* ]]; then
|
if [[ "$emusToUninstall" == *"Ryujinx"* ]]; then
|
||||||
doUninstallRyujinx=false
|
doUninstallRyujinx=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"ScummVM"* ]]; then
|
if [[ "$emusToUninstall" == *"ScummVM"* ]]; then
|
||||||
doUninstallScummVM=false
|
doUninstallScummVM=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"Vita3K"* ]]; then
|
if [[ "$emusToUninstall" == *"Vita3K"* ]]; then
|
||||||
doUninstallVita3K=false
|
doUninstallVita3K=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"Yuzu"* ]]; then
|
if [[ "$emusToUninstall" == *"Yuzu"* ]]; then
|
||||||
doUninstallYuzu=false
|
doUninstallYuzu=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"Xemu"* ]]; then
|
if [[ "$emusToUninstall" == *"Xemu"* ]]; then
|
||||||
doUninstallXemu=false
|
doUninstallXemu=false
|
||||||
fi
|
fi
|
||||||
if [[ "$emusToUninstall" = *"Xenia"* ]]; then
|
if [[ "$emusToUninstall" == *"Xenia"* ]]; then
|
||||||
doUninstallXenia=false
|
doUninstallXenia=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -189,73 +189,73 @@ if [ "$doUninstall" = true ]; then
|
||||||
echo "10"
|
echo "10"
|
||||||
echo "# Removing selected Emulators" ;
|
echo "# Removing selected Emulators" ;
|
||||||
|
|
||||||
if [[ "$doUninstallares" = true ]]; then
|
if [[ "$doUninstallares" == true ]]; then
|
||||||
flatpak uninstall dev.ares.ares -y
|
flatpak uninstall dev.ares.ares -y
|
||||||
rm -rf $HOME/.var/app/dev.ares.ares &>> /dev/null
|
rm -rf $HOME/.var/app/dev.ares.ares &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallCemu" = true ]]; then
|
if [[ "$doUninstallCemu" == true ]]; then
|
||||||
find ${romsPath}/wiiu -mindepth 1 -name roms -prune -o -exec rm -rf '{}' \;
|
find ${romsPath}/wiiu -mindepth 1 -name roms -prune -o -exec rm -rf '{}' \;
|
||||||
rm -f "$HOME/.local/share/applications/Cemu (Proton).desktop" &>> /dev/null
|
rm -f "$HOME/.local/share/applications/Cemu (Proton).desktop" &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "${doUninstallCemuNative}" = "true" ]]; then
|
if [[ "${doUninstallCemuNative}" == "true" ]]; then
|
||||||
rm -rf $HOME/Applications/Cemu*.AppImage &>> /dev/null
|
rm -rf $HOME/Applications/Cemu*.AppImage &>> /dev/null
|
||||||
rm -rf $HOME/.config/Cemu &>> /dev/null
|
rm -rf $HOME/.config/Cemu &>> /dev/null
|
||||||
rm -rf $HOME/.local/share/Cemu &>> /dev/null
|
rm -rf $HOME/.local/share/Cemu &>> /dev/null
|
||||||
rm -rf $HOME/.cache/Cemu &>> /dev/null
|
rm -rf $HOME/.cache/Cemu &>> /dev/null
|
||||||
rm -rf $HOME/.local/share/applications/Cemu.desktop &>> /dev/null
|
rm -rf $HOME/.local/share/applications/Cemu.desktop &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallCitra" = true ]]; then
|
if [[ "$doUninstallCitra" == true ]]; then
|
||||||
flatpak uninstall org.citra_emu.citra -y
|
flatpak uninstall org.citra_emu.citra -y
|
||||||
rm -rf $HOME/.var/app/org.citra_emu.citra &>> /dev/null
|
rm -rf $HOME/.var/app/org.citra_emu.citra &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallDolphin" = true ]]; then
|
if [[ "$doUninstallDolphin" == true ]]; then
|
||||||
flatpak uninstall org.DolphinEmu.dolphin-emu -y
|
flatpak uninstall org.DolphinEmu.dolphin-emu -y
|
||||||
rm -rf $HOME/.var/app/org.DolphinEmu.dolphin-emu &>> /dev/null
|
rm -rf $HOME/.var/app/org.DolphinEmu.dolphin-emu &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallDuck" = true ]]; then
|
if [[ "$doUninstallDuck" == true ]]; then
|
||||||
flatpak uninstall org.duckstation.DuckStation -y
|
flatpak uninstall org.duckstation.DuckStation -y
|
||||||
rm -rf $HOME/.var/app/org.duckstation.DuckStation &>> /dev/null
|
rm -rf $HOME/.var/app/org.duckstation.DuckStation &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallFlycast" = true ]]; then
|
if [[ "$doUninstallFlycast" == true ]]; then
|
||||||
flatpak uninstall org.flycast.Flycast -y
|
flatpak uninstall org.flycast.Flycast -y
|
||||||
rm -rf $HOME/.var/app/org.flycast.Flycast &>> /dev/null
|
rm -rf $HOME/.var/app/org.flycast.Flycast &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallMame" = true ]]; then
|
if [[ "$doUninstallMame" == true ]]; then
|
||||||
flatpak uninstall org.mamedev.MAME -y
|
flatpak uninstall org.mamedev.MAME -y
|
||||||
rm -rf $HOME/.var/app/org.mamedev.MAME &>> /dev/null
|
rm -rf $HOME/.var/app/org.mamedev.MAME &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallmelonDS" = true ]]; then
|
if [[ "$doUninstallmelonDS" == true ]]; then
|
||||||
flatpak uninstall net.kuribo64.melonDS -y
|
flatpak uninstall net.kuribo64.melonDS -y
|
||||||
rm -rf $HOME/.var/app/net.kuribo64.melonDS &>> /dev/null
|
rm -rf $HOME/.var/app/net.kuribo64.melonDS &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallMGBA" = true ]]; then
|
if [[ "$doUninstallMGBA" == true ]]; then
|
||||||
rm -rf $HOME/Applications/mGBA.AppImage &>> /dev/null
|
rm -rf $HOME/Applications/mGBA.AppImage &>> /dev/null
|
||||||
rm -rf $HOME/.config/mgba &>> /dev/null
|
rm -rf $HOME/.config/mgba &>> /dev/null
|
||||||
rm -rf $HOME/.local/share/applications/mGBA.desktop &>> /dev/null
|
rm -rf $HOME/.local/share/applications/mGBA.desktop &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallPCSX2" = true ]]; then
|
if [[ "$doUninstallPCSX2" == true ]]; then
|
||||||
rm -rf $HOME/Applications/pcsx2-Qt.AppImage &>> /dev/null
|
rm -rf $HOME/Applications/pcsx2-Qt.AppImage &>> /dev/null
|
||||||
rm -rf $HOME/.config/PCSX2 &>> /dev/null
|
rm -rf $HOME/.config/PCSX2 &>> /dev/null
|
||||||
rm -rf $HOME/.local/share/applications/pcsx2-Qt.desktop &>> /dev/null
|
rm -rf $HOME/.local/share/applications/pcsx2-Qt.desktop &>> /dev/null
|
||||||
rm -rf $HOME/.local/share/applications/PCSX2-Qt.desktop &>> /dev/null
|
rm -rf $HOME/.local/share/applications/PCSX2-Qt.desktop &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallPPSSPP" = true ]]; then
|
if [[ "$doUninstallPPSSPP" == true ]]; then
|
||||||
flatpak uninstall org.ppsspp.PPSSPP -y
|
flatpak uninstall org.ppsspp.PPSSPP -y
|
||||||
rm -rf $HOME/.var/app/org.ppsspp.PPSSPP &>> /dev/null
|
rm -rf $HOME/.var/app/org.ppsspp.PPSSPP &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallPrimeHacks" = true ]]; then
|
if [[ "$doUninstallPrimeHacks" == true ]]; then
|
||||||
flatpak uninstall io.github.shiiion.primehack -y
|
flatpak uninstall io.github.shiiion.primehack -y
|
||||||
rm -rf $HOME/.var/app/io.github.shiiion.primehack &>> /dev/null
|
rm -rf $HOME/.var/app/io.github.shiiion.primehack &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallRA" = true ]]; then
|
if [[ "$doUninstallRA" == true ]]; then
|
||||||
flatpak uninstall org.libretro.RetroArch -y
|
flatpak uninstall org.libretro.RetroArch -y
|
||||||
rm -rf $HOME/.var/app/org.libretro.RetroArch &>> /dev/null
|
rm -rf $HOME/.var/app/org.libretro.RetroArch &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallRMG" = true ]]; then
|
if [[ "$doUninstallRMG" == true ]]; then
|
||||||
flatpak uninstall com.github.Rosalie241.RMG -y
|
flatpak uninstall com.github.Rosalie241.RMG -y
|
||||||
rm -rf $HOME/.var/app/com.github.Rosalie241.RMG &>> /dev/null
|
rm -rf $HOME/.var/app/com.github.Rosalie241.RMG &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallRPCS3" = true ]]; then
|
if [[ "$doUninstallRPCS3" == true ]]; then
|
||||||
# Flatpak
|
# Flatpak
|
||||||
flatpak uninstall net.rpcs3.RPCS3 -y
|
flatpak uninstall net.rpcs3.RPCS3 -y
|
||||||
rm -rf $HOME/.var/app/net.rpcs3.RPCS3 &>> /dev/null
|
rm -rf $HOME/.var/app/net.rpcs3.RPCS3 &>> /dev/null
|
||||||
|
@ -264,29 +264,29 @@ if [ "$doUninstall" = true ]; then
|
||||||
rm -rf "$HOME/.cache/rpcs3" &>> /dev/null
|
rm -rf "$HOME/.cache/rpcs3" &>> /dev/null
|
||||||
rm -rf $HOME/.local/share/applications/RPCS3.desktop &>> /dev/null
|
rm -rf $HOME/.local/share/applications/RPCS3.desktop &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallRyujinx" = true ]]; then
|
if [[ "$doUninstallRyujinx" == true ]]; then
|
||||||
rm -rf $HOME/.config/Ryujinx &>> /dev/null
|
rm -rf $HOME/.config/Ryujinx &>> /dev/null
|
||||||
rm -rf $HOME/Applications/publish &>> /dev/null
|
rm -rf $HOME/Applications/publish &>> /dev/null
|
||||||
rm -rf $HOME/.local/share/applications/Ryujinx.desktop &>> /dev/null
|
rm -rf $HOME/.local/share/applications/Ryujinx.desktop &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallScummVM" = true ]]; then
|
if [[ "$doUninstallScummVM" == true ]]; then
|
||||||
flatpak uninstall org.scummvm.ScummVM -y
|
flatpak uninstall org.scummvm.ScummVM -y
|
||||||
rm -rf $HOME/.var/app/org.scummvm.ScummVM &>> /dev/null
|
rm -rf $HOME/.var/app/org.scummvm.ScummVM &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallVita3K" = true ]]; then
|
if [[ "$doUninstallVita3K" == true ]]; then
|
||||||
rm -rf $HOME/Applications/Vita3K &>> /dev/null
|
rm -rf $HOME/Applications/Vita3K &>> /dev/null
|
||||||
rm -rf $HOME/.local/share/Vita3K &>> /dev/null
|
rm -rf $HOME/.local/share/Vita3K &>> /dev/null
|
||||||
rm -rf $HOME/.local/share/applications/Vita3K.desktop &>> /dev/null
|
rm -rf $HOME/.local/share/applications/Vita3K.desktop &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallXemu" = true ]]; then
|
if [[ "$doUninstallXemu" == true ]]; then
|
||||||
flatpak uninstall app.xemu.xemu -y
|
flatpak uninstall app.xemu.xemu -y
|
||||||
rm -rf $HOME/.var/app/app.xemu.xemu &>> /dev/null
|
rm -rf $HOME/.var/app/app.xemu.xemu &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallXenia" = true ]]; then
|
if [[ "$doUninstallXenia" == true ]]; then
|
||||||
find ${romsPath}/xbox360 -mindepth 1 -name roms -prune -o -exec rm -rf '{}' \; &>> /dev/null
|
find ${romsPath}/xbox360 -mindepth 1 -name roms -prune -o -exec rm -rf '{}' \; &>> /dev/null
|
||||||
rm -rf $HOME/.local/share/applications/xenia.desktop &>> /dev/null
|
rm -rf $HOME/.local/share/applications/xenia.desktop &>> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ "$doUninstallYuzu" = true ]]; then
|
if [[ "$doUninstallYuzu" == true ]]; then
|
||||||
#flatpak uninstall org.yuzu_emu.yuzu --system -y
|
#flatpak uninstall org.yuzu_emu.yuzu --system -y
|
||||||
#rm -rf $HOME/.var/app/org.yuzu_emu.yuzu &>> /dev/null
|
#rm -rf $HOME/.var/app/org.yuzu_emu.yuzu &>> /dev/null
|
||||||
rm -rf $HOME/Applications/yuzu.AppImage &>> /dev/null
|
rm -rf $HOME/Applications/yuzu.AppImage &>> /dev/null
|
||||||
|
|
|
@ -12,7 +12,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 43 ]; then
|
if [ $question == 43 ]; then
|
||||||
setSetting arClassic3D 43
|
setSetting arClassic3D 43
|
||||||
else
|
else
|
||||||
setSetting arClassic3D 169
|
setSetting arClassic3D 169
|
||||||
|
|
|
@ -12,7 +12,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 43 ]; then
|
if [ $question == 43 ]; then
|
||||||
setSetting arDolphin 43
|
setSetting arDolphin 43
|
||||||
else
|
else
|
||||||
setSetting arDolphin 169
|
setSetting arDolphin 169
|
||||||
|
|
|
@ -12,7 +12,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 43 ]; then
|
if [ $question == 43 ]; then
|
||||||
setSetting arSega 43
|
setSetting arSega 43
|
||||||
else
|
else
|
||||||
setSetting arSega 32
|
setSetting arSega 32
|
||||||
|
|
|
@ -12,7 +12,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 'EASY' ]; then
|
if [ $question == 'EASY' ]; then
|
||||||
setSetting expert false
|
setSetting expert false
|
||||||
else
|
else
|
||||||
setSetting expert true
|
setSetting expert true
|
||||||
|
|
|
@ -12,7 +12,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 'EASY' ]; then
|
if [ $question == 'EASY' ]; then
|
||||||
setSetting expert false
|
setSetting expert false
|
||||||
else
|
else
|
||||||
setSetting expert true
|
setSetting expert true
|
||||||
|
|
|
@ -12,7 +12,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 'EASY' ]; then
|
if [ $question == 'EASY' ]; then
|
||||||
setSetting expert false
|
setSetting expert false
|
||||||
else
|
else
|
||||||
setSetting expert true
|
setSetting expert true
|
||||||
|
|
|
@ -12,7 +12,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 'EASY' ]; then
|
if [ $question == 'EASY' ]; then
|
||||||
setSetting expert false
|
setSetting expert false
|
||||||
else
|
else
|
||||||
setSetting expert true
|
setSetting expert true
|
||||||
|
|
|
@ -75,25 +75,25 @@ mapfile -t settingsEmus <<< $emulators
|
||||||
|
|
||||||
for settingsEmu in "${settingsEmus[@]}";
|
for settingsEmu in "${settingsEmus[@]}";
|
||||||
do
|
do
|
||||||
if [[ $settingsEmu = *"RA"* ]]; then
|
if [[ $settingsEmu == *"RA"* ]]; then
|
||||||
setSetting doInstallRA true
|
setSetting doInstallRA true
|
||||||
fi
|
fi
|
||||||
if [[ $settingsEmu = *"DOLPHIN"* ]]; then
|
if [[ $settingsEmu == *"DOLPHIN"* ]]; then
|
||||||
setSetting doInstallDolphin true
|
setSetting doInstallDolphin true
|
||||||
fi
|
fi
|
||||||
if [[ $settingsEmu = *"DUCK"* ]]; then
|
if [[ $settingsEmu == *"DUCK"* ]]; then
|
||||||
setSetting doInstallDuck true
|
setSetting doInstallDuck true
|
||||||
fi
|
fi
|
||||||
if [[ $settingsEmu = *"AETHERSX2"* ]]; then
|
if [[ $settingsEmu == *"AETHERSX2"* ]]; then
|
||||||
setSetting doInstallPCSX2 true
|
setSetting doInstallPCSX2 true
|
||||||
fi
|
fi
|
||||||
if [[ $settingsEmu = *"CITRA"* ]]; then
|
if [[ $settingsEmu == *"CITRA"* ]]; then
|
||||||
setSetting doInstallCitra true
|
setSetting doInstallCitra true
|
||||||
fi
|
fi
|
||||||
if [[ $settingsEmu = *"PPSSPP"* ]]; then
|
if [[ $settingsEmu == *"PPSSPP"* ]]; then
|
||||||
setSetting doInstallPPSSPP true
|
setSetting doInstallPPSSPP true
|
||||||
fi
|
fi
|
||||||
if [[ $settingsEmu = *"SKYLINE"* ]]; then
|
if [[ $settingsEmu == *"SKYLINE"* ]]; then
|
||||||
setSetting doInstallSkyline true
|
setSetting doInstallSkyline true
|
||||||
fi
|
fi
|
||||||
done
|
done
|
|
@ -20,7 +20,7 @@ echo ""
|
||||||
|
|
||||||
echo -e "${BOLD}- How to add games${NONE}"
|
echo -e "${BOLD}- How to add games${NONE}"
|
||||||
|
|
||||||
if [ $romPath = 'SDCARD' ]; then
|
if [ $romPath == 'SDCARD' ]; then
|
||||||
echo -e "You need to manually move your roms folder before starting"
|
echo -e "You need to manually move your roms folder before starting"
|
||||||
echo -e "Open any File manager app and move the ${GREEN}/Emulation${NONE} folder to your SD Card root"
|
echo -e "Open any File manager app and move the ${GREEN}/Emulation${NONE} folder to your SD Card root"
|
||||||
echo -e "Now, connect your device to a computer and copy your roms to the proper folders ( each system has its own subfolder )"
|
echo -e "Now, connect your device to a computer and copy your roms to the proper folders ( each system has its own subfolder )"
|
||||||
|
@ -32,14 +32,14 @@ fi
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${BOLD}- How to launch your games${NONE}"
|
echo -e "${BOLD}- How to launch your games${NONE}"
|
||||||
#Easy
|
#Easy
|
||||||
if [ $expert = false ]; then
|
if [ $expert == false ]; then
|
||||||
echo -e "We've installed for you Daijisho so you can use it as a frontend for all your systems"
|
echo -e "We've installed for you Daijisho so you can use it as a frontend for all your systems"
|
||||||
echo -e "You need to Open Daijisho From your apps and manually configure it with your custom paths"
|
echo -e "You need to Open Daijisho From your apps and manually configure it with your custom paths"
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "First, open Daijisho and select the Systems you want to use by clicking on the Download Platforms button"
|
echo -e "First, open Daijisho and select the Systems you want to use by clicking on the Download Platforms button"
|
||||||
echo -e "Now click on Paths, Add more"
|
echo -e "Now click on Paths, Add more"
|
||||||
echo -e "Select the system folder ( ie: Super Nintendo )"
|
echo -e "Select the system folder ( ie: Super Nintendo )"
|
||||||
if [ $romPath = 'SDCARD' ]; then
|
if [ $romPath == 'SDCARD' ]; then
|
||||||
if [ $android -gt 10 ]; then
|
if [ $android -gt 10 ]; then
|
||||||
echo -e "SD Card: ${GREEN}Emulation/roms/snes${NONE}"
|
echo -e "SD Card: ${GREEN}Emulation/roms/snes${NONE}"
|
||||||
else
|
else
|
||||||
|
@ -67,11 +67,11 @@ if [ $android -lt 11 ] && [ $romPath != 'INTERNAL' ]; then
|
||||||
echo -e "Be aware that if you delete the Termux app Android will ${RED}DELETE${NONE} the Termux folder on your SD Card including your roms"
|
echo -e "Be aware that if you delete the Termux app Android will ${RED}DELETE${NONE} the Termux folder on your SD Card including your roms"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $doInstallPegasus = true ]; then
|
if [ $doInstallPegasus == true ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${RED}Pegasus Warning${NONE}"
|
echo -e "${RED}Pegasus Warning${NONE}"
|
||||||
if [ $android -gt 10 ]; then
|
if [ $android -gt 10 ]; then
|
||||||
if [ $romPath = 'SDCARD' ]; then
|
if [ $romPath == 'SDCARD' ]; then
|
||||||
echo -e "The Pegasus Artwork Scrapper only works on if you keep your roms on your Internal Storage"
|
echo -e "The Pegasus Artwork Scrapper only works on if you keep your roms on your Internal Storage"
|
||||||
echo -e "So you'll also need to connect your device on your computer to get your Artwork"
|
echo -e "So you'll also need to connect your device on your computer to get your Artwork"
|
||||||
echo -e "We recommend using www.skraper.net"
|
echo -e "We recommend using www.skraper.net"
|
||||||
|
|
|
@ -12,7 +12,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 'EASY' ]; then
|
if [ $question == 'EASY' ]; then
|
||||||
setSetting expert false
|
setSetting expert false
|
||||||
else
|
else
|
||||||
setSetting expert true
|
setSetting expert true
|
||||||
|
|
|
@ -24,22 +24,22 @@ if [ $android -gt 10 ]; then
|
||||||
|
|
||||||
for settingsFrontend in "${settingsFrontends[@]}";
|
for settingsFrontend in "${settingsFrontends[@]}";
|
||||||
do
|
do
|
||||||
if [[ $settingsFrontend = *"PEGASUS"* ]]; then
|
if [[ $settingsFrontend == *"PEGASUS"* ]]; then
|
||||||
setSetting doInstallPegasus true
|
setSetting doInstallPegasus true
|
||||||
fi
|
fi
|
||||||
if [[ $settingsFrontend = *"DAIJISHO"* ]]; then
|
if [[ $settingsFrontend == *"DAIJISHO"* ]]; then
|
||||||
setSetting doInstallDaijisho true
|
setSetting doInstallDaijisho true
|
||||||
fi
|
fi
|
||||||
if [[ $settingsFrontend = *"DIG"* ]]; then
|
if [[ $settingsFrontend == *"DIG"* ]]; then
|
||||||
setSetting doInstallDig true
|
setSetting doInstallDig true
|
||||||
fi
|
fi
|
||||||
if [[ $settingsFrontend = *"LAUNCHBOX"* ]]; then
|
if [[ $settingsFrontend == *"LAUNCHBOX"* ]]; then
|
||||||
setSetting doInstallLaunchbox true
|
setSetting doInstallLaunchbox true
|
||||||
fi
|
fi
|
||||||
if [[ $settingsFrontend = *"RESET"* ]]; then
|
if [[ $settingsFrontend == *"RESET"* ]]; then
|
||||||
setSetting doInstallReset true
|
setSetting doInstallReset true
|
||||||
fi
|
fi
|
||||||
if [[ $settingsFrontend = *"ARC"* ]]; then
|
if [[ $settingsFrontend == *"ARC"* ]]; then
|
||||||
setSetting doInstallArc true
|
setSetting doInstallArc true
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -12,19 +12,19 @@
|
||||||
#
|
#
|
||||||
# for theme in ${themes[@]};
|
# for theme in ${themes[@]};
|
||||||
# do
|
# do
|
||||||
# if [[ $theme = *"EPIC"* ]]; then
|
# if [[ $theme == *"EPIC"* ]]; then
|
||||||
# setSetting doInstallThemeEpic true
|
# setSetting doInstallThemeEpic true
|
||||||
# fi
|
# fi
|
||||||
# if [[ $theme = *"SWITCH"* ]]; then
|
# if [[ $theme == *"SWITCH"* ]]; then
|
||||||
# setSetting doInstallThemeSwitch true
|
# setSetting doInstallThemeSwitch true
|
||||||
# fi
|
# fi
|
||||||
# if [[ $theme = *"MEGA"* ]]; then
|
# if [[ $theme == *"MEGA"* ]]; then
|
||||||
# setSetting doInstallThemeMega true
|
# setSetting doInstallThemeMega true
|
||||||
# fi
|
# fi
|
||||||
# if [[ $theme = *"GAMEOS"* ]]; then
|
# if [[ $theme == *"GAMEOS"* ]]; then
|
||||||
# setSetting doInstallThemeGameOS true
|
# setSetting doInstallThemeGameOS true
|
||||||
# fi
|
# fi
|
||||||
# if [[ $theme = *"NEORETRO"* ]]; then
|
# if [[ $theme == *"NEORETRO"* ]]; then
|
||||||
# setSetting doInstallThemeNeoRetro true
|
# setSetting doInstallThemeNeoRetro true
|
||||||
# fi
|
# fi
|
||||||
# done
|
# done
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ $deviceAR = 169 ] || [ $deviceAR = 53 ]; then
|
if [ $deviceAR == 169 ] || [ $deviceAR == 53 ]; then
|
||||||
while true; do
|
while true; do
|
||||||
question=$(whiptail --title "Game Bezels" \
|
question=$(whiptail --title "Game Bezels" \
|
||||||
--radiolist "You can use our preconfigured bezels to hide the vertical black vars on 8bit and 16bits games" 10 80 4 \
|
--radiolist "You can use our preconfigured bezels to hide the vertical black vars on 8bit and 16bits games" 10 80 4 \
|
||||||
|
@ -14,7 +14,7 @@ if [ $deviceAR = 169 ] || [ $deviceAR = 53 ]; then
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 'YES' ]; then
|
if [ $question == 'YES' ]; then
|
||||||
setSetting RABezels true
|
setSetting RABezels true
|
||||||
else
|
else
|
||||||
setSetting RABezels false
|
setSetting RABezels false
|
||||||
|
|
|
@ -12,7 +12,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 'EASY' ]; then
|
if [ $question == 'EASY' ]; then
|
||||||
setSetting expert false
|
setSetting expert false
|
||||||
else
|
else
|
||||||
setSetting expert true
|
setSetting expert true
|
||||||
|
|
|
@ -12,7 +12,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 'EASY' ]; then
|
if [ $question == 'EASY' ]; then
|
||||||
setSetting expert false
|
setSetting expert false
|
||||||
else
|
else
|
||||||
setSetting expert true
|
setSetting expert true
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
if [ $hasSDCARD = true ]; then
|
if [ $hasSDCARD == true ]; then
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
romPathSelection=$(whiptail --title "Choose your Storage" \
|
romPathSelection=$(whiptail --title "Choose your Storage" \
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
setSetting romPath $romPathSelection
|
setSetting romPath $romPathSelection
|
||||||
|
|
||||||
|
|
||||||
if [ $romPath = 'INTERNAL' ]; then
|
if [ $romPath == 'INTERNAL' ]; then
|
||||||
path="$HOME/storage/shared"
|
path="$HOME/storage/shared"
|
||||||
else
|
else
|
||||||
SDPath=$(readlink ~/storage/external-1)
|
SDPath=$(readlink ~/storage/external-1)
|
||||||
|
|
|
@ -12,7 +12,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 'EASY' ]; then
|
if [ $question == 'EASY' ]; then
|
||||||
setSetting expert false
|
setSetting expert false
|
||||||
else
|
else
|
||||||
setSetting expert true
|
setSetting expert true
|
||||||
|
|
|
@ -12,7 +12,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 'ON' ]; then
|
if [ $question == 'ON' ]; then
|
||||||
setSetting RAHandClassic2D true
|
setSetting RAHandClassic2D true
|
||||||
else
|
else
|
||||||
setSetting RAHandClassic2D false
|
setSetting RAHandClassic2D false
|
||||||
|
|
|
@ -12,7 +12,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 'ON' ]; then
|
if [ $question == 'ON' ]; then
|
||||||
setSetting RAHandHeldShader true
|
setSetting RAHandHeldShader true
|
||||||
else
|
else
|
||||||
setSetting RAHandHeldShader false
|
setSetting RAHandHeldShader false
|
||||||
|
|
|
@ -12,7 +12,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 'EASY' ]; then
|
if [ $question == 'EASY' ]; then
|
||||||
setSetting expert false
|
setSetting expert false
|
||||||
else
|
else
|
||||||
setSetting expert true
|
setSetting expert true
|
||||||
|
|
|
@ -12,7 +12,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 'EASY' ]; then
|
if [ $question == 'EASY' ]; then
|
||||||
setSetting expert false
|
setSetting expert false
|
||||||
else
|
else
|
||||||
setSetting expert true
|
setSetting expert true
|
||||||
|
|
|
@ -12,7 +12,7 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ $question = 'EASY' ]; then
|
if [ $question == 'EASY' ]; then
|
||||||
setSetting expert false
|
setSetting expert false
|
||||||
else
|
else
|
||||||
setSetting expert true
|
setSetting expert true
|
||||||
|
|
Loading…
Reference in a new issue