Implemented infinite loop safety net.

This commit is contained in:
Olivier Gagnon
2022-05-07 17:43:45 -04:00
parent b46718d188
commit fb08139903
6 changed files with 30 additions and 0 deletions
@@ -179,6 +179,12 @@ export const CurrentOptionsPage = (props: IProps): React.ReactElement => {
</>
}
/>
<OptionSwitch
checked={Settings.InfinityLoopSafety}
onChange={(newValue) => (Settings.InfinityLoopSafety = newValue)}
text="Script infinite loop safety net"
tooltip={<>If this is set the game will attempt to automatically kill scripts stuck in infinite loops.</>}
/>
</GameOptionsPage>
),
[GameOptionsTab.INTERFACE]: (