summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklua.c
diff options
context:
space:
mode:
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 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();