Compare commits

...

1 Commits

Author SHA1 Message Date
coah
e82aa79e45 Match RVL SDK ferror wrapper 2026-09-22 08:48:27 +00:00
2 changed files with 11 additions and 1 deletions

View File

@@ -1729,7 +1729,7 @@ config.libs = [
Object(Matching, "fa/pf_fclose.c"),
Object(NonMatching, "fa/pf_fconcat.c"),
Object(Matching, "fa/pf_feof.c"),
Object(NonMatching, "fa/pf_ferror.c"),
Object(Matching, "fa/pf_ferror.c"),
Object(NonMatching, "fa/pf_finfo.c"),
Object(NonMatching, "fa/pf_flock.c"),
Object(NonMatching, "fa/pf_fopen.c"),

View File

@@ -0,0 +1,10 @@
#include <revolution/fa.h>
extern s32 PFFILE_ferror(FAFILE* stream);
extern s32 PFAPI_convertError(s32 error);
FAError pf2_ferror(FAFILE* stream) {
s32 error = PFFILE_ferror(stream);
error = PFAPI_convertError(error);
return error;
}