1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-08 21:21:48 +00:00
Atmosphere/libraries/libstratosphere/source/ncm
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
..
ncm_api.cpp boot2: update for 16.0.0 2023-02-22 17:19:51 -08:00
ncm_content_id_utils.cpp ams: support building unit test programs on windows/linux/macos 2022-03-21 17:21:44 -07:00
ncm_content_info_utils.cpp ams: use R_SUCCEED, R_THROW globally 2022-03-26 00:14:36 -07:00
ncm_content_management_utils.cpp libstrat: make build with new ncm/fs api changes (sysmodules probably fail to build) 2023-02-22 17:19:51 -08:00
ncm_content_manager_factory.cpp ams: support building unit test programs on windows/linux/macos 2022-03-21 17:21:44 -07:00
ncm_content_manager_factory.hpp ams: support building unit test programs on windows/linux/macos 2022-03-21 17:21:44 -07:00
ncm_content_manager_impl.cpp ncm: work around change in Nintendo save handling behavior 2023-10-12 08:17:05 -07:00
ncm_content_meta.cpp ncm: update for new 17.0.0 apis 2023-10-11 12:31:37 -07:00
ncm_content_meta_database_impl.cpp ncm: update for new 17.0.0 apis 2023-10-11 12:31:37 -07:00
ncm_content_meta_database_impl.hpp ncm: update for new 17.0.0 apis 2023-10-11 12:31:37 -07:00
ncm_content_meta_database_impl_base.hpp ncm: update for new 17.0.0 apis 2023-10-11 12:31:37 -07:00
ncm_content_meta_type.cpp ncm: update enums, refactor comparison operators 2022-10-18 11:10:17 -07:00
ncm_content_meta_utils.cpp libstrat: make build with new ncm/fs api changes (sysmodules probably fail to build) 2023-02-22 17:19:51 -08:00
ncm_content_storage_impl.cpp ncm: update for new 17.0.0 apis 2023-10-11 12:31:37 -07:00
ncm_content_storage_impl.hpp ncm: update for new 17.0.0 apis 2023-10-11 12:31:37 -07:00
ncm_content_storage_impl_base.hpp ncm: update for new 17.0.0 apis 2023-10-11 12:31:37 -07:00
ncm_extended_data_mapper.hpp libstrat: make build with new ncm/fs api changes (sysmodules probably fail to build) 2023-02-22 17:19:51 -08:00
ncm_file_mapper_file.hpp ncm: update client code to better reflect latest sysupdate 2022-03-21 17:21:44 -07:00
ncm_fs_utils.cpp ams: use R_SUCCEED, R_THROW globally 2022-03-26 00:14:36 -07:00
ncm_fs_utils.hpp libstrat: make build with new ncm/fs api changes (sysmodules probably fail to build) 2023-02-22 17:19:51 -08:00
ncm_host_content_storage_impl.cpp ncm: update for new 17.0.0 apis 2023-10-11 12:31:37 -07:00
ncm_host_content_storage_impl.hpp ncm: update for new 17.0.0 apis 2023-10-11 12:31:37 -07:00
ncm_install_task_base.cpp libstrat: make build with new ncm/fs api changes (sysmodules probably fail to build) 2023-02-22 17:19:51 -08:00
ncm_install_task_data.cpp ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
ncm_integrated_content_meta_database_impl.cpp ncm: update for new 17.0.0 apis 2023-10-11 12:31:37 -07:00
ncm_integrated_content_storage_impl.cpp ncm: update for new 17.0.0 apis 2023-10-11 12:31:37 -07:00
ncm_make_path.cpp ncm: update client code to better reflect latest sysupdate 2022-03-21 17:21:44 -07:00
ncm_memory_report.cpp ams: deduplicate static initialization logic 2021-12-13 13:07:03 -08:00
ncm_on_memory_content_meta_database_impl.cpp ams: use R_SUCCEED, R_THROW globally 2022-03-26 00:14:36 -07:00
ncm_on_memory_content_meta_database_impl.hpp
ncm_package_install_task.cpp ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
ncm_package_install_task_base.cpp ams: use R_SUCCEED, R_THROW globally 2022-03-26 00:14:36 -07:00
ncm_package_system_downgrade_task.cpp ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
ncm_package_system_update_task.cpp ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
ncm_placeholder_accessor.cpp ams: globally prefer R_RETURN to return for ams::Result 2022-03-26 14:48:33 -07:00
ncm_placeholder_accessor.hpp ncm: hot take, uninitialized data bad 2022-03-23 09:10:50 -07:00
ncm_read_only_content_storage_impl.cpp ncm: update for new 17.0.0 apis 2023-10-11 12:31:37 -07:00
ncm_read_only_content_storage_impl.hpp ncm: update for new 17.0.0 apis 2023-10-11 12:31:37 -07:00
ncm_registered_host_content.cpp ams: use R_SUCCEED, R_THROW globally 2022-03-26 00:14:36 -07:00
ncm_remote_content_manager_impl.hpp boot2: update for 16.0.0 2023-02-22 17:19:51 -08:00
ncm_remote_content_meta_database_impl.hpp ncm: update for new 17.0.0 apis 2023-10-11 12:31:37 -07:00
ncm_remote_content_storage_impl.hpp ncm: update for new 17.0.0 apis 2023-10-11 12:31:37 -07:00
ncm_storage_utils.cpp ams: use R_SUCCEED, R_THROW globally 2022-03-26 00:14:36 -07:00
ncm_submission_package_install_task.cpp ams: use R_SUCCEED, R_THROW globally 2022-03-26 00:14:36 -07:00