X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=frontend%2Flibretro.c;h=89946f3a8e27609f3ddf509f89ae7011022954e7;hb=6673bd839633242694a1f759b02b61d0adc78b12;hp=cfcb7608df0ac6aa129488abc2cdd03b4f8afdd1;hpb=e16ecc894d054792c137072161138ad7bd576336;p=pcsx_rearmed.git diff --git a/frontend/libretro.c b/frontend/libretro.c index cfcb7608..89946f3a 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -574,7 +574,7 @@ static int controller_port_variable(unsigned port, struct retro_variable *var) break; } - return environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, var) || var->value; + return environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, var) && var->value; } static void update_controller_port_variable(unsigned port) @@ -1777,7 +1777,7 @@ static void update_variables(bool in_flight) display_internal_fps = true; } -#ifndef DRC_DISABLE +#if defined(LIGHTREC) || defined(NEW_DYNAREC) var.value = NULL; var.key = "pcsx_rearmed_drc"; @@ -1807,7 +1807,7 @@ static void update_variables(bool in_flight) psxCpu->Reset(); // not really a reset.. } } -#endif +#endif /* LIGHTREC || NEW_DYNAREC */ var.value = NULL; var.key = "pcsx_rearmed_spu_reverb"; @@ -1910,7 +1910,7 @@ static void update_variables(bool in_flight) Config.SpuIrq = 1; } -#ifndef DRC_DISABLE +#ifdef NEW_DYNAREC var.value = NULL; var.key = "pcsx_rearmed_nosmccheck"; if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) @@ -1940,7 +1940,7 @@ static void update_variables(bool in_flight) else new_dynarec_hacks &= ~NDHACK_GTE_NO_FLAGS; } -#endif +#endif /* NEW_DYNAREC */ #ifdef GPU_PEOPS var.value = NULL; @@ -2224,7 +2224,7 @@ static void update_variables(bool in_flight) } } -#if defined(LIGHTREC) || defined(NEW_DYNAREC) +#ifdef NEW_DYNAREC var.value = NULL; var.key = "pcsx_rearmed_psxclock"; if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)