From 0a12a3b64d3d51260fd60a23796f0769f9951e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Date: Wed, 3 May 2017 15:14:58 +0200 Subject: [PATCH] fs_functions: add FSAddClient and FSGetCurrentCmdBlock --- fs_functions.c | 4 ++++ fs_functions.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/fs_functions.c b/fs_functions.c index 232cd99..3a06923 100644 --- a/fs_functions.c +++ b/fs_functions.c @@ -26,9 +26,11 @@ EXPORT_DECL(s32, FSInit, void); EXPORT_DECL(s32, FSShutdown, void); +EXPORT_DECL(s32, FSAddClient, void *pClient, s32 errHandling); EXPORT_DECL(s32, FSAddClientEx, void *pClient, s32 unk_zero_param, s32 errHandling); EXPORT_DECL(s32, FSDelClient, void *pClient); EXPORT_DECL(void, FSInitCmdBlock, void *pCmd); +EXPORT_DECL(void *, FSGetCurrentCmdBlock, void *pClient); EXPORT_DECL(s32, FSGetMountSource, void *pClient, void *pCmd, s32 type, void *source, s32 errHandling); EXPORT_DECL(s32, FSMount, void *pClient, void *pCmd, void *source, char *target, uint32_t bytes, s32 errHandling); @@ -80,9 +82,11 @@ void InitFSFunctionPointers(void) OS_FIND_EXPORT(coreinit_handle, FSInit); OS_FIND_EXPORT(coreinit_handle, FSShutdown); + OS_FIND_EXPORT(coreinit_handle, FSAddClient); OS_FIND_EXPORT(coreinit_handle, FSAddClientEx); OS_FIND_EXPORT(coreinit_handle, FSDelClient); OS_FIND_EXPORT(coreinit_handle, FSInitCmdBlock); + OS_FIND_EXPORT(coreinit_handle, FSGetCurrentCmdBlock); OS_FIND_EXPORT(coreinit_handle, FSGetMountSource); OS_FIND_EXPORT(coreinit_handle, FSMount); diff --git a/fs_functions.h b/fs_functions.h index 2b245df..408810c 100644 --- a/fs_functions.h +++ b/fs_functions.h @@ -35,9 +35,11 @@ void InitFSFunctionPointers(void); extern s32 (* FSInit)(void); extern s32 (* FSShutdown)(void); +extern s32 (* FSAddClient)(void *pClient, s32 errHandling); extern s32 (* FSAddClientEx)(void *pClient, s32 unk_zero_param, s32 errHandling); extern s32 (* FSDelClient)(void *pClient); extern void (* FSInitCmdBlock)(void *pCmd); +extern void *(* FSGetCurrentCmdBlock)(void *pClient); extern s32 (* FSGetMountSource)(void *pClient, void *pCmd, s32 type, void *source, s32 errHandling); extern s32 (* FSMount)(void *pClient, void *pCmd, void *source, char *target, uint32_t bytes, s32 errHandling);