Skip to content

Commit 294d97c

Browse files
committed
Use better default paths for lua modules
Closes dail8859#73
1 parent 9119bad commit 294d97c

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/lua/src/luaconf.h

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -185,18 +185,14 @@
185185
** In Windows, any exclamation mark ('!') in the path is replaced by the
186186
** path of the directory of the executable file of the current process.
187187
*/
188-
#define LUA_LDIR"!\\lua\\"
189-
#define LUA_CDIR"!\\"
190-
#define LUA_SHRDIR"!\\..\\share\\lua\\" LUA_VDIR "\\"
188+
#define LUA_LSDIR "!\\plugins\\LuaScript\\"
189+
#define LUA_CDIR LUA_LSDIR"lib\\"
190+
#define LUA_LDIR LUA_CDIR"lua\\"
191191
#define LUA_PATH_DEFAULT \
192-
LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
193-
LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua;" \
194-
LUA_SHRDIR"?.lua;" LUA_SHRDIR"?\\init.lua;" \
195-
".\\?.lua;" ".\\?\\init.lua"
192+
LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
193+
LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua;"
196194
#define LUA_CPATH_DEFAULT \
197-
LUA_CDIR"?.dll;" \
198-
LUA_CDIR"..\\lib\\lua\\" LUA_VDIR "\\?.dll;" \
199-
LUA_CDIR"loadall.dll;" ".\\?.dll"
195+
LUA_CDIR"?.dll;" LUA_CDIR"?\\loadall.dll;"
200196

201197
#else/* }{ */
202198

0 commit comments

Comments
 (0)