mirror of
https://github.com/dragoonDorise/EmuDeck.git
synced 2025-05-05 16:02:48 +00:00
Fix double bios and no roms export. Change to correct downloaded_media folder. Fix typo. (#1401)
* Update export.sh BIOS files export was asked and exported twice, but no roms at all. Fixed second bios export entry to roms. Also downloaded_media was exported to EmuDeck/roms instead of EmuDeck/tools/, fixed that. * shadps4 location * fix bigpemu * fix paths --------- Co-authored-by: Dragoon Dorise <rodrigosedano@me.com>
This commit is contained in:
parent
2bf8b58c61
commit
ff4a359123
24
export.sh
24
export.sh
@ -24,7 +24,7 @@ function checkSpace(){
|
|||||||
local difference=$(($freeSpace - $neededSpace))
|
local difference=$(($freeSpace - $neededSpace))
|
||||||
|
|
||||||
if [[ $difference -lt 0 ]]; then
|
if [[ $difference -lt 0 ]]; then
|
||||||
text="$(printf "Make sure you have enought space in $destination. You need to have at least $neededSpaceInHuman available")"
|
text="$(printf "Make sure you have enough space in $destination. You need to have at least $neededSpaceInHuman available")"
|
||||||
zenity --question \
|
zenity --question \
|
||||||
--title="EmuDeck Export tool" \
|
--title="EmuDeck Export tool" \
|
||||||
--width=450 \
|
--width=450 \
|
||||||
@ -130,28 +130,28 @@ if [ "$size" -gt 4096 ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d "$emulationPath/bios" ]; then
|
if [ -d "$emulationPath/roms" ]; then
|
||||||
text="$(printf "Do you want to export all your bios?")"
|
text="$(printf "Do you want to export all your roms?")"
|
||||||
zenity --question \
|
zenity --question \
|
||||||
--title="EmuDeck Export tool" \
|
--title="EmuDeck Export tool" \
|
||||||
--width=450 \
|
--width=450 \
|
||||||
--cancel-label="No" \
|
--cancel-label="No" \
|
||||||
--ok-label="Export my bios" \
|
--ok-label="Export my roms" \
|
||||||
--text="${text}" 2>/dev/null
|
--text="${text}" 2>/dev/null
|
||||||
ans=$?
|
ans=$?
|
||||||
if [ $ans -eq 0 ]; then
|
if [ $ans -eq 0 ]; then
|
||||||
|
|
||||||
checkSpace "$emulationPath/bios/" "$destination"
|
checkSpace "$emulationPath/roms/" "$destination"
|
||||||
|
|
||||||
mkdir -p "$destination/EmuDeck/bios"
|
mkdir -p "$destination/EmuDeck/roms"
|
||||||
|
|
||||||
for entry in "$emulationPath/bios/"*
|
for entry in "$emulationPath/roms/"*
|
||||||
do
|
do
|
||||||
rsync -ravL --ignore-existing --progress "$entry" "$destination/EmuDeck/bios/" | awk -f $emudeckBackend/rsync.awk | zenity --progress --text="Exporting $entry to $destination/EmuDeck/bios/" --title="Exporting $entry..." --width=400 --percentage=0 --auto-close
|
rsync -ravL --ignore-existing --progress "$entry" "$destination/EmuDeck/roms/" | awk -f $HOME/.config/EmuDeck/backend/rsync.awk | zenity --progress --text="Exporting $entry to $destination/EmuDeck/roms/" --title="Exporting $entry..." --width=400 --percentage=0 --auto-close
|
||||||
done
|
done
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "no bios"
|
echo "no roms"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -172,11 +172,11 @@ if [ "$size" -gt 4096 ]; then
|
|||||||
|
|
||||||
for entry in "$ESDEscrapData/"*
|
for entry in "$ESDEscrapData/"*
|
||||||
do
|
do
|
||||||
rsync -ravL --ignore-existing --progress "$entry" "$destination/EmuDeck/roms/" | awk -f $emudeckBackend/rsync.awk | zenity --progress --text="Exporting $entry to $destination/EmuDeck/tools/downloaded_media/" --title="Exporting $entry..." --width=400 --percentage=0 --auto-close
|
rsync -ravL --ignore-existing --progress "$entry" "$destination/EmuDeck/tools/downloaded_media/" | awk -f $HOME/.config/EmuDeck/backend/rsync.awk | zenity --progress --text="Exporting $entry to $destination/EmuDeck/tools/downloaded_media/" --title="Exporting $entry..." --width=400 --percentage=0 --auto-close
|
||||||
done
|
done
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "no roms"
|
echo "no media"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -194,4 +194,4 @@ else
|
|||||||
--ok-label="Bye" \
|
--ok-label="Bye" \
|
||||||
--text="${text}"
|
--text="${text}"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
#variables
|
#variables
|
||||||
BigPEmu_emuName="BigPEmu"
|
BigPEmu_emuName="BigPEmu"
|
||||||
BigPEmu_emuType="$emuDeckEmuTypeWindows"
|
BigPEmu_emuType="$emuDeckEmuTypeWindows"
|
||||||
|
|
||||||
BigPEmu_emuPath="$emusFolder/BigPEmu/bigpemu"
|
BigPEmu_emuPath="$emusFolder/BigPEmu/bigpemu"
|
||||||
BigPEmu_appData="$emusFolder/BigPEmu/UserData"
|
BigPEmu_appData="$emusFolder/BigPEmu/UserData"
|
||||||
BigPEmu_BigPEmuSettings="$emusFolder/BigPEmu/UserData/BigPEmuConfig.bigpcfg"
|
BigPEmu_BigPEmuSettings="$emusFolder/BigPEmu/UserData/BigPEmuConfig.bigpcfg"
|
||||||
@ -52,9 +51,7 @@ BigPEmu_install(){
|
|||||||
#ApplyInitialSettings
|
#ApplyInitialSettings
|
||||||
BigPEmu_init(){
|
BigPEmu_init(){
|
||||||
setMSG "Initializing $BigPEmu_emuName settings."
|
setMSG "Initializing $BigPEmu_emuName settings."
|
||||||
|
|
||||||
rsync -avhp "$emudeckBackend/configs/bigpemu/" "$BigPEmu_appData" --backup --suffix=.bak
|
rsync -avhp "$emudeckBackend/configs/bigpemu/" "$BigPEmu_appData" --backup --suffix=.bak
|
||||||
|
|
||||||
sed -E -i "s|/run/media/mmcblk0p1/Emulation|$emulationPath|g" "$BigPEmu_BigPEmuSettings"
|
sed -E -i "s|/run/media/mmcblk0p1/Emulation|$emulationPath|g" "$BigPEmu_BigPEmuSettings"
|
||||||
BigPEmu_setEmulationFolder
|
BigPEmu_setEmulationFolder
|
||||||
BigPEmu_setupSaves
|
BigPEmu_setupSaves
|
||||||
@ -71,9 +68,7 @@ BigPEmu_init(){
|
|||||||
#update
|
#update
|
||||||
BigPEmu_update(){
|
BigPEmu_update(){
|
||||||
setMSG "Updating $BigPEmu_emuName settings."
|
setMSG "Updating $BigPEmu_emuName settings."
|
||||||
|
|
||||||
rsync -avhp "$emudeckBackend/configs/bigpemu/" "$BigPEmu_appData" --ignore-existing
|
rsync -avhp "$emudeckBackend/configs/bigpemu/" "$BigPEmu_appData" --ignore-existing
|
||||||
|
|
||||||
sed -E -i "s|/run/media/mmcblk0p1/Emulation|$emulationPath|g" "$BigPEmu_BigPEmuSettings"
|
sed -E -i "s|/run/media/mmcblk0p1/Emulation|$emulationPath|g" "$BigPEmu_BigPEmuSettings"
|
||||||
BigPEmu_setEmulationFolder
|
BigPEmu_setEmulationFolder
|
||||||
BigPEmu_setupSaves
|
BigPEmu_setupSaves
|
||||||
|
Loading…
x
Reference in New Issue
Block a user