1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-08 13:11:49 +00:00
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 boot2: update for 16.0.0 2023-02-22 17:19:51 -08:00
cal ams: use R_SUCCEED, R_THROW globally 2022-03-26 00:14:36 -07:00
capsrv ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
cfg
crypto
cs
dd kern: update for new device map semantics 2022-10-12 09:15:16 -07:00
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 gpio: really not sure how this works before, lol 2023-01-30 23:13:45 -07:00
hid ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
hos ams: use R_SUCCEED, R_THROW globally 2022-03-26 00:14:36 -07:00
htc ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
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 ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
i2c ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
init
kvdb ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
ldr ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
lm ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
lmem
lr lr: new AOC commands use MapAlias for paths... 2022-10-12 09:15:16 -07:00
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 ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
nsd/impl/device
os os: add UnsafeMemory apis 2023-03-01 03:20:49 -07:00
osdbg ams: use R_SUCCEED, R_THROW globally 2022-03-26 00:14:36 -07:00
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 ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
psc ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
pwm strat: update for code changes found in boot (closes #1797) 2022-05-05 17:45:55 -07:00
ro/impl
scs ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
settings ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
sf ams: fix compilation with gcc 13 2023-05-07 03:36:46 -07:00
sm ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
socket util: update some bit utility logic 2022-04-03 10:51:46 -07:00
spl exo/spl: Add new EsCommonKeyType 2023-10-11 11:03:17 -07:00
sprofile/srv ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
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 ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
util
wec
service_guard.h