diff options
Diffstat (limited to 'apps/plugins/lua')
-rw-r--r-- | apps/plugins/lua/rocklua.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/lua/rocklua.c b/apps/plugins/lua/rocklua.c index 00bfd8e43e..b92c274fb0 100644 --- a/apps/plugins/lua/rocklua.c +++ b/apps/plugins/lua/rocklua.c @@ -20,6 +20,7 @@ ****************************************************************************/ #include "plugin.h" +#include "lib/pluginlib_exit.h" #include "lua.h" #include "lauxlib.h" #include "lualib.h" @@ -27,7 +28,7 @@ #include "rockmalloc.h" #include "luadir.h" - +PLUGIN_HEADER static const luaL_Reg lualibs[] = { {"", luaopen_base}, @@ -147,6 +148,8 @@ enum plugin_status plugin_start(const void* parameter) const char* filename; int status; + PLUGINLIB_EXIT_INIT + if (parameter == NULL) { rb->splash(HZ, "Play a .lua file!"); |