Atmosphere/libraries/libstratosphere
Michael Scire 02e987819b 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 08:55:58 -07:00
..
include bpc.mitm/exo: support pmic reboot/shutdown on mariko (thanks @CTCaer) 2023-10-12 08:55:58 -07:00
source ncm: work around change in Nintendo save handling behavior 2023-10-12 08:55:58 -07:00
discard-ehframe.ld stratosphere: discard unnecessary .eh_frame segment 2021-01-13 08:30:24 -08:00
libstratosphere.mk windows: re-enable lto for os/fs libraries 2023-03-09 23:46:31 -07:00
Makefile ams: support building unit test programs on windows/linux/macos 2022-03-21 17:21:44 -07:00
README.md licensing: update exemptions (approved by contributors). 2020-04-16 17:33:04 -07:00
stratosphere.specs stratosphere: discard unnecessary .eh_frame segment 2021-01-13 08:30:24 -08:00

License

libstratosphere is a work-in-progress C++ library for development of system modules for the Nintendo Switch.

It is built around extending libnx.

It also provides bindings for custom extensions to Horizon OS implemented by Atmosphère.

Licensing

This software is licensed under the terms of the GPLv2, with exemptions for specific projects noted below.

You can find a copy of the license in the LICENSE file.

Exemptions:

  • The yuzu Nintendo Switch emulator and the Ryujinx Team and Contributors are exempt from GPLv2 licensing. They are permitted, each at their individual discretion, to instead license any source code authored for the libstratosphere project as either GPLv2 or later or the MIT license. In doing so, they may alter, supplement, or entirely remove the copyright notice for each file they choose to relicense. Neither the Atmosphère project nor its individual contributors shall assert their moral rights against any of the aforementioned projects.
  • Nintendo is exempt from GPLv2 licensing and may (at its option) instead license any source code authored for the libstratosphere project under the Zero-Clause BSD license.

Credits

libstratosphere is currently being developed and maintained by SciresM.

In addition to those credited in Atmosphère's credits, we would like to thank for contributing to libstratosphere in some significant way:

  • hthh
  • fincs
  • lioncash
  • misson20000
  • neobrain
  • yellows8
  • @Nintendo