small fixes. done
This commit is contained in:
@@ -200,6 +200,10 @@ int saveFileJSON(const char *preferredName, const char *suffix, JSONFileType fty
|
|||||||
sprintf(path, "$.SectorKeys.%d.AccessConditionsText.block%d", mfSectorNum(i), i);
|
sprintf(path, "$.SectorKeys.%d.AccessConditionsText.block%d", mfSectorNum(i), i);
|
||||||
JsonSaveStr(root, path, mfGetAccessConditionsDesc(3, adata));
|
JsonSaveStr(root, path, mfGetAccessConditionsDesc(3, adata));
|
||||||
|
|
||||||
|
memset(path, 0x00, sizeof(path));
|
||||||
|
sprintf(path, "$.SectorKeys.%d.AccessConditionsText.UserData", mfSectorNum(i));
|
||||||
|
JsonSaveBufAsHexCompact(root, path, &adata[3], 1);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -369,7 +373,6 @@ int loadFileJSON(const char *preferredName, const char *suffix, void* data, size
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!strcmp(ctype, "mfcard")) {
|
if (!strcmp(ctype, "mfcard")) {
|
||||||
printf("--mfcard--\n");
|
|
||||||
size_t sptr = 0;
|
size_t sptr = 0;
|
||||||
for (int i = 0; i < 256; i++) {
|
for (int i = 0; i < 256; i++) {
|
||||||
if (sptr + 16 > maxdatalen) {
|
if (sptr + 16 > maxdatalen) {
|
||||||
@@ -384,7 +387,6 @@ int loadFileJSON(const char *preferredName, const char *suffix, void* data, size
|
|||||||
JsonLoadBufAsHex(root, path, &udata[sptr], 16, &len);
|
JsonLoadBufAsHex(root, path, &udata[sptr], 16, &len);
|
||||||
if (!len)
|
if (!len)
|
||||||
break;
|
break;
|
||||||
printf("--- (%d) (%d) %s \n", i, len, sprint_hex(&udata[sptr], len));
|
|
||||||
|
|
||||||
sptr += len;
|
sptr += len;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user