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

RomFS is always encrypted when rebuilding NCCH files #15

Closed
mnml opened this issue Aug 26, 2018 · 0 comments
Closed

RomFS is always encrypted when rebuilding NCCH files #15

mnml opened this issue Aug 26, 2018 · 0 comments

Comments

@mnml
Copy link

mnml commented Aug 26, 2018

I've been trying to rebuild a game with a translation patch for use in Citra, but the RomFS region always comes out encrypted, no matter what flags I use when rebuilding the CXI (including --not-encrypt).

After peeking at the source code, I noticed this:

3dstool/src/ncch.cpp

Lines 966 to 969 in 3cb0ebd

if (m_nEncryptMode == kEncryptModeNone)
{
CopyFile(m_fpNcch, fp, 0, nFileSize);
}

I think that if statement always fails, because:

3dstool/src/3dstool.cpp

Lines 218 to 221 in 3cb0ebd

if (m_nEncryptMode == CNcch::kEncryptModeNone)
{
m_nEncryptMode = CNcch::kEncryptModeAuto;
}

Unless there's something else I'm missing?

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

No branches or pull requests

2 participants