summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklua.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-05-22 22:44:34 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-05-22 22:44:34 +0000
commit0f7e4e36aeb95f3e39a940d6e19748d910d40d92 (patch)
tree72df574e93dc33babc1107da581c3b0e30837acc /apps/plugins/lua/rocklua.c
parent475b5dc2bbddd31f4fee8935a0e903147e05fd08 (diff)
downloadrockbox-0f7e4e36aeb95f3e39a940d6e19748d910d40d92.tar.gz
rockbox-0f7e4e36aeb95f3e39a940d6e19748d910d40d92.zip
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
Diffstat (limited to 'apps/plugins/lua/rocklua.c')
-rw-r--r--apps/plugins/lua/rocklua.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/apps/plugins/lua/rocklua.c b/apps/plugins/lua/rocklua.c
index e72591445f..fcc8a3f9c8 100644
--- a/apps/plugins/lua/rocklua.c
+++ b/apps/plugins/lua/rocklua.c
@@ -46,23 +46,6 @@ static void rocklua_openlibs(lua_State *L) {
46 } 46 }
47} 47}
48 48
49char curpath[MAX_PATH];
50static void fill_curpath(const char* filename)
51{
52 char* pos = rb->strrchr(filename, '/');
53
54 if(pos != NULL)
55 {
56 int len = (int)(pos - filename);
57
58 if(len > 0)
59 memcpy(curpath, filename, len);
60
61 curpath[len] = '\0';
62 }
63}
64
65
66/***************** Plugin Entry Point *****************/ 49/***************** Plugin Entry Point *****************/
67enum plugin_status plugin_start(const void* parameter) 50enum plugin_status plugin_start(const void* parameter)
68{ 51{
@@ -79,7 +62,6 @@ enum plugin_status plugin_start(const void* parameter)
79 else 62 else
80 { 63 {
81 filename = (char*) parameter; 64 filename = (char*) parameter;
82 fill_curpath(filename);
83 65
84 lua_State *L = luaL_newstate(); 66 lua_State *L = luaL_newstate();
85 67