diff options
| author | JosJuice <josjuice@gmail.com> | 2017-06-17 12:37:30 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-06-28 22:21:23 +0200 |
| commit | d06b532150bbf969476f73ea93213c65e203558c (patch) | |
| tree | cac2ef4c951aca4808052523b448aff7297effe4 /Source/Core/DiscIO/DiscExtractor.h | |
| parent | 23bb029250ddd3b71310c83ee977ba41bf75314f (diff) | |
DiscIO: Move parts of Filesystem to the new file DiscExtractor
Diffstat (limited to 'Source/Core/DiscIO/DiscExtractor.h')
| -rw-r--r-- | Source/Core/DiscIO/DiscExtractor.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/DiscExtractor.h b/Source/Core/DiscIO/DiscExtractor.h new file mode 100644 index 0000000000..e5d80a13ce --- /dev/null +++ b/Source/Core/DiscIO/DiscExtractor.h @@ -0,0 +1,27 @@ +// Copyright 2017 Dolphin Emulator Project +// Licensed under GPLv2+ +// Refer to the license.txt file included. + +#pragma once + +#include <optional> + +#include "Common/CommonTypes.h" + +namespace DiscIO +{ +class FileInfo; +struct Partition; +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 ExportFile(const Volume& volume, const Partition& partition, const FileInfo* file_info, + const std::string& export_filename); +bool ExportApploader(const Volume& volume, const Partition& partition, + const std::string& export_folder); +std::optional<u64> GetBootDOLOffset(const Volume& volume, const Partition& partition); +std::optional<u32> GetBootDOLSize(const Volume& volume, const Partition& partition, u64 dol_offset); +bool ExportDOL(const Volume& volume, const Partition& partition, const std::string& export_folder); + +} // namespace DiscIO |
