Create update script for 0.6.4b config changes

This commit is contained in:
icenine451 2023-03-31 15:45:46 -04:00
parent 1f4f19bae0
commit c0059ec3a4
5 changed files with 18 additions and 3 deletions

View file

@ -1,7 +1,7 @@
[UI] [UI]
SettingsVersion = 1 SettingsVersion = 1
InhibitScreensaver = true InhibitScreensaver = true
ConfirmShutdown = true ConfirmShutdown = false
StartPaused = false StartPaused = false
PauseOnFocusLoss = false PauseOnFocusLoss = false
StartFullscreen = true StartFullscreen = true

View file

@ -4,6 +4,7 @@ MainWindowGeometry = AdnQywADAAAAAAAAAAAAAAAAA7UAAAJ/AAAAAAAAAAAAAAO1AAACfwAAAAA
MainWindowState = AAAA/wAAAAD9AAAAAAAAA7YAAAJXAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAHQAbwBvAGwAQgBhAHIAAAAAAP////8AAAAAAAAAAA== MainWindowState = AAAA/wAAAAD9AAAAAAAAA7YAAAJXAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAHQAbwBvAGwAQgBhAHIAAAAAAP////8AAAAAAAAAAA==
PauseOnFocusLoss = true PauseOnFocusLoss = true
StartFullscreen = true StartFullscreen = true
ConfirmShutdown = false
[EmuCore] [EmuCore]

View file

@ -0,0 +1,6 @@
# Primehack Changes: Assign audio output, change AR to "Force 16:9"
change^DSP^Backend^Pulse^primehack^$primehackconf
change^Settings^AspectRatio^1^primehack^$primehackgfxconf
# Update "ask on quit" and "save on quit" on supported emulators (PCSX2, Duckstation)
change^UI^ConfirmShutdown^false^pcsx2^$pcsx2qtconf
change^Main^ConfirmPowerOff^false^duckstation^$duckstationconf

View file

@ -48,7 +48,7 @@ DisableScreenSaver = True
KeepWindowOnTop = False KeepWindowOnTop = False
Fullscreen = True Fullscreen = True
[Interface] [Interface]
ConfirmStop = False ConfirmStop = True
LanguageCode = LanguageCode =
OnScreenDisplayMessages = True OnScreenDisplayMessages = True
PauseOnFocusLost = False PauseOnFocusLost = False

View file

@ -200,7 +200,7 @@ post_update() {
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 if [[ $prev_version -le "063" ]]; then
# In version 0.6.2b, the following changes were made that required config file updates/reset: # In version 0.6.3b, the following changes were made that required config file updates/reset:
# - Put Dolphin and Primehack save states in different folders inside $rd_home/states # - 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 ~) # - Fix symlink to hard-coded PICO-8 config folder (dir_prep doesn't like ~)
# - Overwrite Citra and Yuzu configs, as controller mapping was broken due to emulator updates. # - Overwrite Citra and Yuzu configs, as controller mapping was broken due to emulator updates.
@ -221,6 +221,14 @@ post_update() {
# Remove unneeded tools folder, as location has changed to RO space # Remove unneeded tools folder, as location has changed to RO space
rm -rfv /var/config/retrodeck/tools/ rm -rfv /var/config/retrodeck/tools/
fi fi
if [[ $prev_version -le "064" ]]; then
# In version 0.6.4b, the following changes were made:
# Changed settings in Primehack: The audio output was not selected by default, default AR was also incorrect.
# Changed settings in Duckstation and PCSX2: The "ask on exit" was disabled and "save on exit" was enabled.
# The default configs have been updated for new installs and resets, a patch was created to address existing installs.
deploy_multi_patch "emu-configs/patches/updates/064b_update.patch"
fi
# The following commands are run every time. # The following commands are run every time.