mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05:39 +00:00
Add logs folder to RA config setup
Add RetroAchievements logout Configurator option Disabled AI Service in RetroArch by default
This commit is contained in:
parent
ad43349c25
commit
99f1406ac2
|
@ -1,6 +1,6 @@
|
||||||
accessibility_enable = "false"
|
accessibility_enable = "false"
|
||||||
accessibility_narrator_speech_speed = "5"
|
accessibility_narrator_speech_speed = "5"
|
||||||
ai_service_enable = "true"
|
ai_service_enable = "false"
|
||||||
ai_service_mode = "1"
|
ai_service_mode = "1"
|
||||||
ai_service_pause = "false"
|
ai_service_pause = "false"
|
||||||
ai_service_source_lang = "0"
|
ai_service_source_lang = "0"
|
||||||
|
|
|
@ -83,6 +83,7 @@ prepare_emulator() {
|
||||||
set_setting_value "$raconf" "savefile_directory" "$saves_folder" "retroarch"
|
set_setting_value "$raconf" "savefile_directory" "$saves_folder" "retroarch"
|
||||||
set_setting_value "$raconf" "savestate_directory" "$states_folder" "retroarch"
|
set_setting_value "$raconf" "savestate_directory" "$states_folder" "retroarch"
|
||||||
set_setting_value "$raconf" "screenshot_directory" "$screenshots_folder" "retroarch"
|
set_setting_value "$raconf" "screenshot_directory" "$screenshots_folder" "retroarch"
|
||||||
|
set_setting_value "$raconf" "log_dir" "$logs_folder" "retroarch"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# PPSSPP
|
# PPSSPP
|
||||||
|
@ -126,6 +127,7 @@ prepare_emulator() {
|
||||||
set_setting_value "$raconf" "savefile_directory" "$saves_folder" "retroarch"
|
set_setting_value "$raconf" "savefile_directory" "$saves_folder" "retroarch"
|
||||||
set_setting_value "$raconf" "savestate_directory" "$states_folder" "retroarch"
|
set_setting_value "$raconf" "savestate_directory" "$states_folder" "retroarch"
|
||||||
set_setting_value "$raconf" "screenshot_directory" "$screenshots_folder" "retroarch"
|
set_setting_value "$raconf" "screenshot_directory" "$screenshots_folder" "retroarch"
|
||||||
|
set_setting_value "$raconf" "log_dir" "$logs_folder" "retroarch"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -101,9 +101,8 @@ build_preset_config(){
|
||||||
local system_being_changed="$1"
|
local system_being_changed="$1"
|
||||||
shift
|
shift
|
||||||
local presets_being_changed="$*"
|
local presets_being_changed="$*"
|
||||||
for preset in $presets_being_changed
|
for current_preset in $presets_being_changed
|
||||||
do
|
do
|
||||||
current_preset="$preset"
|
|
||||||
local preset_section=$(sed -n '/\['"$current_preset"'\]/, /\[/{ /\['"$current_preset"'\]/! { /\[/! p } }' $rd_conf | sed '/^$/d')
|
local preset_section=$(sed -n '/\['"$current_preset"'\]/, /\[/{ /\['"$current_preset"'\]/! { /\[/! p } }' $rd_conf | sed '/^$/d')
|
||||||
while IFS= read -r system_line
|
while IFS= read -r system_line
|
||||||
do
|
do
|
||||||
|
|
|
@ -183,6 +183,7 @@ configurator_global_presets_and_settings_dialog() {
|
||||||
"Enable/Disable Borders" "Enable or disable borders in supported systems" \
|
"Enable/Disable Borders" "Enable or disable borders in supported systems" \
|
||||||
"Enable/Disable Widescreen" "Enable or disable widescreen in supported systems" \
|
"Enable/Disable Widescreen" "Enable or disable widescreen in supported systems" \
|
||||||
"RetroAchievements Login" "Log into the RetroAchievements service in supported systems" \
|
"RetroAchievements Login" "Log into the RetroAchievements service in supported systems" \
|
||||||
|
"RetroAchievements Logout" "Disable RetroAchievements service in supported systems" \
|
||||||
"RetroAchievements Hardcore Mode" "Enable RetroAchievements hardcore mode (no cheats, rewind, save states etc.) in supported emulators" \
|
"RetroAchievements Hardcore Mode" "Enable RetroAchievements hardcore mode (no cheats, rewind, save states etc.) in supported emulators" \
|
||||||
"Nintendo Button Layout" "Enable or disable Nintendo button layout (swapped A/B and X/Y) in supported systems" )
|
"Nintendo Button Layout" "Enable or disable Nintendo button layout (swapped A/B and X/Y) in supported systems" )
|
||||||
|
|
||||||
|
@ -210,6 +211,11 @@ configurator_global_presets_and_settings_dialog() {
|
||||||
configurator_global_presets_and_settings_dialog
|
configurator_global_presets_and_settings_dialog
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"RetroAchievements Logout" ) # This is a workaround to allow disabling cheevos without having to enter login credentials
|
||||||
|
change_preset_dialog "cheevos"
|
||||||
|
configurator_global_presets_and_settings_dialog
|
||||||
|
;;
|
||||||
|
|
||||||
"RetroAchievements Hardcore Mode" )
|
"RetroAchievements Hardcore Mode" )
|
||||||
change_preset_dialog "cheevos_hardcore"
|
change_preset_dialog "cheevos_hardcore"
|
||||||
configurator_global_presets_and_settings_dialog
|
configurator_global_presets_and_settings_dialog
|
||||||
|
|
Loading…
Reference in a new issue