libretro: satisfy vita's dynarec needs in a cleaner way
[picodrive.git] / platform / linux / emu.c
index c22f4fd..aee8d44 100644 (file)
@@ -31,7 +31,9 @@ void pemu_validate_config(void)
 {\r
        extern int PicoOpt;\r
 //     PicoOpt &= ~POPT_EXT_FM;\r
+#ifndef __arm__\r
        PicoOpt &= ~POPT_EN_DRC;\r
+#endif\r
 }\r
 \r
 static void draw_cd_leds(void)\r
@@ -68,8 +70,8 @@ void pemu_finalize_frame(const char *fps, const char *notice)
 {\r
        if (currentConfig.renderer != RT_16BIT && !(PicoAHW & PAHW_32X)) {\r
                unsigned short *pd = (unsigned short *)g_screen_ptr + 8 * g_screen_width;\r
-               unsigned char *ps = PicoDraw2FB + 328*8 + 8;\r
-               unsigned short *pal = HighPal;\r
+               unsigned char *ps = Pico.est.Draw2FB + 328*8 + 8;\r
+               unsigned short *pal = Pico.est.HighPal;\r
                int i, x;\r
                if (Pico.m.dirtyPal)\r
                        PicoDrawUpdateHighPal();\r
@@ -99,7 +101,7 @@ static void apply_renderer(void)
        case RT_8BIT_ACC:\r
                PicoOpt &= ~POPT_ALT_RENDERER;\r
                PicoDrawSetOutFormat(PDF_8BIT, 0);\r
-               PicoDrawSetOutBuf(PicoDraw2FB + 8, 328);\r
+               PicoDrawSetOutBuf(Pico.est.Draw2FB + 8, 328);\r
                break;\r
        case RT_8BIT_FAST:\r
                PicoOpt |=  POPT_ALT_RENDERER;\r
@@ -201,3 +203,7 @@ void plat_wait_till_us(unsigned int us_to)
        }\r
 }\r
 \r
+void *plat_mem_get_for_drc(size_t size)\r
+{\r
+       return NULL;\r
+}\r