| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <functional> |
| 7 |
#include <string> |
| 8 |
#include <string_view> |
| 9 |
|
| 10 |
#include "Common/CommonTypes.h" |
| 11 |
|
| 12 |
namespace DiscIO |
| 13 |
{ |
| 14 |
class FileInfo; |
| 15 |
struct Partition; |
| 16 |
class Volume; |
| 17 |
|
| 18 |
u64 ReadFile(const Volume& volume, const Partition& partition, const FileInfo* file_info, |
| 19 |
u8* buffer, u64 max_buffer_size, u64 offset_in_file = 0); |
| 20 |
u64 ReadFile(const Volume& volume, const Partition& partition, std::string_view path, u8* buffer, |
| 21 |
u64 max_buffer_size, u64 offset_in_file = 0); |
| 22 |
bool ExportData(const Volume& volume, const Partition& partition, u64 offset, u64 size, |
| 23 |
const std::string& export_filename); |
| 24 |
bool ExportFile(const Volume& volume, const Partition& partition, const FileInfo* file_info, |
| 25 |
const std::string& export_filename); |
| 26 |
bool ExportFile(const Volume& volume, const Partition& partition, std::string_view path, |
| 27 |
const std::string& export_filename); |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
void ExportDirectory(const Volume& volume, const Partition& partition, const FileInfo& directory, |
| 33 |
bool recursive, const std::string& filesystem_path, |
| 34 |
const std::string& export_folder, |
| 35 |
const std::function<bool(const std::string& path)>& update_progress); |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
bool ExportWiiUnencryptedHeader(const Volume& volume, const std::string& export_filename); |
| 40 |
bool ExportWiiRegionData(const Volume& volume, const std::string& export_filename); |
| 41 |
|
| 42 |
bool ExportTicket(const Volume& volume, const Partition& partition, |
| 43 |
const std::string& export_filename); |
| 44 |
bool ExportTMD(const Volume& volume, const Partition& partition, |
| 45 |
const std::string& export_filename); |
| 46 |
bool ExportCertificateChain(const Volume& volume, const Partition& partition, |
| 47 |
const std::string& export_filename); |
| 48 |
bool ExportH3Hashes(const Volume& volume, const Partition& partition, |
| 49 |
const std::string& export_filename); |
| 50 |
|
| 51 |
bool ExportHeader(const Volume& volume, const Partition& partition, |
| 52 |
const std::string& export_filename); |
| 53 |
bool ExportBI2Data(const Volume& volume, const Partition& partition, |
| 54 |
const std::string& export_filename); |
| 55 |
bool ExportApploader(const Volume& volume, const Partition& partition, |
| 56 |
const std::string& export_filename); |
| 57 |
bool ExportDOL(const Volume& volume, const Partition& partition, |
| 58 |
const std::string& export_filename); |
| 59 |
bool ExportFST(const Volume& volume, const Partition& partition, |
| 60 |
const std::string& export_filename); |
| 61 |
|
| 62 |
bool ExportSystemData(const Volume& volume, const Partition& partition, |
| 63 |
const std::string& export_folder); |
| 64 |
|
| 65 |
} |