diff --git a/nx/include/switch/services/fs.h b/nx/include/switch/services/fs.h index b38563c3..da6003b8 100644 --- a/nx/include/switch/services/fs.h +++ b/nx/include/switch/services/fs.h @@ -262,9 +262,9 @@ typedef enum { } FsGameCardPartition; typedef enum { - FsGameCardStoragePartition_Normal = 0, - FsGameCardStoragePartition_Secure = 1, -} FsGameCardStoragePartition; + FsGameCardPartitionRaw_Normal = 0, + FsGameCardPartitionRaw_Secure = 1, +} FsGameCardPartitionRaw; typedef struct { u32 value; @@ -545,7 +545,7 @@ Result fsOpenDataStorageByProgramId(FsStorage *out, u64 program_id); /// <[3.0.0 Result fsOpenDataStorageByDataId(FsStorage* out, u64 dataId, NcmStorageId storageId); Result fsOpenPatchDataStorageByCurrentProcess(FsStorage* out); -Result fsOpenGameCardStorage(FsStorage* out, const FsGameCardHandle* handle, FsGameCardStoragePartition partition); +Result fsOpenGameCardPartition(FsStorage* out, const FsGameCardHandle* handle, FsGameCardPartitionRaw partition); Result fsOpenDeviceOperator(FsDeviceOperator* out); Result fsOpenSdCardDetectionEventNotifier(FsEventNotifier* out); diff --git a/nx/source/services/fs.c b/nx/source/services/fs.c index 405581bd..73ea9a63 100644 --- a/nx/source/services/fs.c +++ b/nx/source/services/fs.c @@ -538,7 +538,7 @@ Result fsOpenPatchDataStorageByCurrentProcess(FsStorage* out) { return _fsCmdGetSession(&g_fsSrv, &out->s, 203); } -Result fsOpenGameCardStorage(FsStorage* out, const FsGameCardHandle* handle, FsGameCardStoragePartition partition) { +Result fsOpenGameCardPartition(FsStorage* out, const FsGameCardHandle* handle, FsGameCardPartitionRaw partition) { const struct { FsGameCardHandle handle; u32 partition;