#include "cmdmain.h"
#include "cmdscript.h"
#include "cmdhfmf.h"
+#include "pm3_binlib.h"
#include <lua.h>
#include <lualib.h>
//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);
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);
//luaL_dofile(lua_state, buf);
// close the Lua state
lua_close(lua_state);
- printf("-----------------Finished\n");
+ printf("\n-----Finished\n");
}