X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fpsxmem.c;h=1825cfe4f4b0c2161c62577b142ac668b0398826;hb=4e7fce5a04030c83b49e3b9d3a9098915853316f;hp=53edfabcad6cdd7de99ba9595c59bb2d3eef727c;hpb=4ee722a52cb0fb56260ccd3962537e5c772800e0;p=pcsx_rearmed.git diff --git a/libpcsxcore/psxmem.c b/libpcsxcore/psxmem.c index 53edfabc..1825cfe4 100644 --- a/libpcsxcore/psxmem.c +++ b/libpcsxcore/psxmem.c @@ -23,8 +23,6 @@ // TODO: Implement caches & cycle penalty. -#include - #include "psxmem.h" #include "psxmem_map.h" #include "r3000a.h" @@ -33,10 +31,18 @@ #include "memmap.h" +#ifdef USE_LIBRETRO_VFS +#include +#endif + #ifndef MAP_ANONYMOUS #define MAP_ANONYMOUS MAP_ANON #endif +#ifdef NDEBUG +void DebugCheckBP(u32 address, enum breakpoint_types type) {} +#endif + void *(*psxMapHook)(unsigned long addr, size_t size, int is_fixed, enum psxMapTag tag); void (*psxUnmapHook)(void *ptr, size_t size, enum psxMapTag tag); @@ -219,7 +225,7 @@ void psxMemReset() { if (strcmp(Config.Bios, "HLE") != 0) { sprintf(bios, "%s/%s", Config.BiosDir, Config.Bios); - f = fopen_utf8(bios, "rb"); + f = fopen(bios, "rb"); if (f == NULL) { SysMessage(_("Could not open BIOS:\"%s\". Enabling HLE Bios!\n"), bios);