From 9bff845b49e277af46d6b7a09bb111472f3d3f49 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Wed, 1 Jul 2009 17:01:22 +0000 Subject: Lua: because Rockbox doesn't support any current working directory functionality, 'hack' loadlib so it replace '$' in LUA_PATH_DEFAULT with the directory wherein the current script is. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21595 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lua/rocklib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/lua/rocklib.h') diff --git a/apps/plugins/lua/rocklib.h b/apps/plugins/lua/rocklib.h index 4a1e79c..84b5fd2 100644 --- a/apps/plugins/lua/rocklib.h +++ b/apps/plugins/lua/rocklib.h @@ -24,7 +24,7 @@ #define LUA_ROCKLIBNAME "rb" LUALIB_API int (luaopen_rock) (lua_State *L); -bool get_cur_path(lua_State *L, char* dest, size_t dest_size); +const char* get_current_path(lua_State *L, int level); #endif /* _ROCKLIB_H_ */ -- cgit v1.1