X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=frontend%2Flibretro.c;h=cc443feda91c89d5f5354c359cc05083c7009f03;hb=fa5e72593d53107d966daea66898c25dce553dc8;hp=6f543a953cd157fec19d8f24db518f9517d1b493;hpb=8ac2b9d2af5d05f3a39c38905f4705de15b448e0;p=pcsx_rearmed.git diff --git a/frontend/libretro.c b/frontend/libretro.c index 6f543a95..cc443fed 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -59,6 +59,18 @@ #define INTERNAL_FPS_SAMPLE_PERIOD 64 +#ifdef DRC_DISABLE +int stop; +u32 next_interupt; +u32 event_cycles[PSXINT_COUNT]; +int cycle_multiplier; +int new_dynarec_hacks; + +void new_dyna_before_save(void) { } +void new_dyna_after_save(void) { } +void new_dyna_freeze(void *f, int i) { } +#endif + //hack to prevent retroarch freezing when reseting in the menu but not while running with the hot key static int rebootemu = 0; @@ -81,8 +93,12 @@ static bool found_bios; static bool display_internal_fps = false; static unsigned frame_count = 0; static bool libretro_supports_bitmasks = false; +#ifdef GPU_PEOPS static int show_advanced_gpu_peops_settings = -1; +#endif +#ifdef GPU_UNAI static int show_advanced_gpu_unai_settings = -1; +#endif static unsigned previous_width = 0; static unsigned previous_height = 0; @@ -1600,7 +1616,9 @@ static void update_variables(bool in_flight) { struct retro_variable var; int i; +#ifdef GPU_PEOPS int gpu_peops_fix = 0; +#endif var.value = NULL; var.key = "pcsx_rearmed_frameskip"; @@ -2142,7 +2160,8 @@ static void update_variables(bool in_flight) } } } -#ifndef DRC_DISABLE + +#if defined(LIGHTREC) || defined(NEW_DYNAREC) var.value = "NULL"; var.key = "pcsx_rearmed_psxclock"; if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) || var.value)