mirror of
https://github.com/libretro/blueMSX-libretro.git
synced 2024-11-27 02:30:41 +00:00
Updates to File.c
This commit is contained in:
parent
1ad0f7d301
commit
d067957e4e
@ -36,9 +36,10 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifdef __MINGW32__
|
||||
|
||||
int archCreateDirectory(const char* pathname)
|
||||
{
|
||||
return mkdir(pathname);
|
||||
@ -96,7 +97,7 @@ int archFileExists(const char* fileName)
|
||||
|
||||
_stat(path, &buf);
|
||||
|
||||
if (file_info == INVALID_FILE_ATTRIBUTES)
|
||||
if (file_info == -1)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
@ -109,9 +110,6 @@ int archFileDelete(const char* fileName)
|
||||
|
||||
#else
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
|
||||
int archCreateDirectory(const char* pathname)
|
||||
{
|
||||
return mkdir(pathname, 0777);
|
||||
|
Loading…
Reference in New Issue
Block a user