mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-29 09:05:42 +00:00
- Fix PICO-8 symlink location
- Seperate Dolphin/Primehack save states - Fix post-update variable checks for new values
This commit is contained in:
parent
f5c6a70c9c
commit
78bfa1e5aa
|
@ -781,7 +781,7 @@ dolphin_init() {
|
||||||
dir_prep "$rdhome/saves/gc/dolphin/USA" "/var/data/dolphin-emu/GC/USA"
|
dir_prep "$rdhome/saves/gc/dolphin/USA" "/var/data/dolphin-emu/GC/USA"
|
||||||
dir_prep "$rdhome/saves/gc/dolphin/JAP" "/var/data/dolphin-emu/GC/JAP"
|
dir_prep "$rdhome/saves/gc/dolphin/JAP" "/var/data/dolphin-emu/GC/JAP"
|
||||||
dir_prep "$rdhome/screenshots" "/var/data/dolphin-emu/ScreenShots"
|
dir_prep "$rdhome/screenshots" "/var/data/dolphin-emu/ScreenShots"
|
||||||
dir_prep "$rdhome/states" "/var/data/dolphin-emu/StateSaves"
|
dir_prep "$rdhome/states/dolphin" "/var/data/dolphin-emu/StateSaves"
|
||||||
mkdir -pv /var/data/dolphin-emu/Wii/
|
mkdir -pv /var/data/dolphin-emu/Wii/
|
||||||
dir_prep "$rdhome/saves/wii/dolphin" "/var/data/dolphin-emu/Wii"
|
dir_prep "$rdhome/saves/wii/dolphin" "/var/data/dolphin-emu/Wii"
|
||||||
}
|
}
|
||||||
|
@ -799,7 +799,7 @@ primehack_init() {
|
||||||
dir_prep "$rdhome/saves/gc/primehack/USA" "/var/data/primehack/GC/USA"
|
dir_prep "$rdhome/saves/gc/primehack/USA" "/var/data/primehack/GC/USA"
|
||||||
dir_prep "$rdhome/saves/gc/primehack/JAP" "/var/data/primehack/GC/JAP"
|
dir_prep "$rdhome/saves/gc/primehack/JAP" "/var/data/primehack/GC/JAP"
|
||||||
dir_prep "$rdhome/screenshots" "/var/data/primehack/ScreenShots"
|
dir_prep "$rdhome/screenshots" "/var/data/primehack/ScreenShots"
|
||||||
dir_prep "$rdhome/states" "/var/data/primehack/StateSaves"
|
dir_prep "$rdhome/states/primehack" "/var/data/primehack/StateSaves"
|
||||||
mkdir -pv /var/data/primehack/Wii/
|
mkdir -pv /var/data/primehack/Wii/
|
||||||
dir_prep "$rdhome/saves/wii/primehack" "/var/data/primehack/Wii"
|
dir_prep "$rdhome/saves/wii/primehack" "/var/data/primehack/Wii"
|
||||||
}
|
}
|
||||||
|
@ -1070,7 +1070,7 @@ emulators_post_move() {
|
||||||
dir_prep "$rdhome/saves/gc/dolphin/USA" "/var/data/dolphin-emu/GC/USA"
|
dir_prep "$rdhome/saves/gc/dolphin/USA" "/var/data/dolphin-emu/GC/USA"
|
||||||
dir_prep "$rdhome/saves/gc/dolphin/JAP" "/var/data/dolphin-emu/GC/JAP"
|
dir_prep "$rdhome/saves/gc/dolphin/JAP" "/var/data/dolphin-emu/GC/JAP"
|
||||||
dir_prep "$rdhome/screenshots" "/var/data/dolphin-emu/ScreenShots"
|
dir_prep "$rdhome/screenshots" "/var/data/dolphin-emu/ScreenShots"
|
||||||
dir_prep "$rdhome/states" "/var/data/dolphin-emu/StateSaves"
|
dir_prep "$rdhome/states/dolphin" "/var/data/dolphin-emu/StateSaves"
|
||||||
dir_prep "$rdhome/saves/wii/dolphin" "/var/data/dolphin-emu/Wii/"
|
dir_prep "$rdhome/saves/wii/dolphin" "/var/data/dolphin-emu/Wii/"
|
||||||
|
|
||||||
# Primehack section
|
# Primehack section
|
||||||
|
@ -1079,7 +1079,7 @@ emulators_post_move() {
|
||||||
dir_prep "$rdhome/saves/gc/primehack/USA" "/var/data/primehack/GC/USA"
|
dir_prep "$rdhome/saves/gc/primehack/USA" "/var/data/primehack/GC/USA"
|
||||||
dir_prep "$rdhome/saves/gc/primehack/JAP" "/var/data/primehack/GC/JAP"
|
dir_prep "$rdhome/saves/gc/primehack/JAP" "/var/data/primehack/GC/JAP"
|
||||||
dir_prep "$rdhome/screenshots" "/var/data/primehack/ScreenShots"
|
dir_prep "$rdhome/screenshots" "/var/data/primehack/ScreenShots"
|
||||||
dir_prep "$rdhome/states" "/var/data/primehack/StateSaves"
|
dir_prep "$rdhome/states/primehack" "/var/data/primehack/StateSaves"
|
||||||
dir_prep "$rdhome/saves/wii/primehack" "/var/data/primehack/Wii/"
|
dir_prep "$rdhome/saves/wii/primehack" "/var/data/primehack/Wii/"
|
||||||
|
|
||||||
# PCSX2 section
|
# PCSX2 section
|
||||||
|
|
|
@ -54,6 +54,14 @@ pcsx2vmconf="/var/config/PCSX2/inis/PCSX2_vm.ini"
|
||||||
|
|
||||||
pcsx2qtconf="/var/config/PCSX2/inis/PCSX2.ini"
|
pcsx2qtconf="/var/config/PCSX2/inis/PCSX2.ini"
|
||||||
|
|
||||||
|
# Primehack config files
|
||||||
|
|
||||||
|
primehackconf="/var/config/primehack/Dolphin.ini"
|
||||||
|
primehackgcpadconf="/var/config/primehack/GCPadNew.ini"
|
||||||
|
primehackgfxconf="/var/config/primehack/GFX.ini"
|
||||||
|
primehackhkconf="/var/config/primehack/Hotkeys.ini"
|
||||||
|
primehackqtconf="/var/config/primehack/Qt.ini"
|
||||||
|
|
||||||
# We moved the lockfile in /var/config/retrodeck in order to solve issue #53 - Remove in a few versions
|
# We moved the lockfile in /var/config/retrodeck in order to solve issue #53 - Remove in a few versions
|
||||||
if [ -f "$HOME/retrodeck/.lock" ]
|
if [ -f "$HOME/retrodeck/.lock" ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -199,6 +199,17 @@ post_update() {
|
||||||
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 "$bios_folder/pico-8/cdata" "$saves_folder/pico-8" # PICO-8 saves folder
|
||||||
fi
|
fi
|
||||||
|
if [[ $prev_version -le "063" ]]; then
|
||||||
|
# In version 0.6.2b, the following changes were made that required config file updates/reset:
|
||||||
|
# - Put Dolphin and Primehack save states in different folders inside $rd_home/states
|
||||||
|
# - Fix symlink to hard-coded PICO-8 config folder (dir_prep doesn't like ~)
|
||||||
|
|
||||||
|
dir_prep "$rdhome/states/dolphin" "/var/data/dolphin-emu/StateSaves"
|
||||||
|
dir_prep "$rdhome/states/primehack" "/var/data/primehack/StateSaves"
|
||||||
|
|
||||||
|
rm -rf "$HOME/~/" # Remove old incorrect location from 0.6.2b
|
||||||
|
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
|
||||||
|
fi
|
||||||
|
|
||||||
# The following commands are run every time.
|
# The following commands are run every time.
|
||||||
|
|
||||||
|
|
|
@ -118,6 +118,8 @@ else
|
||||||
finit # Executing First/Force init
|
finit # Executing First/Force init
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
source $rd_conf # Load latest variable values
|
||||||
|
|
||||||
# Check if running in Desktop mode and warn if true, unless desktop_mode_warning=false in retrodeck.cfg
|
# Check if running in Desktop mode and warn if true, unless desktop_mode_warning=false in retrodeck.cfg
|
||||||
|
|
||||||
desktop_mode_warning
|
desktop_mode_warning
|
||||||
|
|
Loading…
Reference in a new issue