This repository has been archived on 2022-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Luma3DS-3GX/sysmodules
Léo Lam 8233d4e226 loader: Add support for BPS patches
The BPS format allows distributing patches that are smaller and that do
not contain copyrighted content if data is relocated
(unlike non-trivial IPS patches).

This is essential for games such as Majora's Mask 3D that have three
barely different code revisions. Supporting all three versions would
demand an unreasonable amount of work; with BPS patches only one
version has to be supported.

The patcher is written in C++ in order to make it possible to share the
implementation with Citra and because a C version would be a lot more
ugly and tedious to write. The patcher is non-intrusive for the rest of
the codebase and self-contained so hopefully that isn't an issue.

This adds roughly ~0x500 bytes of code to the loader sysmodule.
Code looks reasonably optimised (in IDA). Tested and works on an o3DS.
2019-12-21 18:32:18 +01:00
..
loader loader: Add support for BPS patches 2019-12-21 18:32:18 +01:00
pm Fix N3DS applications not closing properly (fix #1271, #1270, etc.) 2019-06-30 22:59:44 +02:00
pxi Remove useless rules 2019-03-16 18:11:46 +01:00
rosalina Merge pull request #1306 from lioncash/null 2019-11-05 00:15:07 +00:00
sm sm/notifications: Prevent potential null pointer dereference in ReceiveNotification 2019-08-13 03:04:03 -04:00
Makefile Add custom pm sysmodule 2019-03-29 00:32:45 +01:00