From 1945b7e76d17ffea5bbfa0d89d525b3278742840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Jos=C3=A9=20Garc=C3=ADa=20Garc=C3=ADa?= Date: Tue, 29 Sep 2015 00:40:00 +0200 Subject: [PATCH] (Vita) Fix creating directories --- libretro-common/file/retro_stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro-common/file/retro_stat.c b/libretro-common/file/retro_stat.c index 70637b1faa..adb3e08dc6 100644 --- a/libretro-common/file/retro_stat.c +++ b/libretro-common/file/retro_stat.c @@ -62,7 +62,7 @@ #endif #if defined(VITA) -#define FIO_SO_ISDIR PSP2_S_ISDIR +#define FIO_S_ISDIR PSP2_S_ISDIR #endif #if (defined(__CELLOS_LV2__) && !defined(__PSL1GHT__)) || defined(__QNX__) || defined(PSP) @@ -113,7 +113,7 @@ static bool path_stat(const char *path, enum stat_mode mode) { case IS_DIRECTORY: #if defined(VITA) || defined(PSP) - return FIO_SO_ISDIR(buf.st_attr); + return FIO_S_ISDIR(buf.st_mode); #elif defined(__CELLOS_LV2__) return ((buf.st_mode & S_IFMT) == S_IFDIR); #elif defined(_WIN32)