View Single Post
Old 09-19-2019, 12:30 PM   #20
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,555
Default

Build: 40630

Eventmanager mostly complete now

Additions:
  • EventManager: EventManager_PauseEvent - pauses a registered event in the EventManager
  • EventManager: EventManager_ResumeEvent - resumes a paused and registered event in the EventManager
  • EventManager: EventManager_Start - starts the EventManager
  • EventManager: EventManager_Stop - stops the EventManager, if all scripts who have registered events have used this function
Changes:
  • Helper Functions: Main_OnCommand_LuaCode - had inner variables exposed -> fixed
  • EventManager: Eventmanager_RemoveEvent - didn't return false in case of an error, though docs stated otherwise -> fixed
  • Eventmanager: EventManagerScript - functions who got passed to the eventmanager are now run in protected mode.
    They print out an error-message in case of an error and the accompanying event will be paused from that moment on.
    This should make that more stable overall, as the other eventcheckings are not stopped due one faulty function of one eventcheck.
    Replacing the function and restarting the eventchecking should be possible, so debugging it on runtime should work.
    In other news: EventChecking now works as often as it was requested(used to be done in every defer-cycle of the eventmanager, which wasted computing-resources)

You can download this prerelease from: https://raw.githubusercontent.com/Ul...ease_index.xml
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635

Last edited by mespotine; 10-11-2019 at 09:36 AM.
mespotine is offline   Reply With Quote