X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Flightrec%2Fmem.h;h=98dbbdeb6a99a5797fdc9ddb27acf593153976f8;hb=70939d49a6625d10c64306451cfb1f64557e780e;hp=7f04ce59609ee7979afa3d1f8a64738270c44153;hpb=aa314e8ebc2281c4b2d3db3378f143de5d68f335;p=pcsx_rearmed.git diff --git a/libpcsxcore/lightrec/mem.h b/libpcsxcore/lightrec/mem.h index 7f04ce59..98dbbdeb 100644 --- a/libpcsxcore/lightrec/mem.h +++ b/libpcsxcore/lightrec/mem.h @@ -6,7 +6,23 @@ #ifndef __LIGHTREC_MEM_H__ #define __LIGHTREC_MEM_H__ +#ifdef LIGHTREC + +#define CODE_BUFFER_SIZE (8 * 1024 * 1024) + +extern void *code_buffer; + int lightrec_init_mmap(void); void lightrec_free_mmap(void); +#else /* if !LIGHTREC */ + +#define lightrec_init_mmap() -1 /* should not be called */ +#define lightrec_free_mmap() + +#undef LIGHTREC_CUSTOM_MAP +#define LIGHTREC_CUSTOM_MAP 0 + +#endif + #endif /* __LIGHTREC_MEM_H__ */