mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(Vita) Fix MKDIR with using correct stat.h
This commit is contained in:
parent
50172454d2
commit
b0fb027a54
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user