Merge pull request #3624 from danielyxie/infinite-loop-safety

MISC: Implemented infinite loop safety net.
This commit is contained in:
hydroflame
2022-05-18 15:35:12 -04:00
committed by GitHub
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]: (