Skip to content

Commit

Permalink
Fix FSPXI_CreateFile and FSPXI_WriteFile (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroSkill1 authored Jun 29, 2022
1 parent 10cf9bb commit 607f1d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libctru/source/services/fspxi.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ Result FSPXI_CreateFile(Handle serviceHandle, FSPXI_Archive archive, FS_Path pat
cmdbuf[6] = attributes;
cmdbuf[7] = (u32)fileSize;
cmdbuf[8] = (u32)(fileSize >> 32);
cmdbuf[8] = IPC_Desc_PXIBuffer(path.size, 0, true);
cmdbuf[9] = (u32) path.data;
cmdbuf[9] = IPC_Desc_PXIBuffer(path.size, 0, true);
cmdbuf[10] = (u32) path.data;

if(R_FAILED(ret = svcSendSyncRequest(serviceHandle))) return ret;

Expand Down Expand Up @@ -229,8 +229,8 @@ Result FSPXI_WriteFile(Handle serviceHandle, FSPXI_File file, u32* bytesWritten,
cmdbuf[2] = (u32)(file >> 32);
cmdbuf[3] = (u32) offset;
cmdbuf[4] = (u32) (offset >> 32);
cmdbuf[5] = flags;
cmdbuf[6] = size;
cmdbuf[5] = size;
cmdbuf[6] = flags;
cmdbuf[7] = IPC_Desc_PXIBuffer(size, 0, true);
cmdbuf[8] = (u32) buffer;

Expand Down

0 comments on commit 607f1d1

Please sign in to comment.