mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-03-06 14:27:48 +00:00
Merge pull request #274 from icenine451/cooker-0.6.3b-icenine451
Cooker 0.6.3b icenine451
This commit is contained in:
commit
811cfc1673
13
functions.sh
13
functions.sh
|
@ -705,6 +705,13 @@ dir_prep() {
|
||||||
|
|
||||||
echo -e "\n[DIR PREP]\nMoving $symlink in $real" #DEBUG
|
echo -e "\n[DIR PREP]\nMoving $symlink in $real" #DEBUG
|
||||||
|
|
||||||
|
# if the symlink dir is already a symlink, unlink it first, to prevent recursion
|
||||||
|
if [ -L "$symlink" ];
|
||||||
|
then
|
||||||
|
echo "$symlink is already a symlink, unlinking to prevent recursives" #DEBUG
|
||||||
|
unlink "$symlink"
|
||||||
|
fi
|
||||||
|
|
||||||
# if the dest dir exists we want to backup it
|
# if the dest dir exists we want to backup it
|
||||||
if [ -d "$symlink" ];
|
if [ -d "$symlink" ];
|
||||||
then
|
then
|
||||||
|
@ -715,6 +722,7 @@ dir_prep() {
|
||||||
# if the real dir is already a symlink, unlink it first
|
# if the real dir is already a symlink, unlink it first
|
||||||
if [ -L "$real" ];
|
if [ -L "$real" ];
|
||||||
then
|
then
|
||||||
|
echo "$real is already a symlink, unlinking to prevent recursives" #DEBUG
|
||||||
unlink "$real"
|
unlink "$real"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1278,15 +1286,12 @@ finit() {
|
||||||
|
|
||||||
# Recreating the folder
|
# Recreating the folder
|
||||||
rm -rfv /var/config/emulationstation/
|
rm -rfv /var/config/emulationstation/
|
||||||
rm -rfv /var/config/retrodeck/tools/
|
|
||||||
mkdir -pv /var/config/emulationstation/
|
mkdir -pv /var/config/emulationstation/
|
||||||
|
|
||||||
# Initializing ES-DE
|
# Initializing ES-DE
|
||||||
# TODO: after the next update of ES-DE this will not be needed - let's test it
|
# TODO: after the next update of ES-DE this will not be needed - let's test it
|
||||||
emulationstation --home /var/config/emulationstation --create-system-dirs
|
emulationstation --home /var/config/emulationstation --create-system-dirs
|
||||||
|
|
||||||
mkdir -pv /var/config/retrodeck/tools/
|
|
||||||
|
|
||||||
#zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --title "RetroDECK" --text="RetroDECK will now install the needed files.\nPlease wait up to one minute,\nanother message will notify when the process will be finished.\n\nPress OK to continue."
|
#zenity --icon-name=net.retrodeck.retrodeck --info --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --title "RetroDECK" --text="RetroDECK will now install the needed files.\nPlease wait up to one minute,\nanother message will notify when the process will be finished.\n\nPress OK to continue."
|
||||||
|
|
||||||
# Initializing ROMs folder - Original in retrodeck home (or SD Card)
|
# Initializing ROMs folder - Original in retrodeck home (or SD Card)
|
||||||
|
@ -1307,7 +1312,7 @@ finit() {
|
||||||
# PICO-8
|
# PICO-8
|
||||||
dir_prep "$bios_folder/pico-8" "$HOME/.lexaloffle/pico-8" # Store binary and config files together. The .lexaloffle directory is a hard-coded location for the PICO-8 config file, cannot be changed
|
dir_prep "$bios_folder/pico-8" "$HOME/.lexaloffle/pico-8" # Store binary and config files together. The .lexaloffle directory is a hard-coded location for the PICO-8 config file, cannot be changed
|
||||||
dir_prep "$roms_folder/pico8" "$bios_folder/pico-8/carts" # Symlink default game location to RD roms for cleanliness (this location is overridden anyway by the --root_path launch argument anyway)
|
dir_prep "$roms_folder/pico8" "$bios_folder/pico-8/carts" # Symlink default game location to RD roms for cleanliness (this location is overridden anyway by the --root_path launch argument anyway)
|
||||||
dir_prep "$bios_folder/pico-8/cdata" "$saves_folder/pico-8" # PICO-8 saves folder
|
dir_prep "$saves_folder/pico-8" "$bios_folder/pico-8/cdata" # PICO-8 saves folder
|
||||||
|
|
||||||
(
|
(
|
||||||
ra_init
|
ra_init
|
||||||
|
|
|
@ -211,11 +211,15 @@ post_update() {
|
||||||
rm -rf "$HOME/~/" # Remove old incorrect location from 0.6.2b
|
rm -rf "$HOME/~/" # Remove old incorrect location from 0.6.2b
|
||||||
rm -f "$HOME/.lexaloffle/pico-8" # Remove old symlink to prevent recursion
|
rm -f "$HOME/.lexaloffle/pico-8" # Remove old symlink to prevent recursion
|
||||||
dir_prep "$bios_folder/pico-8" "$HOME/.lexaloffle/pico-8" # Store binary and config files together. The .lexaloffle directory is a hard-coded location for the PICO-8 config file, cannot be changed
|
dir_prep "$bios_folder/pico-8" "$HOME/.lexaloffle/pico-8" # Store binary and config files together. The .lexaloffle directory is a hard-coded location for the PICO-8 config file, cannot be changed
|
||||||
|
dir_prep "$saves_folder/pico-8" "$bios_folder/pico-8/cdata" # PICO-8 saves folder structure was backwards, fixing for consistency.
|
||||||
|
|
||||||
cp -fv $emuconfigs/citra/qt-config.ini /var/config/citra-emu/qt-config.ini
|
cp -fv $emuconfigs/citra/qt-config.ini /var/config/citra-emu/qt-config.ini
|
||||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/citra-emu/qt-config.ini
|
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/citra-emu/qt-config.ini
|
||||||
cp -fvr $emuconfigs/yuzu/* /var/config/yuzu/
|
cp -fvr $emuconfigs/yuzu/* /var/config/yuzu/
|
||||||
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/yuzu/qt-config.ini
|
sed -i 's#RETRODECKHOMEDIR#'$rdhome'#g' /var/config/yuzu/qt-config.ini
|
||||||
|
|
||||||
|
# Remove unneeded tools folder, as location has changed to RO space
|
||||||
|
rm -rfv /var/config/retrodeck/tools/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# The following commands are run every time.
|
# The following commands are run every time.
|
||||||
|
|
Loading…
Reference in a new issue