]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdscript.c
Fixed some kind of of linking error
[proxmark3-svn] / client / cmdscript.c
index f9bbe56e0ed61a50b1bf8dbe4b6b31251c21d20b..86cb91b49aeedc10640c4fc4ea05686a2926755b 100644 (file)
@@ -24,6 +24,7 @@
 #include "cmdmain.h"
 #include "cmdscript.h"
 #include "cmdhfmf.h"
+#include "pm3_binlib.h"
 
 #include <lua.h>
 #include <lualib.h>
@@ -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");
 }
 
Impressum, Datenschutz