mirror of
https://github.com/elua/elua.git
synced 2025-01-25 01:02:54 +08:00
?.lc added to LUA_PATH_DEFAULT, to allow Lua to require() files built with the new romfs=compile mode
This commit is contained in:
parent
f968670490
commit
7da38ff6c4
@ -90,7 +90,7 @@
|
|||||||
//## Modified for eLua
|
//## Modified for eLua
|
||||||
//## Defaults search modules path to our ROM File System
|
//## Defaults search modules path to our ROM File System
|
||||||
#ifndef LUA_RPC
|
#ifndef LUA_RPC
|
||||||
#define LUA_PATH_DEFAULT "/rom/?.lua"
|
#define LUA_PATH_DEFAULT "/rom/?.lua;/rom/?.lc"
|
||||||
#else
|
#else
|
||||||
#define LUA_PATH_DEFAULT \
|
#define LUA_PATH_DEFAULT \
|
||||||
".\\?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
|
".\\?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
|
||||||
@ -105,7 +105,7 @@
|
|||||||
#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
|
#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
|
||||||
|
|
||||||
#ifndef LUA_RPC
|
#ifndef LUA_RPC
|
||||||
#define LUA_PATH_DEFAULT "/rom/?.lua"
|
#define LUA_PATH_DEFAULT "/rom/?.lua;/rom/?.lc"
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#define LUA_PATH_DEFAULT \
|
#define LUA_PATH_DEFAULT \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user