Fix flags

This commit is contained in:
Maschell 2022-06-07 21:42:55 +02:00
parent 61e05bdbac
commit c48000befc
2 changed files with 6 additions and 6 deletions

View File

@ -44,8 +44,8 @@ FSError IOSUHAX_UnlockFSClientEx(int clientHandle);
FSError IOSUHAX_FSAMount(FSClient *client, const char *source, const char *target, uint32_t flags, void *arg_buf, uint32_t arg_len);
FSError IOSUHAX_FSAMountEx(int clientHandle, const char *source, const char *target, uint32_t flags, void *arg_buf, uint32_t arg_len);
FSError IOSUHAX_FSAUnmount(FSClient *client, const char *mountedTarget);
FSError IOSUHAX_FSAUnmountEx(int clientHandle, const char *mountedTarget);
FSError IOSUHAX_FSAUnmount(FSClient *client, const char *mountedTarget, uint32_t flags);
FSError IOSUHAX_FSAUnmountEx(int clientHandle, const char *mountedTarget, uint32_t flags);
FSError IOSUHAX_FSARawOpen(FSClient *client, char *device_path, int32_t *outHandle);
FSError IOSUHAX_FSARawOpenEx(int clientHandle, char *device_path, int32_t *outHandle);

View File

@ -84,7 +84,7 @@ FSError IOSUHAX_FSAMountEx(int clientHandle, const char *source, const char *tar
if (!buffer) {
return FS_ERROR_INVALID_BUFFER;
}
auto res = __FSAShimSetupRequestMount(buffer, clientHandle, source, target, 2, arg_buf, arg_len);
auto res = __FSAShimSetupRequestMount(buffer, clientHandle, source, target, flags, arg_buf, arg_len);
if (res != 0) {
free(buffer);
return res;
@ -94,20 +94,20 @@ FSError IOSUHAX_FSAMountEx(int clientHandle, const char *source, const char *tar
return res;
}
FSError IOSUHAX_FSAUnmount(FSClient *client, const char *mountedTarget) {
FSError IOSUHAX_FSAUnmount(FSClient *client, const char *mountedTarget, uint32_t flags) {
if (!client) {
return FS_ERROR_INVALID_CLIENTHANDLE;
}
return IOSUHAX_FSAUnmountEx(FSGetClientBody(client)->clientHandle, mountedTarget);
}
FSError IOSUHAX_FSAUnmountEx(int clientHandle, const char *mountedTarget) {
FSError IOSUHAX_FSAUnmountEx(int clientHandle, const char *mountedTarget, uint32_t flags) {
auto *buffer = (FSAShimBuffer *) memalign(0x40, sizeof(FSAShimBuffer));
if (!buffer) {
return FS_ERROR_INVALID_BUFFER;
}
auto res = __FSAShimSetupRequestUnmount(buffer, clientHandle, mountedTarget, 0 /*0x80000000 for FSBindUnmount*/);
auto res = __FSAShimSetupRequestUnmount(buffer, clientHandle, mountedTarget, flags);
if (res != 0) {
free(buffer);
return res;