(Vita) Fix MKDIR with using correct stat.h

This commit is contained in:
Francisco José García García 2015-09-18 01:22:03 +02:00
parent 50172454d2
commit b0fb027a54

View File

@ -43,7 +43,7 @@
#elif defined(VITA)
#include <psp2/io/fcntl.h>
#include <psp2/io/dirent.h>
#include <sys/stat.h>
#include <psp2/io/stat.h>
#else
#include <sys/types.h>
#include <sys/stat.h>
@ -174,6 +174,10 @@ bool path_is_directory(const char *path)
#ifdef _WIN32
DWORD ret = GetFileAttributes(path);
return (ret & FILE_ATTRIBUTE_DIRECTORY) && (ret != INVALID_FILE_ATTRIBUTES);
#elif defined(VITA)
SceIoStat stat;
if(sceIoGetstat(path,&stat) < 0)return -1;
return PSP2_S_ISDIR(stat.st_mode);
#else
struct stat buf;
if (stat(path, &buf) < 0)