refactoring + make dictionary works
This commit is contained in:
@@ -842,8 +842,10 @@ static int CmdHFMFPChk(const char *cmd) {
|
||||
// dictionary mode
|
||||
if (dict_filenamelen) {
|
||||
size_t endFilePosition = 0;
|
||||
res = loadFileDICTIONARYEx((char *)dict_filename, keyList, sizeof(keyList), &keyListLen, 16, NULL, 0, &endFilePosition);
|
||||
printf("---endFilePosition %d", endFilePosition);
|
||||
uint16_t keycnt = 0;
|
||||
res = loadFileDICTIONARYEx((char *)dict_filename, keyList, sizeof(keyList), NULL, 16, &keycnt, 0, &endFilePosition);
|
||||
keyListLen = keycnt;
|
||||
printf("---endFilePosition %d\n", endFilePosition);
|
||||
}
|
||||
|
||||
if (keyListLen == 0) {
|
||||
@@ -870,6 +872,8 @@ static int CmdHFMFPChk(const char *cmd) {
|
||||
Fill2bPattern(keyList, &keyListLen, &startPattern);
|
||||
continue;
|
||||
}
|
||||
if (dict_filenamelen) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user