Adapted to new version of the library.
This commit is contained in:
parent
50a8161af8
commit
bb6f6f49b2
|
@ -231,7 +231,7 @@ int main(int ac, char **av)
|
|||
}
|
||||
|
||||
/* send the file */
|
||||
err = p7_sendstream(handle, args.local, filesize,
|
||||
err = p7_sendfile(handle, args.local,
|
||||
args.dirname, args.filename,
|
||||
args.storage, 1, args.force ? NULL : &sendfile_confirm,
|
||||
args.nicedisp ? &sendfile_display : NULL);
|
||||
|
@ -242,15 +242,15 @@ int main(int ac, char **av)
|
|||
? &sendfile_display : NULL);
|
||||
break;
|
||||
case mn_copy:
|
||||
err = p7_copyfile(handle, args.dirname, args.filename,
|
||||
err = p7_copy(handle, args.dirname, args.filename,
|
||||
args.newdir, args.newname, args.storage);
|
||||
break;
|
||||
case mn_del:
|
||||
err = p7_delfile(handle, args.dirname, args.filename,
|
||||
err = p7_delete(handle, args.dirname, args.filename,
|
||||
args.storage);
|
||||
break;
|
||||
case mn_ls:
|
||||
err = p7_lsfiles(handle, args.storage, &print_file_info, NULL);
|
||||
err = p7_list(handle, args.storage, &print_file_info, NULL);
|
||||
break;
|
||||
case mn_reset:
|
||||
err = p7_resetflash(handle, args.storage);
|
||||
|
|
|
@ -151,7 +151,7 @@ int main(int ac, char **av)
|
|||
case mn_get:
|
||||
/* get the os */
|
||||
printf("Gathering the OS...\n");
|
||||
err = p7_backup_rom(handle, args.local, osdisp);
|
||||
err = p7_backup_romfile(handle, args.local, osdisp);
|
||||
if (err) goto fail;
|
||||
fclose(args.local);
|
||||
break;
|
||||
|
|
|
@ -57,8 +57,7 @@ int prepare_ops(p7_handle_t *handle, FILE *uexe, void (*disp)())
|
|||
}
|
||||
|
||||
/* send the thing */
|
||||
if ((err = p7_sendexe_stream(handle, uexe, (p7uint_t)usize,
|
||||
0x88030000, 0x88030000, disp))) {
|
||||
if ((err = p7_sendexe_file(handle, uexe, 0x88030000, 0x88030000, disp))) {
|
||||
fclose(uexe);
|
||||
return (err);
|
||||
}
|
||||
|
|
Reference in New Issue