diff options
author | negativeExponent | 2020-11-04 21:16:24 +0800 |
---|---|---|
committer | negativeExponent | 2020-11-04 21:38:12 +0800 |
commit | 1d2757f476f5c10229e10fa16107d73b0c801fa5 (patch) | |
tree | 4d9d6e6227faee8b316fe039e9ee6a21b627a537 /frontend/libretro.c | |
parent | 96b0d7854b486457c3af6180ebf5560c94df9158 (diff) | |
download | pcsx_rearmed-1d2757f476f5c10229e10fa16107d73b0c801fa5.tar.gz pcsx_rearmed-1d2757f476f5c10229e10fa16107d73b0c801fa5.tar.bz2 pcsx_rearmed-1d2757f476f5c10229e10fa16107d73b0c801fa5.zip |
CHD: Support for precache mode CD access method
https://github.com/libretro/pcsx_rearmed/issues/261
Diffstat (limited to 'frontend/libretro.c')
-rw-r--r-- | frontend/libretro.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c index e18b190..5c966a4 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -1744,9 +1744,20 @@ static void update_variables(bool in_flight) if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) { if (strcmp(var.value, "async") == 0) + { Config.AsyncCD = 1; - else + Config.CHD_Precache = 0; + } + else if (strcmp(var.value, "sync") == 0) + { Config.AsyncCD = 0; + Config.CHD_Precache = 0; + } + else if (strcmp(var.value, "precache") == 0) + { + Config.AsyncCD = 0; + Config.CHD_Precache = 1; + } } #endif |