Unverified Commit 330655e4 authored by Libretro-Admin's avatar Libretro-Admin Committed by GitHub
Browse files

Merge pull request #96 from libretro/fix-vita

Fix crash on PS Vita
parents 21c8ffb4 65f1b61d
Pipeline #24646 passed with stages
in 20 minutes and 2 seconds
......@@ -27,7 +27,11 @@
#define FUSE_COMPAT_H
#include <stdio.h>
#ifndef VITA
#include <dirent.h>
#endif
#include <stdlib.h>
#include <sys/types.h>
......@@ -131,11 +135,13 @@ int compat_get_next_path( path_context *ctx );
typedef FILE* compat_fd;
#ifndef GEKKO
typedef DIR* compat_dir;
#else /* #ifndef GEKKO */
#if defined( GEKKO )
typedef DIR_ITER* compat_dir;
#endif /* #ifndef GEKKO */
#elif defined( VITA )
typedef void* compat_dir;
#else
typedef DIR* compat_dir;
#endif
extern const compat_fd COMPAT_FILE_OPEN_FAILED;
......
......@@ -2741,6 +2741,9 @@ read_config_file( settings_info *settings )
/* See if the file exists; if doesn't, it's not a problem */
if( stat( path, &stat_info ) ) {
#if defined(VITA)
return 0;
#else
if( errno == ENOENT ) {
return 0;
} else {
......@@ -2748,6 +2751,7 @@ read_config_file( settings_info *settings )
strerror( errno ) );
return 1;
}
#endif
}
error = utils_read_file( path, &file );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment