31 strncpy(this->
id,
id,
sizeof(this->
id));
42 asm(
"Compare__Q3_2nn3spm8VolumeIdCFRCQ3_2nn3spm8VolumeId");
51 WUT_UNKNOWN_BYTES(0x04);
71 WUT_CHECK_OFFSET(
StorageInfo, 0x280, connection_type_string);
72 WUT_CHECK_OFFSET(
StorageInfo, 0x288, format_string);
79 asm("Initialize__Q2_2nn3spmFv");
83 asm("Finalize__Q2_2nn3spmFv");
87 asm("SetAutoFatal__Q2_2nn3spmFb");
97 asm("SetExtendedStorage__Q2_2nn3spmFQ3_2nn3spm12StorageIndex");
104 asm("SetDefaultExtendedStorageVolumeId__Q2_2nn3spmFRCQ3_2nn3spm8VolumeId");
111 asm("GetDefaultExtendedStorageVolumeId__Q2_2nn3spmFv");
115 asm("GetPreviousExtendedStorageVolumeId__Q2_2nn3spmFPbPQ3_2nn3spm8VolumeId");
119 asm("FindStorageByVolumeId__Q2_2nn3spmFPQ3_2nn3spm12StorageIndexRCQ3_2nn3spm8VolumeId");
123 asm("GetExtendedStorageIndex__Q2_2nn3spmFPQ3_2nn3spm12StorageIndex");
127 asm("GetStorageList__Q2_2nn3spmFPQ3_2nn3spm15StorageListItemUi");
131 asm("GetStorageInfo__Q2_2nn3spmFPQ3_2nn3spm11StorageInfoQ3_2nn3spm12StorageIndex");
141 asm("ReadRawStorageHead512__Q2_2nn3spmFQ3_2nn3spm12StorageIndexPc");
153 asm("IsStorageMaybePcFormatted__Q2_2nn3spmFPbQ3_2nn3spm12StorageIndex");
165 asm("IsStorageMaybeWfsFormatted__Q2_2nn3spmFPbQ3_2nn3spm12StorageIndex");
char connection_type_string[8]
The connection type (e.g. "usb")
void SetDefaultExtendedStorageVolumeId(VolumeId const &id) asm("SetDefaultExtendedStorageVolumeId__Q2_2nn3spmFRCQ3_2nn3spm8VolumeId")
Sets the id of the default extended storage drive.
void SetAutoFatal(bool enabled) asm("SetAutoFatal__Q2_2nn3spmFb")
bool FindStorageByVolumeId(StorageIndex *outIndex, VolumeId const &volumeId) asm("FindStorageByVolumeId__Q2_2nn3spmFPQ3_2nn3spm12StorageIndexRCQ3_2nn3spm8VolumeId")
int32_t ReadRawStorageHead512(StorageIndex *index, char *outBuffer) asm("ReadRawStorageHead512__Q2_2nn3spmFQ3_2nn3spm12StorageIndexPc")
Reads the first 512 bytes of the storage head into the buffer.
void GetDefaultExtendedStorageVolumeId(VolumeId *id) asm("GetDefaultExtendedStorageVolumeId__Q2_2nn3spmFv")
Gets the id of the default extended storage drive.
int32_t GetExtendedStorageIndex(StorageIndex *outIndex) asm("GetExtendedStorageIndex__Q2_2nn3spmFPQ3_2nn3spm12StorageIndex")
void Finalize() asm("Finalize__Q2_2nn3spmFv")
int32_t SetExtendedStorage(StorageIndex *index) asm("SetExtendedStorage__Q2_2nn3spmFQ3_2nn3spm12StorageIndex")
Sets the storage drive which should be used for extended storage.
int32_t GetStorageList(StorageListItem *items, uint32_t maxNumItems) asm("GetStorageList__Q2_2nn3spmFPQ3_2nn3spm15StorageListItemUi")
char format_string[8]
The drive format (e.g. "raw" / "wfs")
int32_t GetStorageInfo(StorageInfo *outInfo, StorageIndex *index) asm("GetStorageInfo__Q2_2nn3spmFPQ3_2nn3spm11StorageInfoQ3_2nn3spm12StorageIndex")
char path[0x280]
The mount path (e.g. "/vol/storage_usb01")
bool GetPreviousExtendedStorageVolumeId(bool *, VolumeId *outVolumeId) asm("GetPreviousExtendedStorageVolumeId__Q2_2nn3spmFPbPQ3_2nn3spm8VolumeId")
int32_t IsStorageMaybePcFormatted(bool *isPcFormatted, StorageIndex *index) asm("IsStorageMaybePcFormatted__Q2_2nn3spmFPbQ3_2nn3spm12StorageIndex")
void Initialize() asm("Initialize__Q2_2nn3spmFv")
int32_t IsStorageMaybeWfsFormatted(bool *isWfsFormatted, StorageIndex *index) asm("IsStorageMaybeWfsFormatted__Q2_2nn3spmFPbQ3_2nn3spm12StorageIndex")
int32_t Compare(VolumeId const &other) const asm("Compare__Q3_2nn3spm8VolumeIdCFRCQ3_2nn3spm8VolumeId")
Compares this VolumeId with another one.