mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-26 16:29:28 +00:00
syscalls: Fall back to HOpen if HOpenDF is unavailable - should fix #53
This commit is contained in:
parent
1bf9012d5e
commit
f1fc4cd228
@ -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);
|
OSErr err = HOpenDF(0,0,pname,fsRdWrPerm,&ref);
|
||||||
|
if(err == paramErr)
|
||||||
|
err = HOpen(0,0,pname,fsRdWrPerm,&ref);
|
||||||
|
|
||||||
if(err)
|
if(err)
|
||||||
return -1; // TODO: errno
|
return -1; // TODO: errno
|
||||||
|
Loading…
Reference in New Issue
Block a user