From c0059ec3a44de3979fa00224c5b0a77144e09b7a Mon Sep 17 00:00:00 2001 From: icenine451 Date: Fri, 31 Mar 2023 15:45:46 -0400 Subject: [PATCH] Create update script for 0.6.4b config changes --- emu-configs/PCSX2-QT/PCSX2.ini | 2 +- emu-configs/PCSX2/PCSX2.ini | 1 + emu-configs/patches/updates/064b_update.patch | 6 ++++++ emu-configs/primehack/Dolphin.ini | 2 +- post_update.sh | 10 +++++++++- 5 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 emu-configs/patches/updates/064b_update.patch diff --git a/emu-configs/PCSX2-QT/PCSX2.ini b/emu-configs/PCSX2-QT/PCSX2.ini index 5ed8407b..7e428798 100644 --- a/emu-configs/PCSX2-QT/PCSX2.ini +++ b/emu-configs/PCSX2-QT/PCSX2.ini @@ -1,7 +1,7 @@ [UI] SettingsVersion = 1 InhibitScreensaver = true -ConfirmShutdown = true +ConfirmShutdown = false StartPaused = false PauseOnFocusLoss = false StartFullscreen = true diff --git a/emu-configs/PCSX2/PCSX2.ini b/emu-configs/PCSX2/PCSX2.ini index e1d8bec8..abeccf07 100644 --- a/emu-configs/PCSX2/PCSX2.ini +++ b/emu-configs/PCSX2/PCSX2.ini @@ -4,6 +4,7 @@ MainWindowGeometry = AdnQywADAAAAAAAAAAAAAAAAA7UAAAJ/AAAAAAAAAAAAAAO1AAACfwAAAAA MainWindowState = AAAA/wAAAAD9AAAAAAAAA7YAAAJXAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAHQAbwBvAGwAQgBhAHIAAAAAAP////8AAAAAAAAAAA== PauseOnFocusLoss = true StartFullscreen = true +ConfirmShutdown = false [EmuCore] diff --git a/emu-configs/patches/updates/064b_update.patch b/emu-configs/patches/updates/064b_update.patch new file mode 100644 index 00000000..3502b91d --- /dev/null +++ b/emu-configs/patches/updates/064b_update.patch @@ -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 \ No newline at end of file diff --git a/emu-configs/primehack/Dolphin.ini b/emu-configs/primehack/Dolphin.ini index 5ecd48e0..89358dd0 100644 --- a/emu-configs/primehack/Dolphin.ini +++ b/emu-configs/primehack/Dolphin.ini @@ -48,7 +48,7 @@ DisableScreenSaver = True KeepWindowOnTop = False Fullscreen = True [Interface] -ConfirmStop = False +ConfirmStop = True LanguageCode = OnScreenDisplayMessages = True PauseOnFocusLost = False diff --git a/post_update.sh b/post_update.sh index 8b79912c..361d15f4 100644 --- a/post_update.sh +++ b/post_update.sh @@ -200,7 +200,7 @@ post_update() { dir_prep "$bios_folder/pico-8/cdata" "$saves_folder/pico-8" # PICO-8 saves folder fi 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 # - 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. @@ -221,6 +221,14 @@ post_update() { # Remove unneeded tools folder, as location has changed to RO space rm -rfv /var/config/retrodeck/tools/ 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.