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

Prevent NROs from the original game from being double-registered. #543

Merged
merged 2 commits into from
Sep 21, 2023

Conversation

itsmeft24
Copy link
Contributor

This allows for NROs whose hashes are inside the original games' NRR files to replace NROs via ARCropolis.
(ex: replacing prebuilt:/nro/release/lua2cpp_roy.nro with a byte-identical dump from data.arc)

Cargo.toml Outdated
@@ -63,6 +63,8 @@ serde_yaml = "0.8"
smash-bgm-property = "1.2.0"
# For inputs
ninput = { git = "https://github.com/blu-dev/ninput" }
# For reading in NRR hashes
binrw = "0.11.2"
Copy link
Owner

@Raytwo Raytwo Aug 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Genuinely don't think you need a heavy dependency like binrw to read such a simple file? Can you really need not parse it with regular Rust methods?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The latest commit addresses this, however, I have yet to test the change on console.

@Raytwo Raytwo merged commit 39d02a2 into Raytwo:master Sep 21, 2023
1 check failed
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.

4 participants