mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 02:34:48 +08:00
use searchFile to find dictionaries
This commit is contained in:
parent
34a0fdb9d6
commit
8c26e07ceb
2 changed files with 2 additions and 1 deletions
|
@ -523,7 +523,7 @@ int loadFileDICTIONARY(const char *preferredName, void *data, size_t *datalen, u
|
||||||
|
|
||||||
|
|
||||||
if (data == NULL) return 1;
|
if (data == NULL) return 1;
|
||||||
char *fileName = filenamemcopy(preferredName, ".dic");
|
char *fileName = searchFile(DICTIONARIES_SUBDIR, ".dic", preferredName);
|
||||||
if (fileName == NULL) return 1;
|
if (fileName == NULL) return 1;
|
||||||
|
|
||||||
// t5577 == 4bytes
|
// t5577 == 4bytes
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#define PM3_USER_DIRECTORY "/.proxmark3/"
|
#define PM3_USER_DIRECTORY "/.proxmark3/"
|
||||||
|
|
||||||
// PM3 subdirectories:
|
// PM3 subdirectories:
|
||||||
|
#define DICTIONARIES_SUBDIR "dictionaries/"
|
||||||
#define LUA_LIBRARIES_SUBDIR "lualibs/"
|
#define LUA_LIBRARIES_SUBDIR "lualibs/"
|
||||||
#define LUA_SCRIPTS_SUBDIR "luascripts/"
|
#define LUA_SCRIPTS_SUBDIR "luascripts/"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue