mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
Update PPSSPP cheevos preset information and process
This commit is contained in:
parent
149263b522
commit
e25361a5b0
|
@ -2,5 +2,5 @@ config_file_format^ppsspp
|
|||
change^savestate_auto_load^AutoLoadSaveState^2^General^$ppssppconf^$config/ppssppsdl/ppsspp.ini
|
||||
change^cheevos^AchievementsEnable^True^Achievements^$ppssppconf^$config/ppssppsdl/ppsspp.ini
|
||||
change^cheevos^AchievementsUserName^$cheevos_username^Achievements^$ppssppconf^$config/ppssppsdl/ppsspp.ini
|
||||
rewrite^cheevos^^$cheevos_token^^$ppssppcheevosconf^$config/ppssppsdl/ppsspp_retroachievements.dat
|
||||
change^cheevos^^$cheevos_token^^$ppssppcheevosconf^$config/ppssppsdl/ppsspp_retroachievements.dat
|
||||
change^cheevos_hardcore^AchievementsChallengeMode^True^Achievements^$ppssppconf^$config/ppssppsdl/ppsspp.ini
|
||||
|
|
|
@ -322,28 +322,6 @@ build_preset_config() {
|
|||
fi
|
||||
;;
|
||||
|
||||
"rewrite" )
|
||||
if [[ "$read_preset" == "$current_preset" ]]; then
|
||||
if [[ "$target_file" = \$* ]]; then # Read current target file and resolve if it is a variable
|
||||
eval target_file=$target_file
|
||||
fi
|
||||
local read_target_file="$target_file"
|
||||
if [[ "$defaults_file" = \$* ]]; then # Read current defaults file and resolve if it is a variable
|
||||
eval defaults_file=$defaults_file
|
||||
fi
|
||||
local read_defaults_file="$defaults_file"
|
||||
log d "Rewriting setting: $read_setting_name to $new_setting_value in $read_target_file"
|
||||
if [[ "$read_system_enabled" == "true" ]]; then
|
||||
if [[ "$new_setting_value" = \$* ]]; then # Resolve new setting value if it is a variable
|
||||
eval new_setting_value=$new_setting_value
|
||||
fi
|
||||
echo -n "$new_setting_value" > "$read_target_file" # Write the new setting value to the target file
|
||||
else
|
||||
cat "$read_defaults_file" > "$read_target_file" # Restore the default settings from the defaults file
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
|
||||
"enable" )
|
||||
if [[ "$read_preset" == "$current_preset" ]]; then
|
||||
log d "Enabling file: $read_setting_name"
|
||||
|
|
Loading…
Reference in a new issue