mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 07:09:03 +00:00
Display error messages when failing to compress/decompress games.
Fixes issue 4681.
This commit is contained in:
parent
32855a289c
commit
6598462aba
2 changed files with 25 additions and 5 deletions
|
@ -296,9 +296,13 @@ bool DecompressBlobToFile(const char* infile, const char* outfile, CompressCB ca
|
|||
}
|
||||
|
||||
CompressedBlobReader* reader = CompressedBlobReader::Create(infile);
|
||||
if (!reader) return false;
|
||||
if (!reader)
|
||||
return false;
|
||||
|
||||
File::IOFile f(outfile, "wb");
|
||||
if (!f)
|
||||
return false;
|
||||
|
||||
const CompressedBlobHeader &header = reader->GetHeader();
|
||||
u8* buffer = new u8[header.block_size];
|
||||
int progress_monitor = max<int>(1, header.num_blocks / 100);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue