Commit Graph

697 Commits

Author SHA1 Message Date
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
Michael Scire
338d7ce940 bpc.mitm/exo: support pmic reboot/shutdown on mariko (thanks @CTCaer) 2023-10-12 09:22:32 -07:00
Michael Scire
77ae1814ff erpt: remove deprecated fields, they didn't actually change IDs, just the mapping between id and name table index 2023-10-12 09:22:32 -07:00
Michael Scire
054eeddc0c erpt: Add basic (TODO-impl post-prerelease) support for 17.0.0 changes 2023-10-12 09:22:30 -07:00
Michael Scire
ee56715f3f fs: update OpenCodeFileSystem abi for 17.0.0 2023-10-12 09:22:30 -07:00
Michael Scire
c9a576e990 ncm: update for new 17.0.0 apis 2023-10-12 09:22:29 -07:00
Michael Scire
38cc50294b exo/spl: Add new EsCommonKeyType 2023-10-12 09:22:29 -07:00
Michael Scire
5c8a8adc9a fusee/exo: implement the usual changes for new firmware support 2023-10-12 09:22:28 -07:00
Liam
540ca1351a dmnt.gen2: enable attach to arbitrary program id 2023-10-12 09:22:20 -07:00
Michael Scire
c3dc418a28 ams: add enum recognition for 16.1.0 2023-08-21 17:26:50 -07:00
Michael Scire
ea17b60da6 fssystem: fix typo error in BucketTree::Visitor::MoveNext 2023-08-21 17:26:50 -07:00
Liam
05852b0ffd libstrat: comment fixes for fssystem 2023-08-21 17:26:50 -07:00
Michael Scire
450218773f libstrat: fix more minor style issues pointed out by Pharynx 2023-08-21 17:26:49 -07:00
Michael Scire
f6abe32331 fssystem: fix stupid issue in NodeBuffer move-ctor
Code compiles with this constructor deleted, so it wasn't used, but even so...
2023-08-21 17:26:49 -07:00
Michael Scire
390356cd9e mitm: fix errant include on non-hos 2023-08-21 17:26:49 -07:00
SciresM
4e7ae82b38 romfs/ams.mitm/pm: refactor to dynamically steal heap for certain games. (#2122)
* fs.mitm: skeleton the use of special allocation in romfs build

* pm: add api for ams.mitm to steal application memory

* pm/mitm: okay, that api won't work, try a different one

* romfs: revert memory usage increases; we'll handle torture games case-by-case.

* pm/romfs: first (broken?) pass at dynamic heap.

I cannot wait to figure out all the ways this is wrong.

* Release the dynamic heap a little more eagerly

* romfs: animal crossing is also not a nice game

* romfs: fix issues in close-during-build

* romfs: zelda is a blight upon this earth
2023-05-14 03:16:42 -07:00
Michael Scire
cd0fc2c1d5 ams: recognize 16.0.3('s FS) 2023-05-08 18:06:09 -07:00
Michael Scire
5d883f22c8 ams: fix compilation with gcc 13 2023-05-08 18:06:07 -07:00
Michael Scire
ecc8b18111 ams: add 16.0.2 enum 2023-04-17 20:40:16 -07:00
Michael Scire
7340e2eaba docs: bump version, 16.0.1 exists too 2023-04-17 14:19:32 -07:00
Michael Scire
db46d9d45e settings: add os guard 2023-03-13 17:17:09 -07:00
ndeadly
2f6ea652d7 Add system setting to mirror bluetooth pairing database to sd card (#1787)
* ams_mitm: add ability to mirror bluetooth device pairing database to sd card via a system setting

* ams_mitm: address requested stylistic changes

* ams_mitm: make use of R_SUCCEED macro

* ams_mitm: use settings::BluetoothDevicesSettings instead of libnx type

* ams_mitm: fix logic error when truncating pairing database on read

* Update .ini comment

* ams_mitm: missing R_TRY around call to fs::FlushFile

* stratosphere: remove union from BluetoothDevicesSettings type

---------

Co-authored-by: ndeadly <24677491+ndeadly@users.noreply.github.com>
2023-03-13 17:17:08 -07:00
Michael Scire
a1e186b715 windows: re-enable lto for os/fs libraries 2023-03-13 17:17:07 -07:00
Michael Scire
099982f909 windows: add brave new mingw compat hook for gcc 12.2.0+ 2023-03-13 17:17:06 -07:00
Michael Scire
51e932c88f os: add UnsafeMemory apis 2023-03-13 17:17:04 -07:00
Michael Scire
6cb324a89c erpt: update server code for 16.0.0 logic changes 2023-03-13 17:17:03 -07:00
Michael Scire
af0d008900 ncm: alignment was changed for PlaceHolderId/ContentId in 16.0.0 2023-02-23 09:00:38 -07:00
Michael Scire
7a77f2ac8d ncm: fix inversion in activation skipping 2023-02-23 09:00:38 -07:00
Michael Scire
f4a976c2c7 ncm: Add IntegratedContent*Impl 2023-02-23 09:00:37 -07:00
Michael Scire
a203daa849 ncm: first pass at ContentManagerImpl refactor (missing the IntegratedImpls, won't link) 2023-02-23 09:00:37 -07:00
Michael Scire
8cdda02e4d ncm: fix copy/paste error in switch case 2023-02-23 09:00:36 -07:00
Michael Scire
1465b1447b libstrat: make build with new ncm/fs api changes (sysmodules probably fail to build) 2023-02-23 09:00:35 -07:00
Michael Scire
c93b437ad7 erpt: update for new ids 2023-02-23 09:00:35 -07:00
Michael Scire
3cba51b85f boot2: update for 16.0.0 2023-02-23 09:00:35 -07:00
Michael Scire
429f3aa49d kern: better divide non-secure size, don't waste fatal memory unless necessary 2023-02-23 09:00:33 -07:00
Michael Scire
712c21a744 gpio: really not sure how this works before, lol 2023-02-23 09:00:26 -07:00
Michael Scire
5ba19935cb erpt: fix multiple issues with automatic report cleanup (thanks @yellows8)
* Setting retrieval was performed before the call that used the setting.
* Call to detect number of files passed incomplete path and was guaranteed to fail.
* Call to delete reports passed incomplete path and was guaranteed to do nothing.
2023-01-24 14:39:17 -07:00
Michael Scire
b2232894f3 ncm: update enums, refactor comparison operators 2022-10-18 11:10:46 -07:00