Commit Graph

734 Commits

Author SHA1 Message Date
Michael Scire
888f7d4730 erpt: update IDs for 20.1.0 2025-05-28 19:34:02 -07:00
Michael Scire
9f247670cb Add version enums for 20.1.0 2025-05-28 19:34:01 -07:00
Michael Scire
2f9b9d5e7f ams: basic support for compiling with gcc 15 2025-05-09 12:10:11 -07:00
Michael Scire
20ae7f3037 fs.mitm: add and use memlet module to temporarily steal applet memory while building romfs images.
Starting in 20.0.0, the browser needs more applet memory to function, so we can't steal as much any more.
Thus, we now steal 14 MB on 20.0.0+ instead of 40MB.

However, since this reduces memory available for custom system modules, we are adjusting to compensate.
ams.mitm's heap size has been reduced from 32MB to 12MB (recovering 20MB).
In addition, fs.mitm now uses a new mechanism for stealing memory from the applet pool while romfs is being built.

On net, we are compromising:
    * Custom sysmodules lose memory available to them.
        On 19.0.0/AMS 1.8.0, there was 30 MB available for custom sysmodules.
        Stealing 14 MB instead of 40 MB, we lose 26 MB of that. Reducing ams.mitm's usage will gain us back 20.
        Nintendo also appears to...use 4 extra MB, in 20.0.0, from my test homebrew.
        So on 20.0.0/AMS 1.9.0, there should be 20 MB available for custom sysmodules.
        On the bright side, on <20.0.0/AMS 1.9.0, I guess there will be 50 MB available for custom sysmodules now?
    * totk mods will lose the ability to...put every file in the romfs on sd card. There will be some unknown maximum filecount for totk mods.
        On the bright side, implementing the transient memory stealing should improve compatibility for some mods which strictly add files?
2025-05-09 12:10:10 -07:00
Michael Scire
883e9c8341 ams: add enum support for 20.0.1/18.0.1 2025-05-09 12:10:10 -07:00
Michael Scire
6a75ad3493 erpt: initial support (incomplete) for 20.0.0 2025-05-09 12:10:09 -07:00
Michael Scire
af330433be ldr/pm: update for 20.0.0 abi changes 2025-05-09 12:10:09 -07:00
Michael Scire
b40d497e56 strat: update for fsp-ldr 20.0.0 changes 2025-05-09 12:10:09 -07:00
Michael Scire
b6ea249224 ncm: update to implement new ContentMetaDatabase function for 20.0.0 2025-05-09 12:10:08 -07:00
Michael Scire
f30d109429 erpt: update ids for 20.0.0 2025-05-09 12:10:03 -07:00
Michael Scire
c04caeec8f fusee/exo/ams: update with new keydata/version enums 2025-05-09 12:10:02 -07:00
Michael Scire
437ef0004a ams: various fixes to support booting debug configuration 2025-05-09 12:10:02 -07:00
Michael Scire
a6ebdbf3af fs: fix uninit warnings on windows localfilesystem 2025-05-09 12:10:00 -07:00
Michael Scire
90f32279a8 libstrat: re-nolto files when compiling for windows-audit 2025-05-09 12:09:59 -07:00
Michael Scire
e590e1adc5 strat: ldr::PlatformId -> ncm::ContentMetaPlatform 2025-05-09 12:09:59 -07:00
Michael Scire
ad6124a39d ldr: ProgramInfo is 0x410 now, and fix debug flags for hbl 2024-10-15 21:51:42 -07:00
Michael Scire
b34a796490 pm: add new 19.0.0 commands
This is functionally correct, but I have no idea what these are meant to represent.
These functions are completely unused on NX.
2024-10-15 21:51:41 -07:00
Michael Scire
55281ebb22 ns_mitm: update to support new 19.0.0 command 2024-10-15 21:51:41 -07:00
Michael Scire
6063a0347e ro: support NROs with read-only first page 2024-10-15 21:51:41 -07:00
Michael Scire
b70e367745 kern/ldr: add support for --x executables 2024-10-15 21:51:39 -07:00
Michael Scire
89bfecb6b6 kern/svc: update WaitForAddress to support 64-bit WaitIfEqual 2024-10-15 21:51:35 -07:00
Michael Scire
2466767e68 erpt: add new IDs/categories 2024-10-15 21:51:34 -07:00
Michael Scire
dc3bb3fde7 fusee/exo/ams: update with new keydata/version enums 2024-10-15 21:51:33 -07:00
Michael Scire
bb76786910 ams: bump to 1.7.1 (support for 18.1.0) 2024-06-10 22:19:05 -07:00
Michael Scire
d58ff30a12 libstrat: fix more gnu++23 errors 2024-06-05 11:28:45 -07:00
Michael Scire
5a92c368c2 ams: build with -std=gnu++23 2024-06-05 09:22:26 -07:00
Michael Scire
9dc1479dee loader: update to reflect latest 18.0.0 changes
well, this sure is late, whoops
2024-06-05 09:22:26 -07:00
Michael Scire
8b85add711 spl: add support for new spl:es command 33 2024-03-29 02:55:09 -07:00
Michael Scire
3cb06f04c2 erpt: actually support non-sequential ids, nintendo why 2024-03-29 02:55:08 -07:00
Michael Scire
e639b5cd4f erpt: add new IDs/categories 2024-03-29 02:55:08 -07:00
Michael Scire
60e3c8a4cc kern/os: support CreateProcessFlag_EnableAliasRegionExtraSize 2024-03-29 02:55:02 -07:00
Michael Scire
18f07b30e5 fusee/exo/ams: update with new keydata/version enums 2024-03-29 02:55:00 -07:00
Michael Scire
a55e74aec3 fssrv: fix dumb assert error 2024-03-29 02:54:58 -07:00
Michael Scire
e49916968c strat: fix nx_debug build target 2024-03-29 02:54:57 -07:00
Michael Scire
068c369111 settings: support PortugueseBr (closes #2264) 2024-03-29 02:54:56 -07:00
Michael Scire
0da455a186 loader/ro: abort if patching would go out of bounds 2024-03-29 02:54:54 -07:00
Michael Scire
bfc5583486 sf: fix ipc serialization bug (out object id offsets) 2023-11-28 13:02:10 -07:00
Michael Scire
43b8461b5f kern/svc: fix query/insecure names 2023-11-16 16:25:26 -07:00
Michael Scire
8fe4159ca2 erpt: add remaining SubmitFsInfo helpers 2023-10-27 16:22:10 -07:00
Michael Scire
2dd93851d9 erpt: SubmitFileSystemProxyErrorInfo 2023-10-27 16:22:09 -07:00
Michael Scire
04ba43ff98 erpt: GetMmcErrorInfo, GetSdCard*Info 2023-10-27 16:22:09 -07:00
Michael Scire
f67c400289 erpt: begin SubmitFsinfo (SubmitMmcDetailInfo) 2023-10-27 16:22:09 -07:00
Michael Scire
71e35e4880 jpegdec: fix abort check on output width 2023-10-27 16:22:08 -07:00
Michael Scire
166c49c893 jpegdec: update to reflect 17.0.0 changes 2023-10-27 16:22:08 -07:00
Michael Scire
44809d30cb pm: adjust resource limit function names 2023-10-27 16:22:07 -07:00
Michael Scire
944ff3d5f6 ncm: fix two comments 2023-10-16 12:30:44 -07:00
Michael Scire
2125f3c404 ncm: better detect + fix 17 brick after-the-fact
This adds detection for missing-save or empty-save, and rebuilds in either case.
2023-10-16 12:30:44 -07:00
Liam
8d495c256e fs: add missing stub for GetProgramId 2023-10-16 12:30:44 -07:00
Michael Scire
132558c338 erpt: amend min-version for latest CreateReportWithAttachments 2023-10-12 09:22:33 -07:00
Michael Scire
5d5699a7e8 ncm: work around change in Nintendo save handling behavior
Static save files do not require an entry in the save data indexer to mount.
Prior to 17.0.0, save data files were considered static if userid was 0.
In 17.0.0+, only 8000000000000000 is static.

However, some users using cfw do not have an entry for 8000000000000120 in the indexer,
for various reasons (but mostly manual nand-restore, I think). Thus, on boot of 17.0.0+,
FS will say 8000000000000120 is not present (not in indexer), and NCM will create it anew.

The 8000000000000120 save will then be empty, and then the firmware can't boot.

To workaround this, logic has been re-enabled on 17.0.0+ for building the content meta database.
Thus, if the user encounters this error, the 8000000000000120 save will be emptied, but then
it will be automatically reconstructed, fixing the problem.
2023-10-12 09:22:32 -07:00