Change Unknown0x56's out to array with static size
This commit is contained in:
parent
b918abab12
commit
4bdcb8209a
@ -597,7 +597,7 @@ Result FSPXI_ReadNandReport(Handle serviceHandle, void* buffer, u32 size, u32 un
|
|||||||
* @brief Unknown command 0x56
|
* @brief Unknown command 0x56
|
||||||
* @remark Called by FSUSER_ControlArchive with ArchiveAction 0x789D
|
* @remark Called by FSUSER_ControlArchive with ArchiveAction 0x789D
|
||||||
*/
|
*/
|
||||||
Result FSPXI_Unknown0x56(Handle serviceHandle, u32 (*out)[4], FS_Archive archive, FS_Path path);
|
Result FSPXI_Unknown0x56(Handle serviceHandle, u32 out[static 4], FS_Archive archive, FS_Path path);
|
||||||
|
|
||||||
#undef DEFINE_PXIFS_SERVICE_METHOD
|
#undef DEFINE_PXIFS_SERVICE_METHOD
|
||||||
#undef DEFINE_SERVICE_METHOD
|
#undef DEFINE_SERVICE_METHOD
|
||||||
|
@ -1362,7 +1362,7 @@ Result FSPXI_ReadNandReport(Handle serviceHandle, void* buffer, u32 size, u32 un
|
|||||||
return (Result) cmdbuf[1];
|
return (Result) cmdbuf[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
Result FSPXI_Unknown0x56(Handle serviceHandle, u32 (*out)[4], FS_Archive archive, FS_Path path)
|
Result FSPXI_Unknown0x56(Handle serviceHandle, u32 out[static 4], FS_Archive archive, FS_Path path)
|
||||||
{
|
{
|
||||||
Result ret = 0;
|
Result ret = 0;
|
||||||
u32 *cmdbuf = getThreadCommandBuffer();
|
u32 *cmdbuf = getThreadCommandBuffer();
|
||||||
@ -1377,10 +1377,10 @@ Result FSPXI_Unknown0x56(Handle serviceHandle, u32 (*out)[4], FS_Archive archive
|
|||||||
|
|
||||||
if (R_FAILED(ret = svcSendSyncRequest(serviceHandle))) return ret;
|
if (R_FAILED(ret = svcSendSyncRequest(serviceHandle))) return ret;
|
||||||
|
|
||||||
(*out)[0] = cmdbuf[2];
|
out[0] = cmdbuf[2];
|
||||||
(*out)[1] = cmdbuf[3];
|
out[1] = cmdbuf[3];
|
||||||
(*out)[2] = cmdbuf[4];
|
out[2] = cmdbuf[4];
|
||||||
(*out)[3] = cmdbuf[5];
|
out[3] = cmdbuf[5];
|
||||||
|
|
||||||
return (Result) cmdbuf[1];
|
return (Result) cmdbuf[1];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user