diff options
Diffstat (limited to 'apps/plugins/lua/rocklua.c')
-rw-r--r-- | apps/plugins/lua/rocklua.c | 18 |
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 | ||
49 | char curpath[MAX_PATH]; | ||
50 | static 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 *****************/ |
67 | enum plugin_status plugin_start(const void* parameter) | 50 | enum 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 | ||