int error = Sleep(lua_State *L, int ms);
ERR_USERABORT
so that Hollywood can shutdown.
Sleep()
is an optional API and must only be implemented if HWSDAFLAGS_SLEEP
has been
passed to hw_SetDisplayAdapter(). See hw_SetDisplayAdapter for details.
Note that when compiling for 64-bit Windows, this function must be called _Sleep
instead. Otherwise there will be clashes with the function of the same name from kernel32
.lib.
On 32-bit Windows this isn't a problem because 32-bit Windows uses decorated function exports.
Starting with Hollywood 10.0, it is recommended to use the hwp_
prefix before
all plugin function exports. If you do that, you can just export this function as
hwp_Sleep
without having to use a different export name for 32-bit and 64-bit builds
but keep in mind that the _hwp
prefix works only on Hollywood 10.0 or better.
lua_State