Return control to Hollywood!

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

Return control to Hollywood!

Post by divsalv »

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: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Return control to Hollywood!

Post by airsoftsoftwair »

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