diff options
author | Autechre | 2020-11-04 22:51:38 +0100 |
---|---|---|
committer | GitHub | 2020-11-04 22:51:38 +0100 |
commit | 8b1966efee9bd5da1a882ea82d780022d6f6bb0c (patch) | |
tree | 4d9d6e6227faee8b316fe039e9ee6a21b627a537 /libpcsxcore/cdriso.c | |
parent | 96b0d7854b486457c3af6180ebf5560c94df9158 (diff) | |
parent | 1d2757f476f5c10229e10fa16107d73b0c801fa5 (diff) | |
download | pcsx_rearmed-8b1966efee9bd5da1a882ea82d780022d6f6bb0c.tar.gz pcsx_rearmed-8b1966efee9bd5da1a882ea82d780022d6f6bb0c.tar.bz2 pcsx_rearmed-8b1966efee9bd5da1a882ea82d780022d6f6bb0c.zip |
Merge pull request #473 from negativeExponent/chd_image_cache
CHD: Support for precache mode CD access method
Diffstat (limited to 'libpcsxcore/cdriso.c')
-rw-r--r-- | libpcsxcore/cdriso.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c index d8799db..9e70ddf 100644 --- a/libpcsxcore/cdriso.c +++ b/libpcsxcore/cdriso.c @@ -1057,7 +1057,10 @@ static int handlechd(const char *isofile) { goto fail_io; if(chd_open(isofile, CHD_OPEN_READ, NULL, &chd_img->chd) != CHDERR_NONE) - goto fail_io; + goto fail_io; + + if (Config.CHD_Precache && (chd_precache(chd_img->chd) != CHDERR_NONE)) + goto fail_io; chd_img->header = chd_get_header(chd_img->chd); |