mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-07-12 18:19:42 -07:00
es-menu: wire up AUTO FRAME DELAY and ship wg-quick for WIREGUARD VPN
Two ES menu items that wrote settings nothing consumed / called a missing binary, found in the menu audit: - AUTO FRAME DELAY (Latency menu) persisted `<config>.video_frame_delay_auto` to system.cfg, but setsettings.sh never translated it into retroarch.cfg, so the toggle did nothing. Add set_frame_delay(): ON/OFF -> RetroArch `video_frame_delay_auto = true/false`, AUTO leaves the cfg default. - WIREGUARD VPN toggle runs `wg-quick up/down`, but the wireguard-tools package only installed `wg`, so every toggle silently failed. wg-quick is the upstream bash helper (src/wg-quick/linux.bash); install it. Runtime deps (bash, ip, wg, iptables) are all present. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -845,6 +845,16 @@ function set_runahead() {
|
||||
esac
|
||||
}
|
||||
|
||||
function set_frame_delay() {
|
||||
# AUTO FRAME DELAY menu (configName.video_frame_delay_auto): "" = AUTO
|
||||
# (leave retroarch.cfg default), "1" = ON, "0" = OFF. RetroArch expects a
|
||||
# bool, so map ON/OFF to true/false and leave AUTO untouched.
|
||||
case "$(game_setting video_frame_delay_auto)" in
|
||||
1) add_setting "none" "video_frame_delay_auto" "true" ;;
|
||||
0) add_setting "none" "video_frame_delay_auto" "false" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
function set_audiolatency() {
|
||||
add_setting "audiolatency" "audio_latency"
|
||||
}
|
||||
@@ -1284,6 +1294,7 @@ set_savestates &
|
||||
set_autosave &
|
||||
set_netplay &
|
||||
set_runahead &
|
||||
set_frame_delay &
|
||||
set_audiolatency &
|
||||
set_analogsupport &
|
||||
set_tatemode &
|
||||
|
||||
Reference in New Issue
Block a user