X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/a0655c45bd7092c302145ea306b7b58662e6c9f5..c6e2bfcda1d13453fe6bf1192422f0974a412dbb:/client/cmdscript.c diff --git a/client/cmdscript.c b/client/cmdscript.c index f9bbe56e..86cb91b4 100644 --- a/client/cmdscript.c +++ b/client/cmdscript.c @@ -24,6 +24,7 @@ #include "cmdmain.h" #include "cmdscript.h" #include "cmdhfmf.h" +#include "pm3_binlib.h" #include #include @@ -210,6 +211,10 @@ int CmdRun(const char *Cmd) //Sets the 'command line' libraries, basically just the commandline stuff set_cmdlibraries(lua_state); + + //Add the 'bin' library + set_bin_library(lua_state); + char cmd_name[32]; int len = 0; memset(cmd_name, 0, 32); @@ -218,7 +223,7 @@ int CmdRun(const char *Cmd) char buf[256]; snprintf(buf, sizeof buf, "./scripts/%s", cmd_name); - printf("Executing file '%s'\n---------------------------\n" , cmd_name); + printf("-----Executing file '%s'\n" , cmd_name); // run the Lua script int error = luaL_loadfile(lua_state, buf); @@ -241,6 +246,6 @@ int CmdRun(const char *Cmd) //luaL_dofile(lua_state, buf); // close the Lua state lua_close(lua_state); - printf("-----------------Finished\n"); + printf("\n-----Finished\n"); }