From 7c13463969ca34e430806a357b74004a66b3ee25 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Wed, 3 Dec 2014 11:06:01 -0500 Subject: [PATCH] Fixed FSUSER_IsSdmcDetected and FSUSER_IsSdmcWritable: the output is an u8 not u32. --- libctru/include/3ds/services/fs.h | 4 ++-- libctru/source/services/fs.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libctru/include/3ds/services/fs.h b/libctru/include/3ds/services/fs.h index e5f573d..b062f8d 100644 --- a/libctru/include/3ds/services/fs.h +++ b/libctru/include/3ds/services/fs.h @@ -144,8 +144,8 @@ Result FSUSER_DeleteDirectory(Handle *handle, FS_archive archive, FS_path dirLow Result FSUSER_RenameFile(Handle *handle, FS_archive srcArchive, FS_path srcFileLowPath, FS_archive destArchive, FS_path destFileLowPath); Result FSUSER_RenameDirectory(Handle *handle, FS_archive srcArchive, FS_path srcDirLowPath, FS_archive destArchive, FS_path destDirLowPath); Result FSUSER_GetSdmcArchiveResource(Handle *handle, u32 *sectorSize, u32 *clusterSize, u32 *numClusters, u32 *freeClusters); -Result FSUSER_IsSdmcDetected(Handle *handle, u32 *detected); -Result FSUSER_IsSdmcWritable(Handle *handle, u32 *writable); +Result FSUSER_IsSdmcDetected(Handle *handle, u8 *detected); +Result FSUSER_IsSdmcWritable(Handle *handle, u8 *writable); Result FSFILE_Close(Handle handle); Result FSFILE_Read(Handle handle, u32 *bytesRead, u64 offset, void *buffer, u32 size); diff --git a/libctru/source/services/fs.c b/libctru/source/services/fs.c index 2ff991d..113f980 100644 --- a/libctru/source/services/fs.c +++ b/libctru/source/services/fs.c @@ -839,7 +839,7 @@ FSUSER_GetSdmcArchiveResource(Handle *handle, */ Result FSUSER_IsSdmcDetected(Handle *handle, - u32 *detected) + u8 *detected) { if(!handle) handle = &fsuHandle; @@ -883,7 +883,7 @@ FSUSER_IsSdmcDetected(Handle *handle, */ Result FSUSER_IsSdmcWritable(Handle *handle, - u32 *writable) + u8 *writable) { if(!handle) handle = &fsuHandle;