From 0f7e4e36aeb95f3e39a940d6e19748d910d40d92 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Fri, 22 May 2009 22:44:34 +0000 Subject: Lua: * add action_get_touchscreen_press wrapper * fix kbd_input wrapper * rework luaL_loadfile * add rb.contexts git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21046 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lua/rocklua.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'apps/plugins/lua/rocklua.c') diff --git a/apps/plugins/lua/rocklua.c b/apps/plugins/lua/rocklua.c index e725914..fcc8a3f 100644 --- a/apps/plugins/lua/rocklua.c +++ b/apps/plugins/lua/rocklua.c @@ -46,23 +46,6 @@ static void rocklua_openlibs(lua_State *L) { } } -char curpath[MAX_PATH]; -static void fill_curpath(const char* filename) -{ - char* pos = rb->strrchr(filename, '/'); - - if(pos != NULL) - { - int len = (int)(pos - filename); - - if(len > 0) - memcpy(curpath, filename, len); - - curpath[len] = '\0'; - } -} - - /***************** Plugin Entry Point *****************/ enum plugin_status plugin_start(const void* parameter) { @@ -79,7 +62,6 @@ enum plugin_status plugin_start(const void* parameter) else { filename = (char*) parameter; - fill_curpath(filename); lua_State *L = luaL_newstate(); -- cgit v1.1