Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Fix runahead settings. #2267

Merged
merged 1 commit into from
Oct 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions packages/jelos/sources/scripts/setsettings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -758,14 +758,20 @@ function set_runahead() {
local RUNAHEAD="$(game_setting runahead)"
local HAS_RUNAHEAD="$(match ${PLATFORM} ${NO_RUNAHEAD[@]})"
case ${HAS_RUNAHEAD} in
0|false|none)
1)
add_setting "none" "run_ahead_enabled" "false"
add_setting "none" "run_ahead_frames" "1"
add_setting "none" "run_ahead_frames" "0"
;;
*)
add_setting "none" "run_ahead_enabled" "true"
add_setting "none" "run_ahead_frames" "${RUNAHEAD}"
add_setting "secondinstance" "run_ahead_secondary_instance"
if [ "${RUNAHEAD}" -gt 0 ]
then
add_setting "none" "run_ahead_enabled" "true"
add_setting "none" "run_ahead_frames" "${RUNAHEAD}"
add_setting "secondinstance" "run_ahead_secondary_instance"
else
add_setting "none" "run_ahead_enabled" "false"
add_setting "none" "run_ahead_frames" "0"
fi
;;
esac
}
Expand Down