DolphinWX: Allow cancelling gcz compression.

This commit is contained in:
Unknown W. Brackets
2014-11-27 07:53:28 -08:00
parent f151f5ed23
commit f2f83a0c60
4 changed files with 41 additions and 15 deletions

View File

@ -66,7 +66,7 @@ private:
// Factory function - examines the path to choose the right type of IBlobReader, and returns one.
IBlobReader* CreateBlobReader(const std::string& filename);
typedef void (*CompressCB)(const std::string& text, float percent, void* arg);
typedef bool (*CompressCB)(const std::string& text, float percent, void* arg);
bool CompressFileToBlob(const std::string& infile, const std::string& outfile, u32 sub_type = 0, int sector_size = 16384,
CompressCB callback = nullptr, void *arg = nullptr);