1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-19 17:02:14 +00:00
Atmosphere/libraries/libstratosphere/source
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
..
ams bpc.mitm/exo: support pmic reboot/shutdown on mariko (thanks @CTCaer) 2023-10-12 08:55:58 -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 ams: support building unit test programs on windows/linux/macos 2022-03-21 17:21:44 -07:00
crypto strat: only include windows.h in translation units where actually needed 2022-03-21 17:21:44 -07:00
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 ams: support building unit test programs on windows/linux/macos 2022-03-21 17:21:44 -07:00
erpt/srv erpt: remove deprecated fields, they didn't actually change IDs, just the mapping between id and name table index 2023-10-12 08:55:58 -07:00
err ams: support building unit test programs on windows/linux/macos 2022-03-21 17:21:44 -07:00
fs fs: update OpenCodeFileSystem abi for 17.0.0 2023-10-12 08:55:58 -07:00
fssrv fs: update OpenCodeFileSystem abi for 17.0.0 2023-10-12 08:55:58 -07:00
fssystem fssystem: fix typo error in BucketTree::Visitor::MoveNext 2023-08-15 14:47:09 -07:00
gc/impl ncm: update client code to better reflect latest sysupdate 2022-03-21 17:21:44 -07:00
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 ams: support building unit test programs on windows/linux/macos 2022-03-21 17:21:44 -07:00
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 ams: support building unit test programs on windows/linux/macos 2022-03-21 17:21:44 -07:00
lr lr: new AOC commands use MapAlias for paths... 2022-10-12 09:15:16 -07:00
mem strat: only include windows.h in translation units where actually needed 2022-03-21 17:21:44 -07:00
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:55:58 -07:00
nim ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
nsd/impl/device strat: use m_ for member variables 2021-10-10 00:14:06 -07:00
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 ams: support building unit test programs on windows/linux/macos 2022-03-21 17:21:44 -07:00
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 ams: support building unit test programs on windows/linux/macos 2022-03-21 17:21:44 -07:00
pm dmnt.gen2: enable attach to arbitrary program id 2023-10-11 19:50:09 -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 ams: support building unit test programs on windows/linux/macos 2022-03-21 17:21:44 -07:00
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-12 08:55:58 -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 lz4: update to git-master 2022-03-21 17:21:44 -07:00
wec ams: support building unit test programs on windows/linux/macos 2022-03-21 17:21:44 -07:00
service_guard.h