summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklib.h
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-07-01 17:01:22 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-07-01 17:01:22 +0000
commit9bff845b49e277af46d6b7a09bb111472f3d3f49 (patch)
tree8277c6a4b2ac95c231ad249b63bf30ab11869a37 /apps/plugins/lua/rocklib.h
parentd5180f7870643e19c37b62909d0e0c545cc23337 (diff)
downloadrockbox-9bff845b49e277af46d6b7a09bb111472f3d3f49.tar.gz
rockbox-9bff845b49e277af46d6b7a09bb111472f3d3f49.zip
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
Diffstat (limited to 'apps/plugins/lua/rocklib.h')
-rw-r--r--apps/plugins/lua/rocklib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lua/rocklib.h b/apps/plugins/lua/rocklib.h
index 4a1e79cc8a..84b5fd2de0 100644
--- a/apps/plugins/lua/rocklib.h
+++ b/apps/plugins/lua/rocklib.h
@@ -24,7 +24,7 @@
24 24
25#define LUA_ROCKLIBNAME "rb" 25#define LUA_ROCKLIBNAME "rb"
26LUALIB_API int (luaopen_rock) (lua_State *L); 26LUALIB_API int (luaopen_rock) (lua_State *L);
27bool get_cur_path(lua_State *L, char* dest, size_t dest_size); 27const char* get_current_path(lua_State *L, int level);
28 28
29#endif /* _ROCKLIB_H_ */ 29#endif /* _ROCKLIB_H_ */
30 30