dep/libchdr: Add chd_precache_progress()

Alternative which reports back as the file is read.
This commit is contained in:
Connor McLaughlin
2022-04-03 20:54:53 +10:00
parent bceca040d9
commit ec9411c0a7
3 changed files with 37 additions and 26 deletions

View File

@@ -375,6 +375,7 @@ CHD_EXPORT chd_error chd_open(const char *filename, int mode, chd_file *parent,
/* precache underlying file */
CHD_EXPORT chd_error chd_precache(chd_file *chd);
CHD_EXPORT chd_error chd_precache_progress(chd_file* chd, void(*progress)(size_t pos, size_t total, void* param), void* param);
/* close a CHD file */
CHD_EXPORT void chd_close(chd_file *chd);