Skip to content

Fix FSPXI_CreateFile and FSPXI_WriteFile#496

Merged
fincs merged 2 commits intodevkitPro:masterfrom
ZeroSkill1:fix-fspxi-commands
Jun 29, 2022
Merged

Fix FSPXI_CreateFile and FSPXI_WriteFile#496
fincs merged 2 commits intodevkitPro:masterfrom
ZeroSkill1:fix-fspxi-commands

Conversation

@ZeroSkill1
Copy link
Copy Markdown
Contributor

@ZeroSkill1 ZeroSkill1 commented Jun 5, 2022

FSPXI_CreateFile: the command buffer at index 9 was assigned twice. See here: https://3dbrew.org/wiki/FSPXI:CreateFile
Creating any file with valid arguments results in 0xD9001830.

Regarding FSPXI_WriteFile: the size and flags are actually swapped. I found this out after some code analysis of the fs codebin.
This is what it looks like:
image
Looking a bit closer, the size and flags are swapped. The same size being used for the buffer descriptor confirms this as well.

@fincs fincs merged commit 607f1d1 into devkitPro:master Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants