mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 22:01:38 +00:00
DiscExtractor: Pass partition by reference rather than by value in ExtractDirectory()
This commit is contained in:
parent
ac97f0463f
commit
fc531993a9
2 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ bool ExportFile(const Volume& volume, const Partition& partition, const std::str
|
||||||
return ExportFile(volume, partition, file_system->FindFileInfo(path).get(), export_filename);
|
return ExportFile(volume, partition, file_system->FindFileInfo(path).get(), export_filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ExportDirectory(const Volume& volume, const Partition partition, const FileInfo& directory,
|
void ExportDirectory(const Volume& volume, const Partition& partition, const FileInfo& directory,
|
||||||
bool recursive, const std::string& filesystem_path,
|
bool recursive, const std::string& filesystem_path,
|
||||||
const std::string& export_folder,
|
const std::string& export_folder,
|
||||||
const std::function<bool(const std::string& path)>& update_progress)
|
const std::function<bool(const std::string& path)>& update_progress)
|
||||||
|
|
|
@ -31,7 +31,7 @@ bool ExportFile(const Volume& volume, const Partition& partition, const std::str
|
||||||
// update_progress is called once for each child (file or directory).
|
// update_progress is called once for each child (file or directory).
|
||||||
// If update_progress returns true, the extraction gets cancelled.
|
// If update_progress returns true, the extraction gets cancelled.
|
||||||
// filesystem_path is supposed to be the path corresponding to the directory argument.
|
// filesystem_path is supposed to be the path corresponding to the directory argument.
|
||||||
void ExportDirectory(const Volume& volume, const Partition partition, const FileInfo& directory,
|
void ExportDirectory(const Volume& volume, const Partition& partition, const FileInfo& directory,
|
||||||
bool recursive, const std::string& filesystem_path,
|
bool recursive, const std::string& filesystem_path,
|
||||||
const std::string& export_folder,
|
const std::string& export_folder,
|
||||||
const std::function<bool(const std::string& path)>& update_progress);
|
const std::function<bool(const std::string& path)>& update_progress);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue