From 6affe2ff291e34edf5ff8169416a4d92f31cceda Mon Sep 17 00:00:00 2001 From: shinyquagsire23 Date: Wed, 24 Aug 2016 15:17:08 -0700 Subject: [PATCH] Add FSChangeMode and FSGetFreeSpaceSize --- include/coreinit/filesystem.h | 29 +++++++++++++++++++++++++++++ rpl/libcoreinit/exports.h | 4 ++++ 2 files changed, 33 insertions(+) diff --git a/include/coreinit/filesystem.h b/include/coreinit/filesystem.h index 277ad44..1902357 100644 --- a/include/coreinit/filesystem.h +++ b/include/coreinit/filesystem.h @@ -370,6 +370,35 @@ FSCloseDirAsync(FSClient *client, FSDirectoryHandle handle, uint32_t flags, FSAsyncData *asyncData); +FSStatus +FSChangeMode(FSClient *client, + FSCmdBlock *block, + char *path, + FSMode mode, + uint32_t flags); + +FSStatus +FSChangeModeAsync(FSClient *client, + FSCmdBlock *block, + char *path, + FSMode mode, + uint32_t flags, + FSAsyncData *asyncData); + +FSStatus +FSGetFreeSpaceSize(FSClient *client, + FSCmdBlock *block, + char *path, + u64 *outSize, + uint32_t flags); + +FSStatus +FSGetFreeSpaceSizeAsync(FSClient *client, + FSCmdBlock *block, + char *path, + u64 *outSize, + uint32_t flags, + FSAsyncData *asyncData); FSStatus FSGetStatFile(FSClient *client, diff --git a/rpl/libcoreinit/exports.h b/rpl/libcoreinit/exports.h index 3f546ac..a8f23a8 100644 --- a/rpl/libcoreinit/exports.h +++ b/rpl/libcoreinit/exports.h @@ -138,6 +138,10 @@ EXPORT(FSSetStateChangeNotification); EXPORT(FSGetCwd); EXPORT(FSChangeDir); EXPORT(FSChangeDirAsync); +EXPORT(FSChangeMode); +EXPORT(FSChangeModeAsync); +EXPORT(FSGetFreeSpaceSize); +EXPORT(FSGetFreeSpaceSizeAsync); EXPORT(FSGetStat); EXPORT(FSGetStatAsync); EXPORT(FSRemove);