mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 12:05:11 +00:00
Display uncompress error
This commit is contained in:
parent
9fab95a6e5
commit
5d1aa7ea6d
1 changed files with 6 additions and 2 deletions
|
@ -214,10 +214,14 @@ BinFile *DynOS_Bin_Decompress(const SysPath &aFilename) {
|
||||||
)) return NULL;
|
)) return NULL;
|
||||||
|
|
||||||
// Uncompress data
|
// Uncompress data
|
||||||
|
int uncompressRc = uncompress(sBufferUncompressed, &sLengthUncompressed, sBufferCompressed, sLengthCompressed);
|
||||||
if (!DynOS_Bin_Compress_Check(
|
if (!DynOS_Bin_Compress_Check(
|
||||||
uncompress(sBufferUncompressed, &sLengthUncompressed, sBufferCompressed, sLengthCompressed) == Z_OK,
|
uncompressRc == Z_OK,
|
||||||
__FUNCTION__, aFilename.c_str(), "Cannot uncompress data"
|
__FUNCTION__, aFilename.c_str(), "Cannot uncompress data"
|
||||||
)) return NULL;
|
)) {
|
||||||
|
Print("ERROR: uncompress RC: %d", uncompressRc);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// Return uncompressed data as a BinFile
|
// Return uncompressed data as a BinFile
|
||||||
BinFile *_BinFile = BinFile::OpenB(sBufferUncompressed, sLengthUncompressed);
|
BinFile *_BinFile = BinFile::OpenB(sBufferUncompressed, sLengthUncompressed);
|
||||||
|
|
Loading…
Reference in a new issue