Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FSPXI_CreateFile and FSPXI_WriteFile #496

Merged
merged 2 commits into from
Jun 29, 2022

Conversation

ZeroSkill1
Copy link
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