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

ncch_container: Add support for exheader replacement #4813

Merged
merged 1 commit into from Jul 8, 2019

Conversation

leoetlino
Copy link
Contributor

@leoetlino leoetlino commented Jun 30, 2019

This adds support for custom exheaders, which brings feature parity
with Luma3DS's code patching functionality and allows for injecting
new game code.

Also, resize the code buffer according to the exheader to make it possible
to increase code size by combining exheader replacement and
IPS patching.

This also ensures the codeset memory (created in
AppLoader_NCCH::LoadExec) actually is large enough.


This change is Reviewable

src/core/file_sys/ncch_container.cpp Outdated Show resolved Hide resolved
src/core/file_sys/ncch_container.cpp Outdated Show resolved Hide resolved
wwylele
wwylele previously approved these changes Jun 30, 2019
@wwylele wwylele dismissed their stale review Jun 30, 2019

oops

B3n30
B3n30 approved these changes Jun 30, 2019
src/core/file_sys/ncch_container.cpp Show resolved Hide resolved
src/core/file_sys/ncch_container.cpp Outdated Show resolved Hide resolved
This adds support for custom exheaders, which brings feature parity
with Luma3DS's code patching functionality and allows for injecting
new game code.
@zhaowenlan1779 zhaowenlan1779 merged commit 2f7a10e into citra-emu:master Jul 8, 2019
2 of 3 checks passed
@leoetlino leoetlino deleted the larger-code branch Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants