From 93cb949372630d807615f53a8a6379937ed6819f Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 23 Aug 2010 17:12:26 +0000 Subject: Revert "Introduce plugin_crt0.c that every plugin links." Too much errors and no time to fix them now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27863 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lua/rocklua.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/plugins/lua/rocklua.c') 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!"); -- cgit v1.2.3