From d067957e4ef9c0b5b4912655ae4630f93aabb161 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 4 Jul 2017 07:57:56 +0200 Subject: [PATCH] Updates to File.c --- Src/Libretro/File.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Src/Libretro/File.c b/Src/Libretro/File.c index 24c5049..5dcd809 100644 --- a/Src/Libretro/File.c +++ b/Src/Libretro/File.c @@ -36,9 +36,10 @@ #include #endif -#ifdef __MINGW32__ #include +#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 - - int archCreateDirectory(const char* pathname) { return mkdir(pathname, 0777);