forked from len0rd/rockbox
Lua:
* add ./?/init.lua to the search path for require * put Lua libs in /.rockbox/rocks/viewers/lua/ git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21739 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8866342b1f
commit
80b4e5d55d
2 changed files with 3 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
||||||
#undef luai_jmpbuf
|
#undef luai_jmpbuf
|
||||||
|
|
||||||
#undef LUA_PATH_DEFAULT
|
#undef LUA_PATH_DEFAULT
|
||||||
#define LUA_PATH_DEFAULT "$/?.lua;" VIEWERS_DIR"/?.lua;"
|
#define LUA_PATH_DEFAULT "$/?.lua;" "$/?/init.lua;" VIEWERS_DIR"/lua/?.lua;" VIEWERS_DIR"/lua/?/init.lua;"
|
||||||
|
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
#include "../../codecs/lib/setjmp.h"
|
#include "../../codecs/lib/setjmp.h"
|
||||||
|
|
|
@ -429,7 +429,8 @@ STOP
|
||||||
glob_copy('apps/lang/*lng', "$rbdir/langs/");
|
glob_copy('apps/lang/*lng', "$rbdir/langs/");
|
||||||
|
|
||||||
# copy the .lua files
|
# copy the .lua files
|
||||||
glob_copy('apps/plugins/lua/*.lua', "$rbdir/rocks/viewers/");
|
mkdir "$rbdir/rocks/viewers/lua/", 0777;
|
||||||
|
glob_copy('apps/plugins/lua/*.lua', "$rbdir/rocks/viewers/lua/");
|
||||||
}
|
}
|
||||||
|
|
||||||
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
|
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue