From 42be83dd8c369be70ce96fc8885890f90b176ecf Mon Sep 17 00:00:00 2001 From: Maschell Date: Tue, 28 Dec 2021 16:28:03 +0100 Subject: [PATCH] coreinit: Add missing FSGetVolumeInfo to coreinit --- include/coreinit/filesystem.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/include/coreinit/filesystem.h b/include/coreinit/filesystem.h index b73ba441..4f303021 100644 --- a/include/coreinit/filesystem.h +++ b/include/coreinit/filesystem.h @@ -34,6 +34,7 @@ typedef struct FSMessage FSMessage; typedef struct FSMountSource FSMountSource; typedef struct FSStat FSStat; typedef struct FSStateChangeInfo FSStateChangeInfo; +typedef struct FSVolumeInfo FSVolumeInfo; typedef enum FSErrorFlag { @@ -271,6 +272,15 @@ struct FSMountSource }; WUT_CHECK_SIZE(FSMountSource, 0x300); +struct WUT_PACKED FSVolumeInfo +{ + WUT_UNKNOWN_BYTES(0xAC); + char volumeId[16]; + WUT_UNKNOWN_BYTES(0x100); +}; +WUT_CHECK_OFFSET(FSVolumeInfo, 0xAC, volumeId); +WUT_CHECK_SIZE(FSVolumeInfo, 444); + void FSInit(); @@ -436,6 +446,21 @@ FSCloseDir(FSClient *client, FSDirectoryHandle handle, FSErrorFlag errorMask); +FSStatus +FSGetVolumeInfo(FSClient *client, + FSCmdBlock *block, + const char *path, + FSVolumeInfo *volumeInfo, + FSErrorFlag errorMask); + +FSStatus +FSGetVolumeInfoAsync(FSClient *client, + FSCmdBlock *block, + const char *path, + FSVolumeInfo *volumeInfo, + FSErrorFlag errorMask, + FSAsyncData *asyncData); + FSStatus FSCloseDirAsync(FSClient *client, FSCmdBlock *block,