Return control to Hollywood!

Discuss questions about plugin development with the Hollywood SDK here
Post Reply
divsalv
Posts: 23
Joined: Sun Mar 22, 2015 4:01 am

Return control to Hollywood!

Post by divsalv » Thu May 17, 2018 6:27 pm

Sorry, but I would like to understand one thing: is it possible for a plugin to return control to hollywood for a moment, and then return to the plugin?
I was writing a plugin using 6502lib, but the execution cycle goes on forever, so I need to return control to hollywood.
It's possible?
Or maybe run hollywood commands from c?

User avatar
airsoftsoftwair
Posts: 2628
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Return control to Hollywood!

Post by airsoftsoftwair » Fri May 18, 2018 4:38 pm

Having a plugin command take over Hollywood and never returning control is a very bad idea. This will block GUI and event handling. Instead, you should force the script to continously call your command in a loop so that Hollywood will still be able to do its housekeeping, i.e. something like:

Code: Select all

Repeat
    YourPluginCommand()
Forever

Post Reply