mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-03 08:39:04 +00:00
Fix DLCs not imported correctly, fix progress not reported correctly
This commit is contained in:
@@ -35,13 +35,22 @@ public:
|
||||
|
||||
void Abort();
|
||||
|
||||
/// Reset the imported_size counter for this content and set a new total_size.
|
||||
void Reset(std::size_t total_size);
|
||||
|
||||
private:
|
||||
static constexpr std::size_t BufferSize = 16 * 1024; // 16 KB
|
||||
|
||||
std::string root_folder;
|
||||
std::string source;
|
||||
std::string destination;
|
||||
|
||||
// Total size of this content, may consist of multiple files
|
||||
std::size_t total_size{};
|
||||
// Total size of the current file to process
|
||||
std::size_t current_total_size{};
|
||||
// Total imported size for this content
|
||||
std::size_t imported_size{};
|
||||
|
||||
std::array<std::array<u8, BufferSize>, 3> buffers;
|
||||
std::array<Common::Event, 3> data_read_event;
|
||||
|
||||
Reference in New Issue
Block a user