Add support for new rjp api

This commit is contained in:
rexy712 2019-11-09 21:18:00 -08:00
parent f868074f0c
commit 2e0ee84ca7

View File

@ -149,7 +149,13 @@ void save_restore_file(struct string_array* devices, struct arg_values* args){
}
free_cmd_args(args);
#ifdef RJP_FORMAT_NONE
//new rjp api
char* tmp = rjp_to_json(rf, RJP_FORMAT_NONE);
#else
//old rjp api
char* tmp = rjp_to_json(rf);
#endif
char* rfil = restore_file();
FILE* restf = fopen(rfil, "w");
if(!restf){