mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Attempt to fix Win32 port - path_stat/path_get_size
This commit is contained in:
parent
a5a16faef4
commit
4c27cd6b5c
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue