FIX DERP.
This commit is contained in:
parent
9b370c7eff
commit
2eadd6d0b2
@ -139,8 +139,8 @@ Result FSUSER_CloseArchive(Handle* handle, FS_archive* archive);
|
|||||||
Result FSUSER_CreateDirectory(Handle* handle, FS_archive archive, FS_path dirLowPath);
|
Result FSUSER_CreateDirectory(Handle* handle, FS_archive archive, FS_path dirLowPath);
|
||||||
Result FSUSER_DeleteFile(Handle *handle, FS_archive archive, FS_path fileLowPath);
|
Result FSUSER_DeleteFile(Handle *handle, FS_archive archive, FS_path fileLowPath);
|
||||||
Result FSUSER_DeleteDirectory(Handle *handle, FS_archive archive, FS_path dirLowPath);
|
Result FSUSER_DeleteDirectory(Handle *handle, FS_archive archive, FS_path dirLowPath);
|
||||||
Result FSUSER_IsSdmcDetected(Handle *handle);
|
Result FSUSER_IsSdmcDetected(Handle *handle, u32 *detected);
|
||||||
Result FSUSER_IsSdmcWritable(Handle *handle);
|
Result FSUSER_IsSdmcWritable(Handle *handle, u32 *writable);
|
||||||
|
|
||||||
Result FSFILE_Close(Handle handle);
|
Result FSFILE_Close(Handle handle);
|
||||||
Result FSFILE_Read(Handle handle, u32 *bytesRead, u64 offset, void *buffer, u32 size);
|
Result FSFILE_Read(Handle handle, u32 *bytesRead, u64 offset, void *buffer, u32 size);
|
||||||
|
@ -609,6 +609,7 @@ FSUSER_CloseArchive(Handle *handle,
|
|||||||
/*! Check if SD card is detected
|
/*! Check if SD card is detected
|
||||||
*
|
*
|
||||||
* @param[in] handle fs:USER handle
|
* @param[in] handle fs:USER handle
|
||||||
|
* @param[out] detected Output detected state
|
||||||
*
|
*
|
||||||
* @returns error
|
* @returns error
|
||||||
*
|
*
|
||||||
@ -628,7 +629,8 @@ FSUSER_CloseArchive(Handle *handle,
|
|||||||
* 1 | Result code
|
* 1 | Result code
|
||||||
*/
|
*/
|
||||||
Result
|
Result
|
||||||
FSUSER_IsSdmcDetected(Handle *handle)
|
FSUSER_IsSdmcDetected(Handle *handle,
|
||||||
|
u32 *detected)
|
||||||
{
|
{
|
||||||
if(!handle)
|
if(!handle)
|
||||||
handle = &fsuHandle;
|
handle = &fsuHandle;
|
||||||
@ -641,12 +643,16 @@ FSUSER_IsSdmcDetected(Handle *handle)
|
|||||||
if((ret = svcSendSyncRequest(*handle)))
|
if((ret = svcSendSyncRequest(*handle)))
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
if(detected)
|
||||||
|
*detected = cmdbuf[2];
|
||||||
|
|
||||||
return cmdbuf[1];
|
return cmdbuf[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! Check if SD card is writable
|
/*! Check if SD card is writable
|
||||||
*
|
*
|
||||||
* @param[in] handle fs:USER handle
|
* @param[in] handle fs:USER handle
|
||||||
|
* @param[out] writable Output writable state
|
||||||
*
|
*
|
||||||
* @returns error
|
* @returns error
|
||||||
*
|
*
|
||||||
@ -666,7 +672,8 @@ FSUSER_IsSdmcDetected(Handle *handle)
|
|||||||
* 1 | Result code
|
* 1 | Result code
|
||||||
*/
|
*/
|
||||||
Result
|
Result
|
||||||
FSUSER_IsSdmcWritable(Handle *handle)
|
FSUSER_IsSdmcWritable(Handle *handle,
|
||||||
|
u32 *writable)
|
||||||
{
|
{
|
||||||
if(!handle)
|
if(!handle)
|
||||||
handle = &fsuHandle;
|
handle = &fsuHandle;
|
||||||
@ -679,6 +686,9 @@ FSUSER_IsSdmcWritable(Handle *handle)
|
|||||||
if((ret = svcSendSyncRequest(*handle)))
|
if((ret = svcSendSyncRequest(*handle)))
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
if(writable)
|
||||||
|
*writable = cmdbuf[2];
|
||||||
|
|
||||||
return cmdbuf[1];
|
return cmdbuf[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user