Atmosphere/libraries/libstratosphere/source
Michael Scire 337fcf07a4 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:17:05 -07:00
..
ams bpc.mitm/exo: support pmic reboot/shutdown on mariko (thanks @CTCaer) 2023-10-11 18:50:38 -07:00
boot2
cal
capsrv
cfg
crypto
cs cs: prevent exceptions from manifesting 2021-10-07 19:48:40 -07:00
dd
ddsf ams: use R_SUCCEED, R_THROW globally 2022-03-26 00:14:36 -07:00
diag diag: fix process name cache 2022-08-11 14:19:26 -07:00
dmnt
erpt/srv erpt: remove deprecated fields, they didn't actually change IDs, just the mapping between id and name table index 2023-10-11 17:48:40 -07:00
err
fs fs: update OpenCodeFileSystem abi for 17.0.0 2023-10-11 12:45:11 -07:00
fssrv fs: update OpenCodeFileSystem abi for 17.0.0 2023-10-11 12:45:11 -07:00
fssystem fssystem: fix typo error in BucketTree::Visitor::MoveNext 2023-08-15 14:47:09 -07:00
gc/impl
gpio
hid
hos
htc
htcfs ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
htclow strat: add windows socket api, linux/macos TODO 2022-03-27 14:36:31 -07:00
htcs
i2c
init
kvdb
ldr ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
lm
lmem
lr
mem
mitm mitm: fix errant include on non-hos 2023-06-06 19:32:06 -07:00
ncm ncm: work around change in Nintendo save handling behavior 2023-10-12 08:17:05 -07:00
nim
nsd/impl/device
os os: add UnsafeMemory apis 2023-03-01 03:20:49 -07:00
osdbg
patcher
pgl libstrat: make build with new ncm/fs api changes (sysmodules probably fail to build) 2023-02-22 17:19:51 -08:00
pinmux/driver
pm romfs/ams.mitm/pm: refactor to dynamically steal heap for certain games. (#2122) 2023-05-14 03:06:52 -07:00
powctl
psc
pwm
ro/impl
scs
settings
sf ams: fix compilation with gcc 13 2023-05-07 03:36:46 -07:00
sm
socket
spl exo/spl: Add new EsCommonKeyType 2023-10-11 11:03:17 -07:00
sprofile/srv
time strat: add windows socket api, linux/macos TODO 2022-03-27 14:36:31 -07:00
updater ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
usb
util
wec
service_guard.h