Lua: look for scripts also in ~/.proxmark/{luascripts,lualibs} and /usr/local/share/proxmark3/...

This commit is contained in:
Philippe Teuwen
2019-08-21 23:50:41 +02:00
parent a8ee33baf4
commit 3c6500a1b2
3 changed files with 52 additions and 16 deletions

View File

@@ -14,6 +14,8 @@
//#include <lualib.h>
//#include <lauxlib.h>
#define LUA_PM3_SYSTEM_DIRECTORY "/usr/local/share/proxmark3/"
#define LUA_PM3_USER_DIRECTORY "/.proxmark3/"
#define LUA_LIBRARIES_DIRECTORY "lualibs/"
#define LUA_SCRIPTS_DIRECTORY "luascripts/"
#define LUA_LIBRARIES_WILDCARD "?.lua"