SETTINGS: Add infinite loop detection setting (#402)

This commit is contained in:
Snarling
2023-02-28 06:54:01 -05:00
committed by GitHub
parent ae92ea0f94
commit ee3c412933
3 changed files with 34 additions and 0 deletions
+11
View File
@@ -140,6 +140,17 @@ export const SystemPage = (): React.ReactElement => {
marks
/>
</>
<OptionSwitch
checked={Settings.infiniteLoopDetection}
onChange={(newValue) => (Settings.infiniteLoopDetection = newValue)}
text="Infinite loop detection"
tooltip={
<>
If this is set, scripts can generate an execution timeout error when an ns function is called and the script
has been running synchronous operations for at least 7s.
</>
}
/>
<OptionSwitch
checked={Settings.SuppressSavedGameToast}
onChange={(newValue) => (Settings.SuppressSavedGameToast = newValue)}