Skip to content

Commit

Permalink
Fixed a bug in the path
Browse files Browse the repository at this point in the history
  • Loading branch information
firew0lf committed Oct 4, 2015
1 parent 4aad32d commit 410b736
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions libs/lua-5.3.1/src/luaconf.h
Expand Up @@ -167,40 +167,17 @@
** hierarchy or if you want to install your libraries in
** non-conventional directories.
*/
#define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR
#if defined(_WIN32) /* { */
/*
** In Windows, any exclamation mark ('!') in the path is replaced by the
** path of the directory of the executable file of the current process.
*/
#define LUA_LDIR "!\\lua\\"
#define LUA_CDIR "!\\"
#define LUA_SHRDIR "!\\..\\share\\lua\\" LUA_VDIR "\\"
#define LUA_PATH_DEFAULT \
LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua;" \
LUA_SHRDIR"?.lua;" LUA_SHRDIR"?\\init.lua;" \
".\\?.lua;" ".\\?\\init.lua"
#define LUA_CPATH_DEFAULT \
LUA_CDIR"?.dll;" \
LUA_CDIR"..\\lib\\lua\\" LUA_VDIR "\\?.dll;" \
LUA_CDIR"loadall.dll;" ".\\?.dll"

#else /* }{ */
#define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "/"

#define LUA_ROOT "sdmc:/"
#define LUA_LDIR LUA_ROOT "3ds/ctruLua/libs/"
#define LUA_CDIR LUA_ROOT "3ds/ctruLua/libs/"
#define LUA_PATH_DEFAULT \
LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
LUA_LDIR LUA_VDIR"?.lua;" LUA_LDIR LUA_VDIR"?/init.lua;" \
/* LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \
LUA_CDIR LUA_VDIR"?.lua;" LUA_CDIR LUA_VDIR"?/init.lua;" */ \
"./?.lua;" "./?/init.lua"
#define LUA_CPATH_DEFAULT \
LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"
#endif /* } */


/*
@@ LUA_DIRSEP is the directory separator (for submodules).
Expand Down

0 comments on commit 410b736

Please sign in to comment.