Skip to content
Snippets Groups Projects
  1. Aug 18, 2024
  2. Aug 17, 2024
  3. Aug 16, 2024
  4. Aug 15, 2024
  5. Aug 13, 2024
  6. Aug 11, 2024
  7. Aug 10, 2024
  8. Aug 09, 2024
    • Rob Swindell's avatar
      Global JS exit() function now sets 'exit_code' to 0 by default · d5516d0f
      Rob Swindell authored
      Calling exit() causes JS_ExecuteScript() to return false (same return value
      as if there's a syntax error) - so if we always set exit_code in exit()
      (even when not passed a parameter) and then use that exit code if the property
      is defined, then we get the -1 return value from js_execfile() if the script
      is terminated prematurely without using exit().
      
      This fixes the issue introduced in the previous commit where scripts that
      call exit() - without any parameters, were causing errors to be logged about
      scripts (e.g. timed events) returning -1.
      d5516d0f
    • Rob Swindell's avatar
      Fix infinite loop of error msgs/notifications when JS shell has syntax error · 00774418
      Rob Swindell authored
      js_execfile() now returns -1 when JS_ExecuteScript() return false (failure).
      
      The main command-shell loop will now terminate when js_execfile() returns
      anything but 0 (success), similar to how PCMS (Baja-compiled) command-shell
      .bin file parse errors are handled.
      00774418
    • Rob Swindell's avatar
      Save/reuse the mail save path/filename as a user property (in data/user/*.ini) · c58a0e89
      Rob Swindell authored
      This is a fix for issue #340
      
      Another idea would be to store a history of mail save paths and allow the user
      to scroll through them/choose with the up and down arrow keys, but that goes
      beyond the original feature request. So this just stores/reuses the last
      successfully used path/filename.
      c58a0e89
  9. Aug 08, 2024
Loading