From f1fc4cd2280f224507c7b25b007b201c1378061b Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Wed, 28 Mar 2018 19:17:22 +0200 Subject: [PATCH] syscalls: Fall back to HOpen if HOpenDF is unavailable - should fix #53 --- libretro/syscalls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libretro/syscalls.c b/libretro/syscalls.c index 6245137d03..6d7b6ee52b 100644 --- a/libretro/syscalls.c +++ b/libretro/syscalls.c @@ -118,6 +118,8 @@ int _open_r(struct _reent *reent, const char* name, int flags, int mode) } OSErr err = HOpenDF(0,0,pname,fsRdWrPerm,&ref); + if(err == paramErr) + err = HOpen(0,0,pname,fsRdWrPerm,&ref); if(err) return -1; // TODO: errno