mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
ADD: num_CPUs(void) method from pm3 master
CHG: clean up in util.c ADD: seems like mingw doesn't have scandir. Had to add one. *untested*
This commit is contained in:
parent
f942e1ed05
commit
8f262aa1bf
6 changed files with 150 additions and 20 deletions
|
@ -33,6 +33,10 @@
|
|||
#include <lualib.h>
|
||||
#include <lauxlib.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "scandir.h"
|
||||
#endif
|
||||
|
||||
static int CmdHelp(const char *Cmd);
|
||||
static int CmdList(const char *Cmd);
|
||||
static int CmdRun(const char *Cmd);
|
||||
|
@ -92,7 +96,7 @@ int CmdList(const char *Cmd) {
|
|||
|
||||
for (uint16_t i = 0; i < n; i++) {
|
||||
if(str_ends_with(namelist[i]->d_name, ".lua"))
|
||||
PrintAndLog("%-21s %s", namelist[i]->d_name, "A script file");
|
||||
PrintAndLog("%-21s", namelist[i]->d_name);
|
||||
free(namelist[i]);
|
||||
}
|
||||
free(namelist);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue