Fix reporting for connected or unconnected inputs
[pcsx_rearmed.git] / libpcsxcore / sio.c
index c2390bf..ae3e634 100644 (file)
@@ -17,6 +17,8 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA 02111-1307 USA.           *
  ***************************************************************************/
 
+#include <compat/fopen_utf8.h>
+
 /*
 * SIO functions.
 */
@@ -436,11 +438,11 @@ void LoadMcd(int mcd, char *str) {
        if (*str == 0)
                return;
 
-       f = fopen(str, "rb");
+       f = fopen_utf8(str, "rb");
        if (f == NULL) {
                SysPrintf(_("The memory card %s doesn't exist - creating it\n"), str);
                CreateMcd(str);
-               f = fopen(str, "rb");
+               f = fopen_utf8(str, "rb");
                if (f != NULL) {
                        struct stat buf;
 
@@ -481,7 +483,7 @@ void SaveMcd(char *mcd, char *data, uint32_t adr, int size) {
        if (mcd == NULL || *mcd == 0 || strcmp(mcd, "none") == 0)
                return;
 
-       f = fopen(mcd, "r+b");
+       f = fopen_utf8(mcd, "r+b");
        if (f != NULL) {
                struct stat buf;
 
@@ -518,7 +520,7 @@ void CreateMcd(char *mcd) {
        int s = MCD_SIZE;
        int i = 0, j;
 
-       f = fopen(mcd, "wb");
+       f = fopen_utf8(mcd, "wb");
        if (f == NULL)
                return;