aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorAutechre2020-11-04 22:51:38 +0100
committerGitHub2020-11-04 22:51:38 +0100
commit8b1966efee9bd5da1a882ea82d780022d6f6bb0c (patch)
tree4d9d6e6227faee8b316fe039e9ee6a21b627a537 /frontend
parent96b0d7854b486457c3af6180ebf5560c94df9158 (diff)
parent1d2757f476f5c10229e10fa16107d73b0c801fa5 (diff)
downloadpcsx_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 'frontend')
-rw-r--r--frontend/libretro.c13
-rw-r--r--frontend/libretro_core_options.h7
2 files changed, 16 insertions, 4 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
diff --git a/frontend/libretro_core_options.h b/frontend/libretro_core_options.h
index 3f589cc..21f6783 100644
--- a/frontend/libretro_core_options.h
+++ b/frontend/libretro_core_options.h
@@ -935,10 +935,11 @@ struct retro_core_option_definition option_defs_us[] = {
{
"pcsx_rearmed_async_cd",
"CD Access Method (Restart)",
- "Select method used to read data from content disk images. 'Synchronous' mimics original hardware. 'Asynchronous' can reduce stuttering on devices with slow storage.",
+ "Select method used to read data from content disk images. 'Synchronous' mimics original hardware. 'Asynchronous' can reduce stuttering on devices with slow storage. 'Precache' loads disk image into memory for faster access (CHD only).",
{
- { "sync", "Synchronous" },
- { "async", "Asynchronous" },
+ { "sync", "Synchronous" },
+ { "async", "Asynchronous" },
+ { "precache", "Precache" },
{ NULL, NULL},
},
"sync",