mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Attempt to fix Win32 port - path_stat/path_get_size
This commit is contained in:
parent
a5a16faef4
commit
4c27cd6b5c
@ -100,9 +100,12 @@ static bool path_stat(const char *path, enum stat_mode mode, int32_t *size)
|
||||
if (cellFsStat(path, &buf) < 0)
|
||||
return false;
|
||||
#elif defined(_WIN32)
|
||||
struct stat buf;
|
||||
DWORD ret = GetFileAttributes(path);
|
||||
if (ret == INVALID_FILE_ATTRIBUTES)
|
||||
return false;
|
||||
if (stat(path, &buf) < 0)
|
||||
return false;
|
||||
#else
|
||||
struct stat buf;
|
||||
if (stat(path, &buf) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user