X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=frontend%2Flibretro.c;h=5c966a4ffe333fb6e2f59380cd10f219b9adfdcd;hb=1d2757f476f5c10229e10fa16107d73b0c801fa5;hp=e18b190c47a021a7ddb73f40357af702902fb1b2;hpb=82df580d6a00527fd55898b21a0d8e82b951620b;p=pcsx_rearmed.git diff --git a/frontend/libretro.c b/frontend/libretro.c index e18b190c..5c966a4f 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