mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
Concept
This commit is contained in:
parent
108b426c98
commit
8fea6cddf7
8 changed files with 242 additions and 2 deletions
|
@ -52,6 +52,9 @@
|
|||
|
||||
#define PATH_MAX_LENGTH 200
|
||||
|
||||
extern void JsonLoadSettingsCallback (json_t *root);
|
||||
extern void JsonSaveSettingsCallback (json_t *root);
|
||||
|
||||
struct wave_info_t {
|
||||
char signature[4];
|
||||
uint32_t filesize;
|
||||
|
@ -425,6 +428,9 @@ int saveFileJSON(const char *preferredName, JSONFileType ftype, uint8_t *data, s
|
|||
}
|
||||
}
|
||||
break;
|
||||
case jsfSettings:
|
||||
JsonSaveSettingsCallback (root);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -863,7 +869,9 @@ int loadFileJSON(const char *preferredName, void *data, size_t maxdatalen, size_
|
|||
}
|
||||
*datalen = sptr;
|
||||
}
|
||||
|
||||
if (!strcmp(ctype,"settings")) {
|
||||
JsonLoadSettingsCallback (root);
|
||||
}
|
||||
PrintAndLogEx(SUCCESS, "loaded from JSON file " _YELLOW_("%s"), fileName);
|
||||
out:
|
||||
json_decref(root);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue