1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-22 18:26:39 +00:00

config: add append_authoringtool_data boolean.

This commit is contained in:
Pablo Curiel 2021-08-03 00:22:33 -04:00
parent 962cf00ba9
commit 7c5aae39e6
3 changed files with 5 additions and 3 deletions

View file

@ -18,6 +18,7 @@
"enable_screenshots": false, "enable_screenshots": false,
"enable_video_capture": false, "enable_video_capture": false,
"disable_hdcp": false, "disable_hdcp": false,
"append_authoringtool_data": true,
"lookup_checksum": true "lookup_checksum": true
}, },
"ticket": { "ticket": {

View file

@ -281,7 +281,7 @@ end:
static bool configValidateJsonNspObject(const struct json_object *obj) static bool configValidateJsonNspObject(const struct json_object *obj)
{ {
bool ret = false, set_download_distribution_found = false, remove_console_data_found = false, remove_titlekey_crypto_found = false, replace_acid_key_sig_found = false; bool ret = false, set_download_distribution_found = false, remove_console_data_found = false, remove_titlekey_crypto_found = false, replace_acid_key_sig_found = false;
bool disable_linked_account_requirement_found = false, enable_screenshots_found = false, enable_video_capture_found = false, disable_hdcp_found = false, lookup_checksum_found = false; bool disable_linked_account_requirement_found = false, enable_screenshots_found = false, enable_video_capture_found = false, disable_hdcp_found = false, append_authoringtool_data_found = false, lookup_checksum_found = false;
if (!configValidateJsonObject(obj)) goto end; if (!configValidateJsonObject(obj)) goto end;
@ -296,11 +296,12 @@ static bool configValidateJsonNspObject(const struct json_object *obj)
JSON_VALIDATE_FIELD(Boolean, enable_video_capture); JSON_VALIDATE_FIELD(Boolean, enable_video_capture);
JSON_VALIDATE_FIELD(Boolean, disable_hdcp); JSON_VALIDATE_FIELD(Boolean, disable_hdcp);
JSON_VALIDATE_FIELD(Boolean, lookup_checksum); JSON_VALIDATE_FIELD(Boolean, lookup_checksum);
JSON_VALIDATE_FIELD(Boolean, append_authoringtool_data);
goto end; goto end;
} }
ret = (set_download_distribution_found && remove_console_data_found && remove_titlekey_crypto_found && replace_acid_key_sig_found && disable_linked_account_requirement_found && \ ret = (set_download_distribution_found && remove_console_data_found && remove_titlekey_crypto_found && replace_acid_key_sig_found && disable_linked_account_requirement_found && \
enable_screenshots_found && enable_video_capture_found && disable_hdcp_found && lookup_checksum_found); enable_screenshots_found && enable_video_capture_found && disable_hdcp_found && append_authoringtool_data_found && lookup_checksum_found);
end: end:
return ret; return ret;

View file

@ -599,7 +599,7 @@ bool utilsGetFileSystemStatsByPath(const char *path, u64 *out_total, u64 *out_fr
if ((ret = statvfs(stat_path, &info)) != 0) if ((ret = statvfs(stat_path, &info)) != 0)
{ {
LOG_MSG("statvfs failed! (%d) (errno: %d).", ret, errno); LOG_MSG("statvfs failed for \"%s\"! (%d) (errno: %d).", stat_path, ret, errno);
return false; return false;
} }