From 6d5199264895f007b9714d448519f5fafec00fa6 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 18 Jun 2017 13:20:54 +0200 Subject: Move ExtractDir from FilesystemPanel to DiscExtractor --- Source/Core/DiscIO/DiscExtractor.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Source/Core/DiscIO/DiscExtractor.h') diff --git a/Source/Core/DiscIO/DiscExtractor.h b/Source/Core/DiscIO/DiscExtractor.h index 6061075b9f..1372f2a8cd 100644 --- a/Source/Core/DiscIO/DiscExtractor.h +++ b/Source/Core/DiscIO/DiscExtractor.h @@ -4,6 +4,7 @@ #pragma once +#include #include #include "Common/CommonTypes.h" @@ -20,6 +21,15 @@ bool ExportData(const Volume& volume, const Partition& partition, u64 offset, u6 const std::string& export_filename); bool ExportFile(const Volume& volume, const Partition& partition, const FileInfo* file_info, const std::string& export_filename); + +// update_progress is called once for each child (file or directory). +// If update_progress returns true, the extraction gets cancelled. +// filesystem_path is supposed to be the path corresponding to the directory argument. +void ExportDirectory(const Volume& volume, const Partition partition, const FileInfo& directory, + bool recursive, const std::string& filesystem_path, + const std::string& export_folder, + const std::function& update_progress); + bool ExportApploader(const Volume& volume, const Partition& partition, const std::string& export_filename); std::optional GetBootDOLOffset(const Volume& volume, const Partition& partition); -- cgit v1.2.3