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

Empty update and normal partitions from XCI #156

Closed
sekelje opened this issue Nov 20, 2023 · 3 comments · Fixed by #160
Closed

Empty update and normal partitions from XCI #156

sekelje opened this issue Nov 20, 2023 · 3 comments · Fixed by #160
Assignees
Labels
bug Something isn't working compatibility enhancement New feature or request file format Issues with the NSZ file format
Milestone

Comments

@sekelje
Copy link

sekelje commented Nov 20, 2023

Hi,

I have a few xci dumps with system update removed, but with update and normal empty partitions still present. It works as expected in emulators. But, after compressing to xcz empty partitions are removed and after decompressing emulators won't detect nor manually start xci's. I have tried other tools for compressing and decompressing which do not remove empty partitions. Is there a way to keep those empty partitions with your program?

Thanks

@nicoboss nicoboss self-assigned this Dec 3, 2023
@nicoboss nicoboss added bug Something isn't working enhancement New feature or request compatibility file format Issues with the NSZ file format labels Dec 3, 2023
@nicoboss nicoboss added this to the v4.6 milestone Dec 3, 2023
@nicoboss
Copy link
Owner

Hi,

I have a few xci dumps with system update removed, but with update and normal empty partitions still present. It works as expected in emulators. But, after compressing to xcz empty partitions are removed and after decompressing emulators won't detect nor manually start xci's. I have tried other tools for compressing and decompressing which do not remove empty partitions. Is there a way to keep those empty partitions with your program?

Thanks

Thanks a lot for reporting this issue. This is now fixed in the latest NSZ 4.6.0 release. With the latest release the content of all but the secure partition is removed but the empty partition itself are kept by default. This results in Yuzu emulator compatibility. Specify --keep to keep all partitions including their content. This was implemented as part of a major XCI/XCZ rewrite so many other issues related to XCI/XCZ where fixed in the latest release as well.

@sekelje
Copy link
Author

sekelje commented Dec 18, 2023

Thank you for making your program better.
I have done some testing, update and normal partitions are kept after compressing, but after decompressing xci's are not bit identical. I don't mind as long as it works, but is that to be expected? Probably worth mentioning, xci's have been "cleaned" with NSC Builder.

@nicoboss
Copy link
Owner

Thank you for making your program better. I have done some testing, update and normal partitions are kept after compressing, but after decompressing xci's are not bit identical. I don't mind as long as it works, but is that to be expected? Probably worth mentioning, xci's have been "cleaned" with NSC Builder.

Thanks a lot for your testing and confirming that everything is working as intended. Currently only NSP/NSZ are bit-identically recreated so this is expected behavior. There is not much to worry about it as all NCA files inside the HFS0 file-system are already bit-identically recreated. With the major XCI/XCZ rewrite in NSP 4.6 things are getting quite close to bit-identical recreation but still a lot of work is required to get the HFS0 recreation bit-identical. For further discussion about this topic take a look at #147: "Full XCI (Key Area + XCI) and reversible XCZ". The No-Intro standard now supports XCI so bit-identical recreation makes a lot of sense and is planned for the next major version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compatibility enhancement New feature or request file format Issues with the NSZ file format
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants