DiscScrubber: Deduplicate code for writing to file

This commit is contained in:
JosJuice
2017-06-17 13:37:33 +02:00
parent 1f31390b54
commit 89c901780e
2 changed files with 33 additions and 47 deletions

View File

@ -16,6 +16,8 @@ class Volume;
u64 ReadFile(const Volume& volume, const Partition& partition, const FileInfo* file_info,
u8* buffer, u64 max_buffer_size, u64 offset_in_file = 0);
bool ExportData(const Volume& volume, const Partition& partition, u64 offset, u64 size,
const std::string& export_filename);
bool ExportFile(const Volume& volume, const Partition& partition, const FileInfo* file_info,
const std::string& export_filename);
bool ExportApploader(const Volume& volume, const Partition& partition,