forked from len0rd/rockbox
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
This commit is contained in:
parent
d5180f7870
commit
9bff845b49
5 changed files with 44 additions and 29 deletions
|
@ -29,7 +29,7 @@
|
|||
#undef luai_jmpbuf
|
||||
|
||||
#undef LUA_PATH_DEFAULT
|
||||
#define LUA_PATH_DEFAULT "./?.lua;" VIEWERS_DIR"/?.lua;"
|
||||
#define LUA_PATH_DEFAULT "$/?.lua;" VIEWERS_DIR"/?.lua;"
|
||||
|
||||
#ifndef SIMULATOR
|
||||
#include "../../codecs/lib/setjmp.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue