NANDImporter: Use a indeterminate progress meter

This commit is contained in:
Starsam80
2017-05-06 21:26:46 -06:00
parent 4dce620130
commit 618eb9f743
3 changed files with 13 additions and 35 deletions

View File

@ -18,8 +18,7 @@ public:
NANDImporter();
~NANDImporter();
void ImportNANDBin(const std::string& path_to_bin,
std::function<void(size_t, size_t)> update_callback);
void ImportNANDBin(const std::string& path_to_bin, std::function<void()> update_callback);
void ExtractCertificates(const std::string& nand_root);
private:
@ -46,15 +45,11 @@ private:
void ProcessFile(const NANDFSTEntry& entry, const std::string& parent_path);
void ProcessDirectory(const NANDFSTEntry& entry, const std::string& parent_path);
void ExportKeys(const std::string& nand_root);
void CountEntries(u16 entry_number);
void UpdateStatus();
std::vector<u8> m_nand;
std::vector<u8> m_nand_keys;
size_t m_nand_fat_offset = 0;
size_t m_nand_fst_offset = 0;
std::function<void(size_t, size_t)> m_update_callback;
size_t m_total_entries = 0;
size_t m_current_entry = 0;
std::function<void()> m_update_callback;
};
}