From 3c6af3a2fe2ee8441f1b73625d19b5e618b50e62 Mon Sep 17 00:00:00 2001 From: icenine451 Date: Thu, 18 May 2023 09:28:07 -0400 Subject: [PATCH] Update Xemu config file path --- functions/multi_user.sh | 4 ++-- functions/prepare_emulator.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/multi_user.sh b/functions/multi_user.sh index 188a4467..08d9bf4d 100644 --- a/functions/multi_user.sh +++ b/functions/multi_user.sh @@ -161,10 +161,10 @@ multi_user_return_to_single_user() { mv -f "$multi_user_data_folder/$SteamAppUser/config/retroarch/retroarch-core-options.cfg" "/var/config/retroarch/retroarch-core-options.cfg" # XEMU one-offs, because it stores its config in /var/data, not /var/config like everything else unlink "/var/config/xemu" - unlink "/var/data/xemu" + unlink "/var/data/xemu/xemu" mkdir -p "/var/config/xemu" mv -f "$multi_user_data_folder/$single_user/config/xemu"/{.[!.],}* "/var/config/xemu" - dir_prep "/var/config/xemu" "/var/data/xemu" + dir_prep "/var/config/xemu" "/var/data/xemu/xemu" mkdir -p "$saves_folder" mkdir -p "$states_folder" mv -f "$multi_user_data_folder/$single_user/saves"/{.[!.],}* "$saves_folder" diff --git a/functions/prepare_emulator.sh b/functions/prepare_emulator.sh index 9fc314c9..ec507349 100644 --- a/functions/prepare_emulator.sh +++ b/functions/prepare_emulator.sh @@ -515,11 +515,11 @@ prepare_emulator() { set_setting_value "$multi_user_data_folder/$SteamAppUser/config/xemu/xemu.toml" "eeprom_path" "$saves_folder/xbox/xemu/xbox-eeprom.bin" "xemu" "sys.files" set_setting_value "$multi_user_data_folder/$SteamAppUser/config/xemu/xemu.toml" "hdd_path" "'$bios_folder/xbox_hdd.qcow2'" "xemu" "sys.files" dir_prep "$multi_user_data_folder/$SteamAppUser/config/xemu" "/var/config/xemu" # Creating config folder in /var/config for consistentcy and linking back to original location where emulator will look - dir_prep "$multi_user_data_folder/$SteamAppUser/config/xemu" "/var/data/xemu" + dir_prep "$multi_user_data_folder/$SteamAppUser/config/xemu" "/var/data/xemu/xemu" else # Single-user actions rm -rf /var/config/xemu rm -rf /var/data/xemu - dir_prep "/var/config/xemu" "/var/data/xemu" # Creating config folder in /var/config for consistentcy and linking back to original location where emulator will look + dir_prep "/var/config/xemu" "/var/data/xemu/xemu" # Creating config folder in /var/config for consistentcy and linking back to original location where emulator will look cp -fv $emuconfigs/xemu/xemu.toml "$xemuconf" set_setting_value "$xemuconf" "screenshot_dir" "'$screenshots_folder'" "xemu" "General" set_setting_value "$xemuconf" "bootrom_path" "'$bios_folder/mcpx_1.0.bin'" "xemu" "sys.files"