mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 02:05:46 -04:00
dep/libchdr: Add chd_get_compressed_size()
This commit is contained in:
@ -1952,6 +1952,14 @@ CHD_EXPORT core_file *chd_core_file(chd_file *chd)
|
||||
return chd->file;
|
||||
}
|
||||
|
||||
CHD_EXPORT UINT64 chd_get_compressed_size(chd_file *chd)
|
||||
{
|
||||
UINT64 size = chd->file->fsize(chd->file);
|
||||
if (chd->parent)
|
||||
size += chd_get_compressed_size(chd->parent);
|
||||
return size;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------
|
||||
chd_error_string - return an error string for
|
||||
the given CHD error
|
||||
|
Reference in New Issue
Block a user