mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
reorder of file types (if extension is neither bin nor eml -> json is assumed)
This commit is contained in:
parent
bc87a6edf2
commit
3a698dfc0c
1 changed files with 3 additions and 3 deletions
|
@ -975,10 +975,10 @@ int CmdEM4x50Restore(const char *Cmd) {
|
||||||
ext[5] = 0x00;
|
ext[5] = 0x00;
|
||||||
if (memcmp(ext, ".eml", 4) == 0)
|
if (memcmp(ext, ".eml", 4) == 0)
|
||||||
res = loadFileEML(filename, etd.data, &bytes_read) != PM3_SUCCESS;
|
res = loadFileEML(filename, etd.data, &bytes_read) != PM3_SUCCESS;
|
||||||
else if (memcmp(ext, ".json", 5) == 0)
|
else if (memcmp(ext, ".bin", 4) == 0)
|
||||||
res = loadFileJSON(filename, etd.data, sizeof(etd.data), &bytes_read, NULL);
|
|
||||||
else
|
|
||||||
res = loadFile(filename, ".bin", etd.data, sizeof(etd.data), &bytes_read);
|
res = loadFile(filename, ".bin", etd.data, sizeof(etd.data), &bytes_read);
|
||||||
|
else
|
||||||
|
res = loadFileJSON(filename, etd.data, sizeof(etd.data), &bytes_read, NULL);
|
||||||
|
|
||||||
if ((res != PM3_SUCCESS) && (bytes_read != DUMP_FILESIZE)) {
|
if ((res != PM3_SUCCESS) && (bytes_read != DUMP_FILESIZE)) {
|
||||||
PrintAndLogEx(FAILED, "Read error");
|
PrintAndLogEx(FAILED, "Read error");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue