X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fsio.c;h=4e269076d8dc7440f32d9eba2a7fb07dea78cd7d;hb=226a5691296bfb4f22d916348821b0eed6399a89;hp=ae3e634a9b00e4f6dc5de46ef6e4a4c93d4a43aa;hpb=625cc17f79f3eaeada1b741974bdc608ae4d2dd2;p=pcsx_rearmed.git diff --git a/libpcsxcore/sio.c b/libpcsxcore/sio.c index ae3e634a..4e269076 100644 --- a/libpcsxcore/sio.c +++ b/libpcsxcore/sio.c @@ -17,8 +17,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA. * ***************************************************************************/ -#include - /* * SIO functions. */ @@ -26,6 +24,10 @@ #include "sio.h" #include +#ifdef USE_LIBRETRO_VFS +#include +#endif + // Status Flags #define TX_RDY 0x0001 #define RX_RDY 0x0002 @@ -438,11 +440,11 @@ void LoadMcd(int mcd, char *str) { if (*str == 0) return; - f = fopen_utf8(str, "rb"); + f = fopen(str, "rb"); if (f == NULL) { SysPrintf(_("The memory card %s doesn't exist - creating it\n"), str); CreateMcd(str); - f = fopen_utf8(str, "rb"); + f = fopen(str, "rb"); if (f != NULL) { struct stat buf; @@ -483,7 +485,7 @@ void SaveMcd(char *mcd, char *data, uint32_t adr, int size) { if (mcd == NULL || *mcd == 0 || strcmp(mcd, "none") == 0) return; - f = fopen_utf8(mcd, "r+b"); + f = fopen(mcd, "r+b"); if (f != NULL) { struct stat buf; @@ -520,7 +522,7 @@ void CreateMcd(char *mcd) { int s = MCD_SIZE; int i = 0, j; - f = fopen_utf8(mcd, "wb"); + f = fopen(mcd, "wb"); if (f == NULL) return;