From 4646581e9304c48e60dd55047842758ddf579f68 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 24 Mar 2022 08:43:40 -0700 Subject: [PATCH] fs: for my sanity, begin tracking version where code was last checked for accuracy --- .../fs_dbm_hierarchical_rom_file_table.hpp | 1 + .../common/fs_dbm_rom_key_value_storage.hpp | 1 + .../fs/common/fs_dbm_rom_path_tool.hpp | 2 + .../fs/common/fs_dbm_rom_types.hpp | 1 + .../fs/common/fs_directory_path_parser.hpp | 1 + .../fs/common/fs_file_storage.hpp | 2 + .../include/stratosphere/fs/fs_access_log.hpp | 2 + .../include/stratosphere/fs/fs_api.hpp | 2 + .../stratosphere/fs/fs_application.hpp | 2 + .../include/stratosphere/fs/fs_bis.hpp | 2 + .../include/stratosphere/fs/fs_code.hpp | 1 + .../fs/fs_code_verification_data.hpp | 1 + .../include/stratosphere/fs/fs_common.hpp | 1 + .../include/stratosphere/fs/fs_content.hpp | 1 + .../stratosphere/fs/fs_content_storage.hpp | 1 + .../stratosphere/fs/fs_device_save_data.hpp | 1 + .../include/stratosphere/fs/fs_directory.hpp | 1 + .../fs/fs_filesystem_for_debug.hpp | 1 + .../include/stratosphere/fs/fs_game_card.hpp | 1 + .../include/stratosphere/fs/fs_host.hpp | 1 + .../stratosphere/fs/fs_i_event_notifier.hpp | 1 + .../stratosphere/fs/fs_image_directory.hpp | 1 + .../include/stratosphere/fs/fs_istorage.hpp | 1 + .../stratosphere/fs/fs_memory_management.hpp | 1 + .../stratosphere/fs/fs_memory_storage.hpp | 1 + .../include/stratosphere/fs/fs_mount.hpp | 1 + .../stratosphere/fs/fs_operate_range.hpp | 1 + .../include/stratosphere/fs/fs_path.hpp | 1 + .../stratosphere/fs/fs_path_utility.hpp | 1 + .../include/stratosphere/fs/fs_priority.hpp | 1 + .../fs/fs_program_index_map_info.hpp | 1 + .../stratosphere/fs/fs_query_range.hpp | 1 + .../fs/fs_read_only_filesystem.hpp | 2 + .../stratosphere/fs/fs_result_config.hpp | 1 + .../include/stratosphere/fs/fs_rights_id.hpp | 1 + .../stratosphere/fs/fs_romfs_filesystem.hpp | 1 + .../fs/fs_save_data_management.hpp | 1 + .../fs/fs_save_data_transaction.hpp | 1 + .../stratosphere/fs/fs_save_data_types.hpp | 1 + .../include/stratosphere/fs/fs_sd_card.hpp | 1 + .../fs/fs_shared_filesystem_holder.hpp | 54 ------------------- .../fs/fs_signed_system_partition.hpp | 1 + .../stratosphere/fs/fs_speed_emulation.hpp | 1 + .../stratosphere/fs/fs_storage_type.hpp | 1 + .../include/stratosphere/fs/fs_substorage.hpp | 1 + .../stratosphere/fs/fs_system_data.hpp | 1 + .../stratosphere/fs/fs_system_save_data.hpp | 1 + .../stratosphere/fs/fsa/fs_idirectory.hpp | 1 + .../stratosphere/fs/fsa/fs_ifilesystem.hpp | 1 + .../stratosphere/fs/fsa/fs_registrar.hpp | 1 + .../fs/impl/fs_access_log_impl.hpp | 1 + .../fs/impl/fs_common_mount_name.hpp | 2 + .../include/stratosphere/fs/impl/fs_data.hpp | 1 + .../fs/impl/fs_filesystem_proxy_type.hpp | 1 + .../fs/impl/fs_fs_inline_context_utils.hpp | 1 + .../fs_hash_generator_factory_selector.hpp | 1 + .../stratosphere/fs/impl/fs_newable.hpp | 1 + .../fs/impl/fs_priority_utils.hpp | 1 + .../stratosphere/fs/impl/fs_result_utils.hpp | 1 + .../fssrv_local_file_system_creator.hpp | 1 + .../fssrv_partition_file_system_creator.hpp | 1 + .../fssrv_rom_file_system_creator.hpp | 1 + ...fssrv_subdirectory_file_system_creator.hpp | 1 + .../fssrv/fssrv_file_system_proxy_api.hpp | 1 + .../fssrv/fssrv_file_system_proxy_impl.hpp | 10 ++-- .../fssrv/fssrv_i_file_system_creator.hpp | 6 +++ .../fssrv_memory_resource_from_exp_heap.hpp | 2 + ...emory_resource_from_standard_allocator.hpp | 1 + .../fssrv_nca_file_system_service_impl.hpp | 1 + .../fssrv/fssrv_program_registry_impl.hpp | 10 ++-- .../fssrv/fssrv_program_registry_service.hpp | 1 + .../fssrv/impl/fssrv_access_control.hpp | 2 + .../fssrv/impl/fssrv_access_control_bits.hpp | 2 + .../fssrv/impl/fssrv_external_key_manager.hpp | 2 + ...fssrv_file_system_proxy_service_object.hpp | 1 + ...rv_impl_program_index_map_info_manager.hpp | 2 + .../fssrv_filesystem_interface_adapter.hpp | 3 ++ .../fssrv_storage_interface_adapter.hpp | 1 + .../fssrv/sf/fssrv_sf_i_device_operator.hpp | 1 + .../fssrv/sf/fssrv_sf_i_event_notifier.hpp | 1 + .../fssrv/sf/fssrv_sf_i_file_system_proxy.hpp | 1 + ...ssrv_sf_i_file_system_proxy_for_loader.hpp | 1 + .../fssrv/sf/fssrv_sf_i_program_registry.hpp | 1 + .../fssrv/sf/fssrv_sf_idirectory.hpp | 1 + .../stratosphere/fssrv/sf/fssrv_sf_ifile.hpp | 1 + .../fssrv/sf/fssrv_sf_ifilesystem.hpp | 1 + .../fssrv/sf/fssrv_sf_istorage.hpp | 1 + .../stratosphere/fssrv/sf/fssrv_sf_path.hpp | 1 + .../buffers/fssystem_buffer_manager_utils.hpp | 4 ++ .../fssystem_file_system_buddy_heap.hpp | 1 + .../fssystem_file_system_buffer_manager.hpp | 1 + ...ystem_aes_ctr_counter_extended_storage.hpp | 1 + .../fssystem/fssystem_aes_ctr_storage.hpp | 1 + .../fssystem/fssystem_aes_xts_storage.hpp | 1 + .../fssystem_alignment_matching_storage.hpp | 3 ++ ...system_alignment_matching_storage_impl.hpp | 1 + .../fssystem/fssystem_allocator_utility.hpp | 1 + .../fssystem/fssystem_asynchronous_access.hpp | 3 ++ .../fssystem/fssystem_bitmap_utils.hpp | 2 + .../fssystem_block_cache_buffered_storage.hpp | 1 + .../fssystem/fssystem_bucket_tree.hpp | 2 + .../fssystem_bucket_tree_template_impl.hpp | 1 + .../fssystem/fssystem_bucket_tree_utils.hpp | 2 + .../fssystem/fssystem_buffered_storage.hpp | 1 + .../fssystem/fssystem_compressed_storage.hpp | 3 +- .../fssystem/fssystem_compression_common.hpp | 1 + ...fssystem_directory_savedata_filesystem.hpp | 1 + .../fssystem_forwarding_file_system.hpp | 3 ++ ...rchical_integrity_verification_storage.hpp | 4 +- .../fssystem_i_hash_256_generator.hpp | 3 ++ .../fssystem/fssystem_indirect_storage.hpp | 1 + ...ssystem_indirect_storage_template_impl.hpp | 1 + .../fssystem_integrity_romfs_storage.hpp | 2 + ...ssystem_integrity_verification_storage.hpp | 2 + .../fssystem/fssystem_local_file_system.hpp | 2 +- .../fssystem_nca_file_system_driver.hpp | 2 + .../fssystem/fssystem_nca_header.hpp | 2 + .../fssystem_partition_file_system.hpp | 2 + .../fssystem_partition_file_system_meta.hpp | 2 + .../stratosphere/fssystem/fssystem_pimpl.hpp | 2 + .../fssystem/fssystem_pooled_buffer.hpp | 2 + .../fssystem/fssystem_romfs_file_system.hpp | 2 + .../fssystem/fssystem_service_context.hpp | 2 + .../fssystem_sha256_hash_generator.hpp | 2 + .../fssystem/fssystem_sparse_storage.hpp | 2 + ...fssystem_speed_emulation_configuration.hpp | 2 + .../fssystem_subdirectory_filesystem.hpp | 2 + .../fssystem_thread_priority_changer.hpp | 2 + .../fssystem/fssystem_utility.hpp | 2 + .../impl/fssystem_block_cache_manager.hpp | 1 + .../impl/os_thread_manager_impl.pthread.inc | 1 + .../source/spl/spl_api.os.generic.cpp | 1 + .../source/sysupdater/sysupdater_fs_utils.cpp | 2 +- 133 files changed, 195 insertions(+), 66 deletions(-) delete mode 100644 libraries/libstratosphere/include/stratosphere/fs/fs_shared_filesystem_holder.hpp diff --git a/libraries/libstratosphere/include/stratosphere/fs/common/fs_dbm_hierarchical_rom_file_table.hpp b/libraries/libstratosphere/include/stratosphere/fs/common/fs_dbm_hierarchical_rom_file_table.hpp index 17de21778..298719b2b 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/common/fs_dbm_hierarchical_rom_file_table.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/common/fs_dbm_hierarchical_rom_file_table.hpp @@ -20,6 +20,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ class HierarchicalRomFileTable { public: using Position = u32; diff --git a/libraries/libstratosphere/include/stratosphere/fs/common/fs_dbm_rom_key_value_storage.hpp b/libraries/libstratosphere/include/stratosphere/fs/common/fs_dbm_rom_key_value_storage.hpp index 1304420cb..6e8afb1d6 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/common/fs_dbm_rom_key_value_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/common/fs_dbm_rom_key_value_storage.hpp @@ -19,6 +19,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ template class KeyValueRomStorageTemplate { public: diff --git a/libraries/libstratosphere/include/stratosphere/fs/common/fs_dbm_rom_path_tool.hpp b/libraries/libstratosphere/include/stratosphere/fs/common/fs_dbm_rom_path_tool.hpp index deadc0fb7..9780644ee 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/common/fs_dbm_rom_path_tool.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/common/fs_dbm_rom_path_tool.hpp @@ -18,6 +18,8 @@ namespace ams::fs::RomPathTool { + /* ACCURATE_TO_VERSION: Unknown */ + constexpr inline u32 MaxPathLength = 0x300; struct RomEntryName { diff --git a/libraries/libstratosphere/include/stratosphere/fs/common/fs_dbm_rom_types.hpp b/libraries/libstratosphere/include/stratosphere/fs/common/fs_dbm_rom_types.hpp index 9059c0b98..d9b4f8482 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/common/fs_dbm_rom_types.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/common/fs_dbm_rom_types.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ using RomPathChar = char; using RomFileId = s32; using RomDirectoryId = s32; diff --git a/libraries/libstratosphere/include/stratosphere/fs/common/fs_directory_path_parser.hpp b/libraries/libstratosphere/include/stratosphere/fs/common/fs_directory_path_parser.hpp index fcff1022f..5476cd923 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/common/fs_directory_path_parser.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/common/fs_directory_path_parser.hpp @@ -19,6 +19,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class DirectoryPathParser { NON_COPYABLE(DirectoryPathParser); NON_MOVEABLE(DirectoryPathParser); diff --git a/libraries/libstratosphere/include/stratosphere/fs/common/fs_file_storage.hpp b/libraries/libstratosphere/include/stratosphere/fs/common/fs_file_storage.hpp index c38fe1fd4..d42d30b9a 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/common/fs_file_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/common/fs_file_storage.hpp @@ -22,6 +22,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ class FileStorage : public IStorage, public impl::Newable { NON_COPYABLE(FileStorage); NON_MOVEABLE(FileStorage); @@ -74,6 +75,7 @@ namespace ams::fs { virtual Result OperateRange(void *dst, size_t dst_size, OperationId op_id, s64 offset, s64 size, const void *src, size_t src_size) override; }; + /* ACCURATE_TO_VERSION: Unknown */ class FileStorageBasedFileSystem : public FileStorage { NON_COPYABLE(FileStorageBasedFileSystem); NON_MOVEABLE(FileStorageBasedFileSystem); diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_access_log.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_access_log.hpp index 32fee72c4..cb1b10619 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_access_log.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_access_log.hpp @@ -18,6 +18,8 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ + enum AccessLogMode : u32 { AccessLogMode_None = 0, AccessLogMode_Log = 1, diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_api.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_api.hpp index 48243f87b..96370748c 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_api.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_api.hpp @@ -18,6 +18,8 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ + void InitializeForSystem(); void InitializeWithMultiSessionForSystem(); diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_application.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_application.hpp index bd2f35322..3301435cd 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_application.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_application.hpp @@ -18,6 +18,8 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ + Result MountApplicationPackage(const char *name, const char *common_path); } diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_bis.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_bis.hpp index 23fabd9f1..01357eb45 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_bis.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_bis.hpp @@ -19,6 +19,8 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ + enum class BisPartitionId { /* Boot0 */ BootPartition1Root = 0, diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_code.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_code.hpp index 889195dcf..514c1b391 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_code.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_code.hpp @@ -20,6 +20,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ Result MountCode(CodeVerificationData *out, const char *name, const char *path, ncm::ProgramId program_id); Result MountCodeForAtmosphereWithRedirection(CodeVerificationData *out, const char *name, const char *path, ncm::ProgramId program_id, bool is_hbl, bool is_specific); diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_code_verification_data.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_code_verification_data.hpp index ef6bcf125..e687cc950 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_code_verification_data.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_code_verification_data.hpp @@ -19,6 +19,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ struct CodeVerificationData : public ams::sf::LargeData { u8 signature[crypto::Rsa2048PssSha256Verifier::SignatureSize]; u8 target_hash[crypto::Rsa2048PssSha256Verifier::HashSize]; diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_common.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_common.hpp index 1e0f833b5..3419faac5 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_common.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_common.hpp @@ -21,6 +21,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ struct Int64 { u32 low; u32 high; diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_content.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_content.hpp index 2cdc6488b..5a709e7e8 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_content.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_content.hpp @@ -19,6 +19,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ enum ContentType { ContentType_Meta = 0, ContentType_Control = 1, diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_content_storage.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_content_storage.hpp index fcc049eb9..9fa587a52 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_content_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_content_storage.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ enum class ContentStorageId : u32 { System = 0, User = 1, diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_device_save_data.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_device_save_data.hpp index 8d1c61fb2..7dcf57645 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_device_save_data.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_device_save_data.hpp @@ -19,6 +19,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ Result MountDeviceSaveData(const char *name); Result MountDeviceSaveData(const char *name, const ncm::ApplicationId application_id); diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_directory.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_directory.hpp index 9f7ccd2a2..d51ea3c04 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_directory.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_directory.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ constexpr inline size_t EntryNameLengthMax = 0x300; struct DirectoryEntry { diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_filesystem_for_debug.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_filesystem_for_debug.hpp index 9431814c5..0a1efc575 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_filesystem_for_debug.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_filesystem_for_debug.hpp @@ -20,6 +20,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ struct FileTimeStamp { time::PosixTime create; time::PosixTime modify; diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_game_card.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_game_card.hpp index 0b80a4f89..2ebb52fa6 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_game_card.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_game_card.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ enum class GameCardPartition { Update = 0, Normal = 1, diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_host.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_host.hpp index 07673afc0..264cf84fd 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_host.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_host.hpp @@ -20,6 +20,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ enum MountHostOptionFlag : u32 { MountHostOptionFlag_None = (0 << 0), MountHostOptionFlag_PseudoCaseSensitive = (1 << 0), diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_i_event_notifier.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_i_event_notifier.hpp index 0b320c523..7ff663039 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_i_event_notifier.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_i_event_notifier.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ class IEventNotifier { public: virtual ~IEventNotifier() { /* ... */ } diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_image_directory.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_image_directory.hpp index b8a4af83c..e64cc2715 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_image_directory.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_image_directory.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ enum class ImageDirectoryId { Nand = 0, SdCard = 1, diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_istorage.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_istorage.hpp index aaf3534d6..6894962d1 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_istorage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_istorage.hpp @@ -20,6 +20,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ class IStorage { public: virtual ~IStorage() { /* ... */ } diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_memory_management.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_memory_management.hpp index 8bc884d19..cf8f62304 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_memory_management.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_memory_management.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ using AllocateFunction = void *(*)(size_t); using DeallocateFunction = void (*)(void *, size_t); diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_memory_storage.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_memory_storage.hpp index 9c46fd0fb..dc12f9d02 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_memory_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_memory_storage.hpp @@ -20,6 +20,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ class MemoryStorage : public ::ams::fs::IStorage, public ::ams::fs::impl::Newable { private: u8 * const m_buf; diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_mount.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_mount.hpp index 74f6eb33c..3e6232b2d 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_mount.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_mount.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ constexpr inline size_t MountNameLengthMax = 15; Result ConvertToFsCommonPath(char *dst, size_t dst_size, const char *src); diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_operate_range.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_operate_range.hpp index 4fc311fa6..ad63e5a25 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_operate_range.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_operate_range.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ enum class OperationId : s64 { FillZero = 0, DestroySignature = 1, diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_path.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_path.hpp index 6a6ab20b0..c51ff32e7 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_path.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_path.hpp @@ -23,6 +23,7 @@ namespace ams::fs { class DirectoryPathParser; + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class Path { NON_COPYABLE(Path); NON_MOVEABLE(Path); diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_path_utility.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_path_utility.hpp index b3fc273eb..510c5934e 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_path_utility.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_path_utility.hpp @@ -19,6 +19,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ namespace StringTraits { constexpr inline char DirectorySeparator = '/'; diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_priority.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_priority.hpp index 18e668891..d168ed641 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_priority.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_priority.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ enum Priority { Priority_Realtime = 0, Priority_Normal = 1, diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_program_index_map_info.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_program_index_map_info.hpp index 793aef8f6..c46d5f648 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_program_index_map_info.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_program_index_map_info.hpp @@ -19,6 +19,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ struct ProgramIndexMapInfo { ncm::ProgramId program_id; ncm::ProgramId base_program_id; diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_query_range.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_query_range.hpp index 03b5d52f4..b9fd39792 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_query_range.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_query_range.hpp @@ -19,6 +19,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ struct QueryRangeInfo { s32 aes_ctr_key_type; s32 speed_emulation_type; diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_read_only_filesystem.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_read_only_filesystem.hpp index d549ca909..43e3e9570 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_read_only_filesystem.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_read_only_filesystem.hpp @@ -22,6 +22,8 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ + namespace { class ReadOnlyFile : public fsa::IFile, public impl::Newable { diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_result_config.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_result_config.hpp index 747796a1e..38f3c4e37 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_result_config.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_result_config.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ void SetEnabledAutoAbort(bool enabled); void SetResultHandledByApplication(bool application); diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_rights_id.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_rights_id.hpp index 751435210..b2567281b 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_rights_id.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_rights_id.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ union RightsId { u8 data[0x10]; u64 data64[2]; diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_romfs_filesystem.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_romfs_filesystem.hpp index c68c3c387..b836f17fc 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_romfs_filesystem.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_romfs_filesystem.hpp @@ -23,6 +23,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ class RomFsFileSystem : public fsa::IFileSystem, public impl::Newable { NON_COPYABLE(RomFsFileSystem); public: diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_save_data_management.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_save_data_management.hpp index e14a837b3..9f2b2bba0 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_save_data_management.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_save_data_management.hpp @@ -19,6 +19,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ Result DeleteSaveData(SaveDataId id); Result DeleteSaveData(SaveDataSpaceId space_id, SaveDataId id); diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_save_data_transaction.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_save_data_transaction.hpp index e53ff7b02..7e3f48006 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_save_data_transaction.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_save_data_transaction.hpp @@ -19,6 +19,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ Result CommitSaveData(const char *path); } diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_save_data_types.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_save_data_types.hpp index 559b4ae71..d12ba1e31 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_save_data_types.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_save_data_types.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ using SaveDataId = u64; using SystemSaveDataId = u64; using SystemBcatSaveDataId = SystemSaveDataId; diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_sd_card.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_sd_card.hpp index 780d10efa..6ceda83db 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_sd_card.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_sd_card.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ class IEventNotifier; struct EncryptionSeed { diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_shared_filesystem_holder.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_shared_filesystem_holder.hpp deleted file mode 100644 index 04ce32dfd..000000000 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_shared_filesystem_holder.hpp +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) Atmosphère-NX - * - * This program is free software; you can redistribute it and/or modify it - * under the terms and conditions of the GNU General Public License, - * version 2, as published by the Free Software Foundation. - * - * This program is distributed in the hope it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -#pragma once -#include -#include -#include -#include -#include - -namespace ams::fs { - - class SharedFileSystemHolder : public fsa::IFileSystem, public impl::Newable { - NON_COPYABLE(SharedFileSystemHolder); - NON_MOVEABLE(SharedFileSystemHolder); - private: - std::shared_ptr m_fs; - public: - SharedFileSystemHolder(std::shared_ptr f) : m_fs(std::move(f)) { /* ... */ } - public: - virtual Result DoCreateFile(const fs::Path &path, s64 size, int flags) override { return m_fs->CreateFile(path, size, flags); } - virtual Result DoDeleteFile(const fs::Path &path) override { return m_fs->DeleteFile(path); } - virtual Result DoCreateDirectory(const fs::Path &path) override { return m_fs->CreateDirectory(path); } - virtual Result DoDeleteDirectory(const fs::Path &path) override { return m_fs->DeleteDirectory(path); } - virtual Result DoDeleteDirectoryRecursively(const fs::Path &path) override { return m_fs->DeleteDirectoryRecursively(path); } - virtual Result DoRenameFile(const fs::Path &old_path, const fs::Path &new_path) override { return m_fs->RenameFile(old_path, new_path); } - virtual Result DoRenameDirectory(const fs::Path &old_path, const fs::Path &new_path) override { return m_fs->RenameDirectory(old_path, new_path); } - virtual Result DoGetEntryType(fs::DirectoryEntryType *out, const fs::Path &path) override { return m_fs->GetEntryType(out, path); } - virtual Result DoOpenFile(std::unique_ptr *out_file, const fs::Path &path, fs::OpenMode mode) override { return m_fs->OpenFile(out_file, path, mode); } - virtual Result DoOpenDirectory(std::unique_ptr *out_dir, const fs::Path &path, fs::OpenDirectoryMode mode) override { return m_fs->OpenDirectory(out_dir, path, mode); } - virtual Result DoCommit() override { return m_fs->Commit(); } - virtual Result DoGetFreeSpaceSize(s64 *out, const fs::Path &path) override { return m_fs->GetFreeSpaceSize(out, path); } - virtual Result DoGetTotalSpaceSize(s64 *out, const fs::Path &path) override { return m_fs->GetTotalSpaceSize(out, path); } - virtual Result DoCleanDirectoryRecursively(const fs::Path &path) override { return m_fs->CleanDirectoryRecursively(path); } - - /* These aren't accessible as commands. */ - virtual Result DoCommitProvisionally(s64 counter) override { return m_fs->CommitProvisionally(counter); } - virtual Result DoRollback() override { return m_fs->Rollback(); } - virtual Result DoFlush() override { return m_fs->Flush(); } - }; - -} diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_signed_system_partition.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_signed_system_partition.hpp index 241a10703..ca34d74c7 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_signed_system_partition.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_signed_system_partition.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ bool IsSignedSystemPartitionOnSdCardValid(const char *system_root_path); bool IsSignedSystemPartitionOnSdCardValidDeprecated(); diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_speed_emulation.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_speed_emulation.hpp index d5b14648f..bcfabe5fa 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_speed_emulation.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_speed_emulation.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ enum class SpeedEmulationMode { None = 0, Faster = 1, diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_storage_type.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_storage_type.hpp index d4ea840ae..6522aa6c9 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_storage_type.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_storage_type.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ enum StorageType : s32 { StorageType_SaveData = 0, StorageType_RomFs = 1, diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_substorage.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_substorage.hpp index b0ceaca6d..d98a8e8ca 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_substorage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_substorage.hpp @@ -19,6 +19,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ class SubStorage : public ::ams::fs::IStorage, public ::ams::fs::impl::Newable { private: std::shared_ptr m_shared_base_storage; diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_system_data.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_system_data.hpp index 8f53a68b5..7a980e1f2 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_system_data.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_system_data.hpp @@ -18,6 +18,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ Result QueryMountSystemDataCacheSize(size_t *out, ncm::SystemDataId data_id); Result MountSystemData(const char *name, ncm::SystemDataId data_id); diff --git a/libraries/libstratosphere/include/stratosphere/fs/fs_system_save_data.hpp b/libraries/libstratosphere/include/stratosphere/fs/fs_system_save_data.hpp index af39f6562..99aaef8f4 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fs_system_save_data.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fs_system_save_data.hpp @@ -19,6 +19,7 @@ namespace ams::fs { + /* ACCURATE_TO_VERSION: Unknown */ void DisableAutoSaveDataCreation(); Result CreateSystemSaveData(SystemSaveDataId save_id, s64 size, s64 journal_size, u32 flags); diff --git a/libraries/libstratosphere/include/stratosphere/fs/fsa/fs_idirectory.hpp b/libraries/libstratosphere/include/stratosphere/fs/fsa/fs_idirectory.hpp index f7b59a920..2ad2012b3 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fsa/fs_idirectory.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fsa/fs_idirectory.hpp @@ -20,6 +20,7 @@ namespace ams::fs::fsa { + /* ACCURATE_TO_VERSION: Unknown */ class IDirectory { public: virtual ~IDirectory() { /* ... */ } diff --git a/libraries/libstratosphere/include/stratosphere/fs/fsa/fs_ifilesystem.hpp b/libraries/libstratosphere/include/stratosphere/fs/fsa/fs_ifilesystem.hpp index ebc945efa..ce8903aab 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fsa/fs_ifilesystem.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fsa/fs_ifilesystem.hpp @@ -22,6 +22,7 @@ namespace ams::fs::fsa { + /* ACCURATE_TO_VERSION: Unknown */ class IFile; class IDirectory; diff --git a/libraries/libstratosphere/include/stratosphere/fs/fsa/fs_registrar.hpp b/libraries/libstratosphere/include/stratosphere/fs/fsa/fs_registrar.hpp index 7ff7051bc..92473d78d 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/fsa/fs_registrar.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/fsa/fs_registrar.hpp @@ -19,6 +19,7 @@ namespace ams::fs::fsa { + /* ACCURATE_TO_VERSION: Unknown */ class ICommonMountNameGenerator { public: virtual ~ICommonMountNameGenerator() { /* ... */ } diff --git a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_access_log_impl.hpp b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_access_log_impl.hpp index fe8de1c76..c0f0f6544 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_access_log_impl.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_access_log_impl.hpp @@ -23,6 +23,7 @@ namespace ams::fs::impl { + /* ACCURATE_TO_VERSION: Unknown */ enum AccessLogTarget : u32 { AccessLogTarget_None = (0 << 0), AccessLogTarget_Application = (1 << 0), diff --git a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_common_mount_name.hpp b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_common_mount_name.hpp index 37e12e750..02fdf3fc1 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_common_mount_name.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_common_mount_name.hpp @@ -17,6 +17,8 @@ namespace ams::fs::impl { + /* ACCURATE_TO_VERSION: Unknown */ + /* Delimiting of mount names. */ constexpr inline const char ReservedMountNamePrefixCharacter = '@'; diff --git a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_data.hpp b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_data.hpp index 587b77413..d0cbd4619 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_data.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_data.hpp @@ -18,6 +18,7 @@ namespace ams::fs::impl { + /* ACCURATE_TO_VERSION: Unknown */ Result QueryMountDataCacheSize(size_t *out, ncm::DataId data_id, ncm::StorageId storage_id); Result MountData(const char *name, ncm::DataId data_id, ncm::StorageId storage_id); diff --git a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_filesystem_proxy_type.hpp b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_filesystem_proxy_type.hpp index 3edd296ef..473bf2b97 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_filesystem_proxy_type.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_filesystem_proxy_type.hpp @@ -18,6 +18,7 @@ namespace ams::fs::impl { + /* ACCURATE_TO_VERSION: Unknown */ enum FileSystemProxyType { FileSystemProxyType_Code = 0, FileSystemProxyType_Rom = 1, diff --git a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_fs_inline_context_utils.hpp b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_fs_inline_context_utils.hpp index 9e34378c8..bfd7cc767 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_fs_inline_context_utils.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_fs_inline_context_utils.hpp @@ -19,6 +19,7 @@ namespace ams::fs::impl { + /* ACCURATE_TO_VERSION: Unknown */ constexpr inline u8 TlsIoPriorityMask = 0x7; constexpr inline u8 TlsIoRecursiveCallMask = 0x8; diff --git a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_hash_generator_factory_selector.hpp b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_hash_generator_factory_selector.hpp index b223e71ae..dc1190360 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_hash_generator_factory_selector.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_hash_generator_factory_selector.hpp @@ -18,6 +18,7 @@ namespace ams::fs::impl { + /* ACCURATE_TO_VERSION: Unknown */ fssystem::IHash256GeneratorFactorySelector *GetNcaHashGeneratorFactorySelector(); fssystem::IHash256GeneratorFactorySelector *GetSaveDataHashGeneratorFactorySelector(); diff --git a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_newable.hpp b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_newable.hpp index 6924ac59c..a97922cf8 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_newable.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_newable.hpp @@ -18,6 +18,7 @@ namespace ams::fs::impl { + /* ACCURATE_TO_VERSION: Unknown */ class Newable { public: static ALWAYS_INLINE void *operator new(size_t size) noexcept { diff --git a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_priority_utils.hpp b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_priority_utils.hpp index b9a2f2553..7a99b8607 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_priority_utils.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_priority_utils.hpp @@ -20,6 +20,7 @@ namespace ams::fs::impl { + /* ACCURATE_TO_VERSION: Unknown */ enum TlsIoPriority : u8 { TlsIoPriority_Normal = 0, TlsIoPriority_Realtime = 1, diff --git a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_result_utils.hpp b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_result_utils.hpp index 772c02e43..2ef4fb25f 100644 --- a/libraries/libstratosphere/include/stratosphere/fs/impl/fs_result_utils.hpp +++ b/libraries/libstratosphere/include/stratosphere/fs/impl/fs_result_utils.hpp @@ -18,6 +18,7 @@ namespace ams::fs::impl { + /* ACCURATE_TO_VERSION: Unknown */ bool IsAbortNeeded(Result result); void LogErrorMessage(Result result, const char *function); diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/fscreator/fssrv_local_file_system_creator.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/fscreator/fssrv_local_file_system_creator.hpp index 6570f4e4b..0cdc82e1b 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/fscreator/fssrv_local_file_system_creator.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/fscreator/fssrv_local_file_system_creator.hpp @@ -19,6 +19,7 @@ namespace ams::fssrv::fscreator { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class LocalFileSystemCreator final : public ILocalFileSystemCreator { NON_COPYABLE(LocalFileSystemCreator); NON_MOVEABLE(LocalFileSystemCreator); diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/fscreator/fssrv_partition_file_system_creator.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/fscreator/fssrv_partition_file_system_creator.hpp index 56c828614..a8b203368 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/fscreator/fssrv_partition_file_system_creator.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/fscreator/fssrv_partition_file_system_creator.hpp @@ -19,6 +19,7 @@ namespace ams::fssrv::fscreator { + /* ACCURATE_TO_VERSION: Unknown */ class PartitionFileSystemCreator : public IPartitionFileSystemCreator { NON_COPYABLE(PartitionFileSystemCreator); NON_MOVEABLE(PartitionFileSystemCreator); diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/fscreator/fssrv_rom_file_system_creator.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/fscreator/fssrv_rom_file_system_creator.hpp index 5a62cfa49..a12635854 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/fscreator/fssrv_rom_file_system_creator.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/fscreator/fssrv_rom_file_system_creator.hpp @@ -19,6 +19,7 @@ namespace ams::fssrv::fscreator { + /* ACCURATE_TO_VERSION: Unknown */ class RomFileSystemCreator : public IRomFileSystemCreator { NON_COPYABLE(RomFileSystemCreator); NON_MOVEABLE(RomFileSystemCreator); diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/fscreator/fssrv_subdirectory_file_system_creator.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/fscreator/fssrv_subdirectory_file_system_creator.hpp index 95a835738..d6900b1ef 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/fscreator/fssrv_subdirectory_file_system_creator.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/fscreator/fssrv_subdirectory_file_system_creator.hpp @@ -19,6 +19,7 @@ namespace ams::fssrv::fscreator { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class SubDirectoryFileSystemCreator final : public ISubDirectoryFileSystemCreator { NON_COPYABLE(SubDirectoryFileSystemCreator); NON_MOVEABLE(SubDirectoryFileSystemCreator); diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_file_system_proxy_api.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_file_system_proxy_api.hpp index 8f01e3b8a..af222edaa 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_file_system_proxy_api.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_file_system_proxy_api.hpp @@ -35,6 +35,7 @@ namespace ams::fssrv { class AccessLogServiceImpl; class DebugConfigurationServiceImpl; + /* ACCURATE_TO_VERSION: Unknown */ struct FileSystemProxyConfiguration { fscreator::FileSystemCreatorInterfaces *m_fs_creator_interfaces; BaseStorageServiceImpl *m_base_storage_service_impl; diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_file_system_proxy_impl.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_file_system_proxy_impl.hpp index 9afa198a8..4d6f6c19c 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_file_system_proxy_impl.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_file_system_proxy_impl.hpp @@ -30,6 +30,7 @@ namespace ams::fssrv { class NcaFileSystemService; class SaveDataFileSystemService; + /* ACCURATE_TO_VERSION: Unknown */ class FileSystemProxyImpl { NON_COPYABLE(FileSystemProxyImpl); NON_MOVEABLE(FileSystemProxyImpl); @@ -147,26 +148,27 @@ namespace ams::fssrv { static_assert(sf::IsIFileSystemProxy); static_assert(sf::IsIFileSystemProxyForLoader); + /* ACCURATE_TO_VERSION: Unknown */ class InvalidFileSystemProxyImplForLoader { public: Result OpenCodeFileSystemDeprecated(ams::sf::Out> out_fs, const fssrv::sf::Path &path, ncm::ProgramId program_id) { AMS_UNUSED(out_fs, path, program_id); - return fs::ResultPortAcceptableCountLimited(); + R_THROW(fs::ResultPortAcceptableCountLimited()); } Result OpenCodeFileSystem(ams::sf::Out> out_fs, ams::sf::Out out_verif, const fssrv::sf::Path &path, ncm::ProgramId program_id) { AMS_UNUSED(out_fs, out_verif, path, program_id); - return fs::ResultPortAcceptableCountLimited(); + R_THROW(fs::ResultPortAcceptableCountLimited()); } Result IsArchivedProgram(ams::sf::Out out, u64 process_id) { AMS_UNUSED(out, process_id); - return fs::ResultPortAcceptableCountLimited(); + R_THROW(fs::ResultPortAcceptableCountLimited()); } Result SetCurrentProcess(const ams::sf::ClientProcessId &client_pid) { AMS_UNUSED(client_pid); - return fs::ResultPortAcceptableCountLimited(); + R_THROW(fs::ResultPortAcceptableCountLimited()); } }; static_assert(sf::IsIFileSystemProxyForLoader); diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_i_file_system_creator.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_i_file_system_creator.hpp index eccd74aa4..467eb43f0 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_i_file_system_creator.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_i_file_system_creator.hpp @@ -49,18 +49,21 @@ namespace ams::fssystem { namespace ams::fssrv::fscreator { + /* ACCURATE_TO_VERSION: Unknown */ class IRomFileSystemCreator { public: virtual ~IRomFileSystemCreator() { /* ... */ } virtual Result Create(std::shared_ptr *out, std::shared_ptr storage) = 0; }; + /* ACCURATE_TO_VERSION: Unknown */ class IPartitionFileSystemCreator { public: virtual ~IPartitionFileSystemCreator() { /* ... */ } virtual Result Create(std::shared_ptr *out, std::shared_ptr storage) = 0; }; + /* ACCURATE_TO_VERSION: Unknown */ class IStorageOnNcaCreator { public: virtual ~IStorageOnNcaCreator() { /* ... */ } @@ -69,6 +72,7 @@ namespace ams::fssrv::fscreator { virtual Result CreateNcaReader(std::shared_ptr *out, std::shared_ptr storage) = 0; }; + /* ACCURATE_TO_VERSION: Unknown */ class ILocalFileSystemCreator { public: virtual Result Create(std::shared_ptr *out, const fs::Path &path, bool case_sensitive, bool ensure_root, Result on_path_not_found) = 0; @@ -78,11 +82,13 @@ namespace ams::fssrv::fscreator { } }; + /* ACCURATE_TO_VERSION: Unknown */ class ISubDirectoryFileSystemCreator { public: virtual Result Create(std::shared_ptr *out, std::shared_ptr base_fs, const fs::Path &path) = 0; }; + /* ACCURATE_TO_VERSION: Unknown */ struct FileSystemCreatorInterfaces { ILocalFileSystemCreator *local_fs_creator; ISubDirectoryFileSystemCreator *subdir_fs_creator; diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_memory_resource_from_exp_heap.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_memory_resource_from_exp_heap.hpp index 90942da17..99eaed8b4 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_memory_resource_from_exp_heap.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_memory_resource_from_exp_heap.hpp @@ -20,6 +20,7 @@ namespace ams::fssrv { + /* ACCURATE_TO_VERSION: Unknown */ class MemoryResourceFromExpHeap : public ams::MemoryResource { private: lmem::HeapHandle m_heap_handle; @@ -41,6 +42,7 @@ namespace ams::fssrv { } }; + /* ACCURATE_TO_VERSION: Unknown */ class PeakCheckableMemoryResourceFromExpHeap : public ams::MemoryResource { private: lmem::HeapHandle m_heap_handle; diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_memory_resource_from_standard_allocator.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_memory_resource_from_standard_allocator.hpp index 5c1ac8acd..f5cdc8752 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_memory_resource_from_standard_allocator.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_memory_resource_from_standard_allocator.hpp @@ -25,6 +25,7 @@ namespace ams::mem { namespace ams::fssrv { + /* ACCURATE_TO_VERSION: Unknown */ class MemoryResourceFromStandardAllocator : public ams::MemoryResource { private: mem::StandardAllocator *m_allocator; diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_nca_file_system_service_impl.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_nca_file_system_service_impl.hpp index 843faea15..3e74a07ba 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_nca_file_system_service_impl.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_nca_file_system_service_impl.hpp @@ -47,6 +47,7 @@ namespace ams::fssrv { } + /* ACCURATE_TO_VERSION: Unknown */ class NcaFileSystemServiceImpl { public: struct Configuration { diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_program_registry_impl.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_program_registry_impl.hpp index 7d79a1322..a5d209cfa 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_program_registry_impl.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_program_registry_impl.hpp @@ -27,6 +27,7 @@ namespace ams::fssrv { } + /* ACCURATE_TO_VERSION: Unknown */ class ProgramRegistryImpl { NON_COPYABLE(ProgramRegistryImpl); NON_MOVEABLE(ProgramRegistryImpl); @@ -45,26 +46,27 @@ namespace ams::fssrv { }; static_assert(sf::IsIProgramRegistry); + /* ACCURATE_TO_VERSION: Unknown */ class InvalidProgramRegistryImpl { public: Result RegisterProgram(u64 process_id, u64 program_id, u8 storage_id, const ams::sf::InBuffer &data, s64 data_size, const ams::sf::InBuffer &desc, s64 desc_size) { AMS_UNUSED(process_id, program_id, storage_id, data, data_size, desc, desc_size); - return fs::ResultPortAcceptableCountLimited(); + R_THROW(fs::ResultPortAcceptableCountLimited()); } Result UnregisterProgram(u64 process_id) { AMS_UNUSED(process_id); - return fs::ResultPortAcceptableCountLimited(); + R_THROW(fs::ResultPortAcceptableCountLimited()); } Result SetCurrentProcess(const ams::sf::ClientProcessId &client_pid) { AMS_UNUSED(client_pid); - return fs::ResultPortAcceptableCountLimited(); + R_THROW(fs::ResultPortAcceptableCountLimited()); } Result SetEnabledProgramVerification(bool en) { AMS_UNUSED(en); - return fs::ResultPortAcceptableCountLimited(); + R_THROW(fs::ResultPortAcceptableCountLimited()); } }; static_assert(sf::IsIProgramRegistry); diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_program_registry_service.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_program_registry_service.hpp index 3efa84898..ae8ca6840 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_program_registry_service.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/fssrv_program_registry_service.hpp @@ -27,6 +27,7 @@ namespace ams::fssrv { } + /* ACCURATE_TO_VERSION: Unknown */ class ProgramRegistryServiceImpl { public: struct Configuration { diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_access_control.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_access_control.hpp index e7cefaa69..2e6a47354 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_access_control.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_access_control.hpp @@ -28,6 +28,7 @@ namespace ams::fssrv { namespace ams::fssrv::impl { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ struct Accessibility { u8 value; @@ -60,6 +61,7 @@ namespace ams::fssrv::impl { Accessibility GetAccessibility() const { return m_accessibility; } }; + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class AccessControl { public: enum class AccessibilityType : u32 { diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_access_control_bits.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_access_control_bits.hpp index 7a6785882..7f6b80688 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_access_control_bits.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_access_control_bits.hpp @@ -21,6 +21,7 @@ namespace ams::fssrv::impl { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ #define AMS_FSSRV_FOR_EACH_ACCESS_CONTROL_CAPABILITY(HANDLER, _NS_) \ HANDLER(CanAbandonAccessFailure, _NS_::AccessFailureResolution) \ HANDLER(CanChallengeCardExistence, _NS_::GameCard) \ @@ -179,6 +180,7 @@ namespace ams::fssrv::impl { HANDLER(CanWriteSaveDataFileSystemExtraDataFlags, _NS_::SaveDataTransferVersion2, _NS_::SystemSaveDataManagement, _NS_::SaveDataBackUp) \ HANDLER(CanWriteSaveDataFileSystemExtraDataTimeStamp, _NS_::SaveDataBackUp) + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class AccessControlBits { public: enum class Bits : u64 { diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_external_key_manager.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_external_key_manager.hpp index a4ee937e9..ef652358b 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_external_key_manager.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_external_key_manager.hpp @@ -22,6 +22,7 @@ namespace ams::fssrv::impl { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class ExternalKeyEntry : public util::IntrusiveListBaseNode, public ::ams::fs::impl::Newable { private: fs::RightsId m_rights_id; @@ -48,6 +49,7 @@ namespace ams::fssrv::impl { } }; + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class ExternalKeyManager { NON_COPYABLE(ExternalKeyManager); NON_MOVEABLE(ExternalKeyManager); diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_file_system_proxy_service_object.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_file_system_proxy_service_object.hpp index 37bb95aee..a99b121a6 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_file_system_proxy_service_object.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_file_system_proxy_service_object.hpp @@ -22,6 +22,7 @@ namespace ams::fssrv::impl { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ ams::sf::EmplacedRef GetFileSystemProxyServiceObject(); ams::sf::SharedPointer GetProgramRegistryServiceObject(); diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_impl_program_index_map_info_manager.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_impl_program_index_map_info_manager.hpp index c428e04f9..539a79e80 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_impl_program_index_map_info_manager.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/impl/fssrv_impl_program_index_map_info_manager.hpp @@ -22,12 +22,14 @@ namespace ams::fssrv::impl { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ struct ProgramIndexMapInfoEntry : public ::ams::util::IntrusiveListBaseNode, public ::ams::fs::impl::Newable { ncm::ProgramId program_id; ncm::ProgramId base_program_id; u8 program_index; }; + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class ProgramIndexMapInfoManager { NON_COPYABLE(ProgramIndexMapInfoManager); NON_MOVEABLE(ProgramIndexMapInfoManager); diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/interface_adapters/fssrv_filesystem_interface_adapter.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/interface_adapters/fssrv_filesystem_interface_adapter.hpp index 5d0bc0aee..9e849ca7f 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/interface_adapters/fssrv_filesystem_interface_adapter.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/interface_adapters/fssrv_filesystem_interface_adapter.hpp @@ -37,6 +37,7 @@ namespace ams::fssrv::impl { class FileSystemInterfaceAdapter; + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class FileInterfaceAdapter { NON_COPYABLE(FileInterfaceAdapter); NON_MOVEABLE(FileInterfaceAdapter); @@ -60,6 +61,7 @@ namespace ams::fssrv::impl { }; static_assert(fssrv::sf::IsIFile); + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class DirectoryInterfaceAdapter { NON_COPYABLE(DirectoryInterfaceAdapter); NON_MOVEABLE(DirectoryInterfaceAdapter); @@ -76,6 +78,7 @@ namespace ams::fssrv::impl { }; static_assert(fssrv::sf::IsIDirectory); + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class FileSystemInterfaceAdapter : public ams::sf::ISharedObject { NON_COPYABLE(FileSystemInterfaceAdapter); NON_MOVEABLE(FileSystemInterfaceAdapter); diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/interface_adapters/fssrv_storage_interface_adapter.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/interface_adapters/fssrv_storage_interface_adapter.hpp index 73e0d6b07..df0c3edf5 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/interface_adapters/fssrv_storage_interface_adapter.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/interface_adapters/fssrv_storage_interface_adapter.hpp @@ -27,6 +27,7 @@ namespace ams::fs { namespace ams::fssrv::impl { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class StorageInterfaceAdapter { NON_COPYABLE(StorageInterfaceAdapter); private: diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_device_operator.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_device_operator.hpp index 324c26b11..7334ff861 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_device_operator.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_device_operator.hpp @@ -18,6 +18,7 @@ #include /* TODO */ +/* ACCURATE_TO_VERSION: 13.4.0.0 */ #define AMS_FSSRV_I_DEVICE_OPERATOR_INTERFACE_INFO(C, H) \ AMS_SF_METHOD_INFO(C, H, 0, Result, IsSdCardInserted, (ams::sf::Out out), (out)) \ AMS_SF_METHOD_INFO(C, H, 200, Result, IsGameCardInserted, (ams::sf::Out out), (out)) \ diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_event_notifier.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_event_notifier.hpp index 0436c4080..275f940d8 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_event_notifier.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_event_notifier.hpp @@ -17,6 +17,7 @@ #include #include +/* ACCURATE_TO_VERSION: 13.4.0.0 */ #define AMS_FSSRV_I_EVENT_NOTIFIER_INTERFACE_INFO(C, H) \ AMS_SF_METHOD_INFO(C, H, 0, Result, GetEventHandle, (ams::sf::OutCopyHandle out), (out)) diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_file_system_proxy.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_file_system_proxy.hpp index b5df43455..043044885 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_file_system_proxy.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_file_system_proxy.hpp @@ -21,6 +21,7 @@ #include #include +/* ACCURATE_TO_VERSION: 13.4.0.0 */ #define AMS_FSSRV_I_FILE_SYSTEM_PROXY_INTERFACE_INFO(C, H) \ AMS_SF_METHOD_INFO(C, H, 0, Result, OpenFileSystem, (ams::sf::Out> out, const fssrv::sf::FspPath &path, u32 type), (out, path, type), hos::Version_Min, hos::Version_1_0_0) \ AMS_SF_METHOD_INFO(C, H, 1, Result, SetCurrentProcess, (const ams::sf::ClientProcessId &client_pid), (client_pid)) \ diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_file_system_proxy_for_loader.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_file_system_proxy_for_loader.hpp index 87f75ef01..e6693d1bf 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_file_system_proxy_for_loader.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_file_system_proxy_for_loader.hpp @@ -19,6 +19,7 @@ #include #include +/* ACCURATE_TO_VERSION: 13.4.0.0 */ #define AMS_FSSRV_I_FILE_SYSTEM_PROXY_FOR_LOADER_INTERFACE_INFO(C, H) \ AMS_SF_METHOD_INFO(C, H, 0, Result, OpenCodeFileSystemDeprecated, (ams::sf::Out> out_fs, const fssrv::sf::Path &path, ncm::ProgramId program_id), (out_fs, path, program_id), hos::Version_Min, hos::Version_9_2_0) \ AMS_SF_METHOD_INFO(C, H, 0, Result, OpenCodeFileSystem, (ams::sf::Out> out_fs, ams::sf::Out out_verif, const fssrv::sf::Path &path, ncm::ProgramId program_id), (out_fs, out_verif, path, program_id), hos::Version_10_0_0) \ diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_program_registry.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_program_registry.hpp index cc8b6fbe8..3520a934d 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_program_registry.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_i_program_registry.hpp @@ -19,6 +19,7 @@ #include #include +/* ACCURATE_TO_VERSION: 13.4.0.0 */ #define AMS_FSSRV_I_PROGRAM_REGISTRY_INTERFACE_INFO(C, H) \ AMS_SF_METHOD_INFO(C, H, 0, Result, RegisterProgram, (u64 process_id, u64 program_id, u8 storage_id, const ams::sf::InBuffer &data, s64 data_size, const ams::sf::InBuffer &desc, s64 desc_size), (process_id, program_id, storage_id, data, data_size, desc, desc_size)) \ AMS_SF_METHOD_INFO(C, H, 1, Result, UnregisterProgram, (u64 process_id), (process_id)) \ diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_idirectory.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_idirectory.hpp index bc2dbf783..9d598263e 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_idirectory.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_idirectory.hpp @@ -18,6 +18,7 @@ #include #include +/* ACCURATE_TO_VERSION: 13.4.0.0 */ #define AMS_FSSRV_I_DIRECTORY_INTERFACE_INFO(C, H) \ AMS_SF_METHOD_INFO(C, H, 0, Result, Read, (ams::sf::Out out, const ams::sf::OutBuffer &out_entries), (out, out_entries)) \ AMS_SF_METHOD_INFO(C, H, 1, Result, GetEntryCount, (ams::sf::Out out), (out)) diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_ifile.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_ifile.hpp index 7bfd07c0b..dca1ba7f0 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_ifile.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_ifile.hpp @@ -19,6 +19,7 @@ #include #include +/* ACCURATE_TO_VERSION: 13.4.0.0 */ #define AMS_FSSRV_I_FILE_INTERFACE_INFO(C, H) \ AMS_SF_METHOD_INFO(C, H, 0, Result, Read, (ams::sf::Out out, s64 offset, const ams::sf::OutNonSecureBuffer &buffer, s64 size, ams::fs::ReadOption option), (out, offset, buffer, size, option)) \ AMS_SF_METHOD_INFO(C, H, 1, Result, Write, (s64 offset, const ams::sf::InNonSecureBuffer &buffer, s64 size, ams::fs::WriteOption option), (offset, buffer, size, option)) \ diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_ifilesystem.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_ifilesystem.hpp index 469f60668..bf58649a2 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_ifilesystem.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_ifilesystem.hpp @@ -22,6 +22,7 @@ #include #include +/* ACCURATE_TO_VERSION: 13.4.0.0 */ #define AMS_FSSRV_I_FILESYSTEM_INTERFACE_INFO(C, H) \ AMS_SF_METHOD_INFO(C, H, 0, Result, CreateFile, (const ams::fssrv::sf::Path &path, s64 size, s32 option), (path, size, option)) \ AMS_SF_METHOD_INFO(C, H, 1, Result, DeleteFile, (const ams::fssrv::sf::Path &path), (path)) \ diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_istorage.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_istorage.hpp index 82c60a295..6cec83eb5 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_istorage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_istorage.hpp @@ -19,6 +19,7 @@ #include #include +/* ACCURATE_TO_VERSION: 13.4.0.0 */ #define AMS_FSSRV_I_STORAGE_INTERFACE_INFO(C, H) \ AMS_SF_METHOD_INFO(C, H, 0, Result, Read, (s64 offset, const ams::sf::OutNonSecureBuffer &buffer, s64 size), (offset, buffer, size)) \ AMS_SF_METHOD_INFO(C, H, 1, Result, Write, (s64 offset, const ams::sf::InNonSecureBuffer &buffer, s64 size), (offset, buffer, size)) \ diff --git a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_path.hpp b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_path.hpp index 2d53471bf..7c099c639 100644 --- a/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_path.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssrv/sf/fssrv_sf_path.hpp @@ -20,6 +20,7 @@ namespace ams::fssrv::sf { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ struct Path : public ams::sf::LargeData { char str[fs::EntryNameLengthMax + 1]; diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/buffers/fssystem_buffer_manager_utils.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/buffers/fssystem_buffer_manager_utils.hpp index 928553aec..10eb99111 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/buffers/fssystem_buffer_manager_utils.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/buffers/fssystem_buffer_manager_utils.hpp @@ -26,6 +26,7 @@ namespace ams::fssystem::buffers { } + /* ACCURATE_TO_VERSION: Unknown */ template Result DoContinuouslyUntilBufferIsAllocated(F f, OnFailure on_failure, const char *function_name) { constexpr auto BufferAllocationRetryLogCountMax = 10; @@ -55,6 +56,7 @@ namespace ams::fssystem::buffers { return ResultSuccess(); } + /* ACCURATE_TO_VERSION: Unknown */ class BufferManagerContext { private: bool m_needs_blocking; @@ -70,6 +72,7 @@ namespace ams::fssystem::buffers { BufferManagerContext *GetBufferManagerContext(); void EnableBlockingBufferManagerAllocation(); + /* ACCURATE_TO_VERSION: Unknown */ class ScopedBufferManagerContextRegistration { private: BufferManagerContext m_cur_context; @@ -88,6 +91,7 @@ namespace ams::fssystem::buffers { } }; + /* ACCURATE_TO_VERSION: Unknown */ template Result AllocateBufferUsingBufferManagerContext(fs::IBufferManager::MemoryRange *out, fs::IBufferManager *buffer_manager, size_t size, const fs::IBufferManager::BufferAttribute attribute, IsValidBufferFunction is_valid_buffer, const char *func_name) { AMS_ASSERT(out != nullptr); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/buffers/fssystem_file_system_buddy_heap.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/buffers/fssystem_file_system_buddy_heap.hpp index 9653b3afc..ab014fef3 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/buffers/fssystem_file_system_buddy_heap.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/buffers/fssystem_file_system_buddy_heap.hpp @@ -20,6 +20,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ class FileSystemBuddyHeap { NON_COPYABLE(FileSystemBuddyHeap); NON_MOVEABLE(FileSystemBuddyHeap); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/buffers/fssystem_file_system_buffer_manager.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/buffers/fssystem_file_system_buffer_manager.hpp index c59259544..f07b74a12 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/buffers/fssystem_file_system_buffer_manager.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/buffers/fssystem_file_system_buffer_manager.hpp @@ -22,6 +22,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ class FileSystemBufferManager : public fs::IBufferManager { NON_COPYABLE(FileSystemBufferManager); NON_MOVEABLE(FileSystemBufferManager); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_aes_ctr_counter_extended_storage.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_aes_ctr_counter_extended_storage.hpp index a7a3ebb46..3550e186d 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_aes_ctr_counter_extended_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_aes_ctr_counter_extended_storage.hpp @@ -20,6 +20,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ class AesCtrCounterExtendedStorage : public ::ams::fs::IStorage, public ::ams::fs::impl::Newable { NON_COPYABLE(AesCtrCounterExtendedStorage); NON_MOVEABLE(AesCtrCounterExtendedStorage); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_aes_ctr_storage.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_aes_ctr_storage.hpp index 0e9379eb2..e90fdf736 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_aes_ctr_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_aes_ctr_storage.hpp @@ -20,6 +20,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ template class AesCtrStorage : public ::ams::fs::IStorage, public ::ams::fs::impl::Newable { NON_COPYABLE(AesCtrStorage); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_aes_xts_storage.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_aes_xts_storage.hpp index 9566378d0..299ae4f38 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_aes_xts_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_aes_xts_storage.hpp @@ -21,6 +21,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ template class AesXtsStorage : public ::ams::fs::IStorage, public ::ams::fs::impl::Newable { NON_COPYABLE(AesXtsStorage); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_alignment_matching_storage.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_alignment_matching_storage.hpp index 20ecfe563..b6a950403 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_alignment_matching_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_alignment_matching_storage.hpp @@ -22,6 +22,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ template class AlignmentMatchingStorage : public ::ams::fs::IStorage, public ::ams::fs::impl::Newable { NON_COPYABLE(AlignmentMatchingStorage); @@ -131,6 +132,7 @@ namespace ams::fssystem { } }; + /* ACCURATE_TO_VERSION: Unknown */ template class AlignmentMatchingStoragePooledBuffer : public ::ams::fs::IStorage, public ::ams::fs::impl::Newable { NON_COPYABLE(AlignmentMatchingStoragePooledBuffer); @@ -232,6 +234,7 @@ namespace ams::fssystem { } }; + /* ACCURATE_TO_VERSION: Unknown */ template class AlignmentMatchingStorageInBulkRead : public ::ams::fs::IStorage, public ::ams::fs::impl::Newable { NON_COPYABLE(AlignmentMatchingStorageInBulkRead); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_alignment_matching_storage_impl.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_alignment_matching_storage_impl.hpp index 23db1e997..261b6df66 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_alignment_matching_storage_impl.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_alignment_matching_storage_impl.hpp @@ -19,6 +19,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ class AlignmentMatchingStorageImpl { public: static Result Read(fs::IStorage *base_storage, char *work_buf, size_t work_buf_size, size_t data_alignment, size_t buffer_alignment, s64 offset, char *buffer, size_t size); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_allocator_utility.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_allocator_utility.hpp index a0d3cfb4e..2e797e894 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_allocator_utility.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_allocator_utility.hpp @@ -26,6 +26,7 @@ namespace ams::fs::impl { namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ using AllocateFunction = void *(*)(size_t size); using DeallocateFunction = void (*)(void *ptr, size_t size); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_asynchronous_access.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_asynchronous_access.hpp index 466707968..627c9e3f5 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_asynchronous_access.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_asynchronous_access.hpp @@ -18,6 +18,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class IAsynchronousAccessSplitter { public: static IAsynchronousAccessSplitter *GetDefaultAsynchronousAccessSplitter(); @@ -31,6 +32,7 @@ namespace ams::fssystem { virtual Result QueryInvocationCount(s64 *out, s64 start_offset, s64 end_offset, s64 access_size, s64 alignment_size) { AMS_UNUSED(out, start_offset, end_offset, access_size, alignment_size); AMS_ABORT("TODO"); } }; + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class DefaultAsynchronousAccessSplitter final : public IAsynchronousAccessSplitter { public: constexpr DefaultAsynchronousAccessSplitter() = default; @@ -48,6 +50,7 @@ namespace ams::fssystem { } }; + /* ACCURATE_TO_VERSION: 13.4.0.0 */ inline IAsynchronousAccessSplitter *IAsynchronousAccessSplitter::GetDefaultAsynchronousAccessSplitter() { static constinit DefaultAsynchronousAccessSplitter s_default_access_splitter; return std::addressof(s_default_access_splitter); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_bitmap_utils.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_bitmap_utils.hpp index 23ca55902..8cfddb873 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_bitmap_utils.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_bitmap_utils.hpp @@ -18,6 +18,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ + constexpr inline s32 CountLeadingZeros(u32 val) { return util::CountLeadingZeros(val); } diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_block_cache_buffered_storage.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_block_cache_buffered_storage.hpp index 2c15a1d75..faaaae176 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_block_cache_buffered_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_block_cache_buffered_storage.hpp @@ -34,6 +34,7 @@ namespace ams::fssystem { }; static_assert(util::is_pod::value); + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class BlockCacheBufferedStorage : public ::ams::fs::IStorage { NON_COPYABLE(BlockCacheBufferedStorage); NON_MOVEABLE(BlockCacheBufferedStorage); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_bucket_tree.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_bucket_tree.hpp index aebb41c6c..3c0756395 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_bucket_tree.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_bucket_tree.hpp @@ -19,6 +19,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ class BucketTree { NON_COPYABLE(BucketTree); NON_MOVEABLE(BucketTree); @@ -286,6 +287,7 @@ namespace ams::fssystem { Result EnsureOffsetCache(); }; + /* ACCURATE_TO_VERSION: Unknown */ class BucketTree::Visitor { NON_COPYABLE(Visitor); NON_MOVEABLE(Visitor); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_bucket_tree_template_impl.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_bucket_tree_template_impl.hpp index 069a8a8de..630b69787 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_bucket_tree_template_impl.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_bucket_tree_template_impl.hpp @@ -20,6 +20,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ template Result BucketTree::ScanContinuousReading(ContinuousReadingInfo *out_info, const ContinuousReadingParam ¶m) const { static_assert(util::is_pod>::value); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_bucket_tree_utils.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_bucket_tree_utils.hpp index c616a0597..16681d956 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_bucket_tree_utils.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_bucket_tree_utils.hpp @@ -18,6 +18,7 @@ namespace ams::fssystem::impl { + /* ACCURATE_TO_VERSION: Unknown */ class SafeValue { public: static ALWAYS_INLINE s64 GetInt64(const void *ptr) { @@ -47,6 +48,7 @@ namespace ams::fssystem::impl { } }; + /* ACCURATE_TO_VERSION: Unknown */ template struct BucketTreeNode { using Header = BucketTree::NodeHeader; diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_buffered_storage.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_buffered_storage.hpp index 4288f9d62..5603864a5 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_buffered_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_buffered_storage.hpp @@ -22,6 +22,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ class BufferedStorage : public ::ams::fs::IStorage { NON_COPYABLE(BufferedStorage); NON_MOVEABLE(BufferedStorage); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_compressed_storage.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_compressed_storage.hpp index e7a752eb7..bd7ccfe92 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_compressed_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_compressed_storage.hpp @@ -23,6 +23,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class CompressedStorage : public ::ams::fs::IStorage, public ::ams::fssystem::IAsynchronousAccessSplitter, public ::ams::fs::impl::Newable { NON_COPYABLE(CompressedStorage); NON_MOVEABLE(CompressedStorage); @@ -366,7 +367,7 @@ namespace ams::fssystem { /* Operate on the range. */ s64 required_access_physical_offset = 0; s64 required_access_physical_size = 0; - s64 required_access_physical_end; + s64 required_access_physical_end = 0; s64 appropriate_virtual_offset = offset; R_TRY(this->OperatePerEntry(offset, table_offsets.end_offset - offset, [&] (bool *out_continuous, const Entry &entry, s64 virtual_data_size, s64 data_offset, s64 read_size) -> Result { diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_compression_common.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_compression_common.hpp index 4b22428d8..14e84b91c 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_compression_common.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_compression_common.hpp @@ -18,6 +18,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ enum CompressionType : u8 { CompressionType_None = 0, CompressionType_Zeros = 1, diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_directory_savedata_filesystem.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_directory_savedata_filesystem.hpp index 40282685a..531c2b12e 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_directory_savedata_filesystem.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_directory_savedata_filesystem.hpp @@ -22,6 +22,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class DirectorySaveDataFileSystem : public fs::fsa::IFileSystem, public fs::impl::Newable { NON_COPYABLE(DirectorySaveDataFileSystem); private: diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_forwarding_file_system.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_forwarding_file_system.hpp index 569d0c36c..8aa33f617 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_forwarding_file_system.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_forwarding_file_system.hpp @@ -23,6 +23,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class ForwardingFile final : public ::ams::fs::fsa::IFile, public ::ams::fs::impl::Newable { NON_COPYABLE(ForwardingFile); NON_MOVEABLE(ForwardingFile); @@ -62,6 +63,7 @@ namespace ams::fssystem { } }; + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class ForwardingDirectory final : public ::ams::fs::fsa::IDirectory, public ::ams::fs::impl::Newable { NON_COPYABLE(ForwardingDirectory); NON_MOVEABLE(ForwardingDirectory); @@ -85,6 +87,7 @@ namespace ams::fssystem { } }; + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class ForwardingFileSystem final : public ::ams::fs::fsa::IFileSystem, public ::ams::fs::impl::Newable { NON_COPYABLE(ForwardingFileSystem); NON_MOVEABLE(ForwardingFileSystem); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_hierarchical_integrity_verification_storage.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_hierarchical_integrity_verification_storage.hpp index 1d4be4381..20a9484ab 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_hierarchical_integrity_verification_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_hierarchical_integrity_verification_storage.hpp @@ -24,6 +24,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ + struct HierarchicalIntegrityVerificationLevelInformation { fs::Int64 offset; fs::Int64 size; @@ -66,7 +68,7 @@ namespace ams::fssystem { struct HierarchicalIntegrityVerificationSizeSet { s64 control_size; s64 master_hash_size; - s64 layered_hash_sizes[IntegrityMaxLayerCount - 1]; + s64 layered_hash_sizes[IntegrityMaxLayerCount - 2]; }; static_assert(util::is_pod::value); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_i_hash_256_generator.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_i_hash_256_generator.hpp index eded06435..934eadf7e 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_i_hash_256_generator.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_i_hash_256_generator.hpp @@ -18,6 +18,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class IHash256Generator { public: static constexpr size_t HashSize = 256 / BITSIZEOF(u8); @@ -48,6 +49,7 @@ namespace ams::fssystem { virtual void DoGetHash(void *dst, size_t dst_size) = 0; }; + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class IHash256GeneratorFactory { public: constexpr IHash256GeneratorFactory() = default; @@ -70,6 +72,7 @@ namespace ams::fssystem { virtual void DoGenerateHash(void *dst, size_t dst_size, const void *src, size_t src_size) = 0; }; + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class IHash256GeneratorFactorySelector { public: constexpr IHash256GeneratorFactorySelector() = default; diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_indirect_storage.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_indirect_storage.hpp index 1ecc9dc58..0934b030a 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_indirect_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_indirect_storage.hpp @@ -19,6 +19,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ class IndirectStorage : public ::ams::fs::IStorage, public ::ams::fs::impl::Newable { NON_COPYABLE(IndirectStorage); NON_MOVEABLE(IndirectStorage); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_indirect_storage_template_impl.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_indirect_storage_template_impl.hpp index 52243dd82..91f5e887b 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_indirect_storage_template_impl.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_indirect_storage_template_impl.hpp @@ -18,6 +18,7 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ template Result IndirectStorage::OperatePerEntry(s64 offset, s64 size, F func) { /* Validate preconditions. */ diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_integrity_romfs_storage.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_integrity_romfs_storage.hpp index 0985c4fc4..ea8ffd2c0 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_integrity_romfs_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_integrity_romfs_storage.hpp @@ -23,6 +23,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ + constexpr inline size_t IntegrityLayerCountRomFs = 7; constexpr inline size_t IntegrityHashLayerBlockSize = 16_KB; diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_integrity_verification_storage.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_integrity_verification_storage.hpp index 7bce5c6c2..a74b09398 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_integrity_verification_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_integrity_verification_storage.hpp @@ -23,6 +23,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ + class IntegrityVerificationStorage : public ::ams::fs::IStorage { NON_COPYABLE(IntegrityVerificationStorage); NON_MOVEABLE(IntegrityVerificationStorage); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_local_file_system.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_local_file_system.hpp index cd0f8f3e7..b698f4eca 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_local_file_system.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_local_file_system.hpp @@ -27,7 +27,7 @@ namespace ams::fssystem { PathCaseSensitiveMode_CaseSensitive = 1, }; - + /* ACCURATE_TO_VERSION: 13.4.0.0 */ class LocalFileSystem : public fs::fsa::IFileSystem, public fs::impl::Newable { NON_COPYABLE(LocalFileSystem); NON_MOVEABLE(LocalFileSystem); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_nca_file_system_driver.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_nca_file_system_driver.hpp index 527198bd2..d7bbb7abc 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_nca_file_system_driver.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_nca_file_system_driver.hpp @@ -25,6 +25,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ + class CompressedStorage; class AesCtrCounterExtendedStorage; class IndirectStorage; diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_nca_header.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_nca_header.hpp index 8e9ea86fe..c4675248b 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_nca_header.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_nca_header.hpp @@ -18,6 +18,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ + struct Hash { static constexpr size_t Size = crypto::Sha256Generator::HashSize; u8 value[Size]; diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_partition_file_system.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_partition_file_system.hpp index 6df57428e..8fbcbf7ca 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_partition_file_system.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_partition_file_system.hpp @@ -21,6 +21,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ + template class PartitionFileSystemCore : public fs::impl::Newable, public fs::fsa::IFileSystem { NON_COPYABLE(PartitionFileSystemCore); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_partition_file_system_meta.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_partition_file_system_meta.hpp index 7005e0f95..e58481dbf 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_partition_file_system_meta.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_partition_file_system_meta.hpp @@ -19,6 +19,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ + namespace impl { struct PartitionFileSystemFormat { diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_pimpl.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_pimpl.hpp index abc900ea7..ac43688f9 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_pimpl.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_pimpl.hpp @@ -18,6 +18,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ + namespace impl { template diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_pooled_buffer.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_pooled_buffer.hpp index 81b57d95b..b5194a365 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_pooled_buffer.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_pooled_buffer.hpp @@ -19,6 +19,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ + constexpr inline size_t BufferPoolAlignment = 4_KB; constexpr inline size_t BufferPoolWorkSize = 320; diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_romfs_file_system.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_romfs_file_system.hpp index b3c16a7e8..47ff75524 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_romfs_file_system.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_romfs_file_system.hpp @@ -22,6 +22,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ + class RomFsFileSystem : public fs::fsa::IFileSystem, public fs::impl::Newable { NON_COPYABLE(RomFsFileSystem); public: diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_service_context.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_service_context.hpp index bc17f4e05..fcf5bb421 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_service_context.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_service_context.hpp @@ -19,6 +19,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ + class ServiceContext { private: struct DeferredProcessContextForDeviceError { diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_sha256_hash_generator.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_sha256_hash_generator.hpp index 16cf1b453..dcaf79d50 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_sha256_hash_generator.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_sha256_hash_generator.hpp @@ -19,6 +19,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ + class Sha256HashGenerator final : public ::ams::fssystem::IHash256Generator, public ::ams::fs::impl::Newable { NON_COPYABLE(Sha256HashGenerator); NON_MOVEABLE(Sha256HashGenerator); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_sparse_storage.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_sparse_storage.hpp index 9c3713918..89b0773eb 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_sparse_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_sparse_storage.hpp @@ -19,6 +19,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ + class SparseStorage : public IndirectStorage { NON_COPYABLE(SparseStorage); NON_MOVEABLE(SparseStorage); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_speed_emulation_configuration.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_speed_emulation_configuration.hpp index ac4fb1235..79b32cb1d 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_speed_emulation_configuration.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_speed_emulation_configuration.hpp @@ -19,6 +19,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ + class SpeedEmulationConfiguration { public: static void SetSpeedEmulationMode(::ams::fs::SpeedEmulationMode mode); diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_subdirectory_filesystem.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_subdirectory_filesystem.hpp index 00c81435e..41e6a1618 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_subdirectory_filesystem.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_subdirectory_filesystem.hpp @@ -22,6 +22,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ + class SubDirectoryFileSystem : public fs::fsa::IFileSystem, public fs::impl::Newable { NON_COPYABLE(SubDirectoryFileSystem); private: diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_thread_priority_changer.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_thread_priority_changer.hpp index 3c19acc0d..c09584155 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_thread_priority_changer.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_thread_priority_changer.hpp @@ -19,6 +19,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: Unknown */ + class ScopedThreadPriorityChanger { public: enum class Mode { diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_utility.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_utility.hpp index 77d72cc95..4a0b5507f 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_utility.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_utility.hpp @@ -22,6 +22,8 @@ namespace ams::fssystem { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ + namespace impl { template diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/impl/fssystem_block_cache_manager.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/impl/fssystem_block_cache_manager.hpp index 1ac71bc30..790a8e34d 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/impl/fssystem_block_cache_manager.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/impl/fssystem_block_cache_manager.hpp @@ -19,6 +19,7 @@ namespace ams::fssystem::impl { + /* ACCURATE_TO_VERSION: 13.4.0.0 */ template class BlockCacheManager { NON_COPYABLE(BlockCacheManager); diff --git a/libraries/libstratosphere/source/os/impl/os_thread_manager_impl.pthread.inc b/libraries/libstratosphere/source/os/impl/os_thread_manager_impl.pthread.inc index 7e8774365..8f8f6f8a3 100644 --- a/libraries/libstratosphere/source/os/impl/os_thread_manager_impl.pthread.inc +++ b/libraries/libstratosphere/source/os/impl/os_thread_manager_impl.pthread.inc @@ -155,6 +155,7 @@ namespace ams::os::impl { pthread_t pthread; const auto res = pthread_create(std::addressof(pthread), nullptr, &InvokeThread, thread); AMS_ASSERT(res == 0); + AMS_UNUSED(res); /* Set the thread's pthread handle information. */ thread->pthread = pthread; diff --git a/libraries/libstratosphere/source/spl/spl_api.os.generic.cpp b/libraries/libstratosphere/source/spl/spl_api.os.generic.cpp index 0a3899721..326731eb7 100644 --- a/libraries/libstratosphere/source/spl/spl_api.os.generic.cpp +++ b/libraries/libstratosphere/source/spl/spl_api.os.generic.cpp @@ -127,6 +127,7 @@ namespace ams::spl { EnsureInitialized(); AMS_ASSERT(key_source_size == sizeof(KeySource)); + AMS_UNUSED(key_source_size); R_RETURN(impl::PrepareCommonEsTitleKey(out, *static_cast(key_source), generation)); } diff --git a/stratosphere/ams_mitm/source/sysupdater/sysupdater_fs_utils.cpp b/stratosphere/ams_mitm/source/sysupdater/sysupdater_fs_utils.cpp index c78e43add..b2f2abcdc 100644 --- a/stratosphere/ams_mitm/source/sysupdater/sysupdater_fs_utils.cpp +++ b/stratosphere/ams_mitm/source/sysupdater/sysupdater_fs_utils.cpp @@ -244,7 +244,7 @@ namespace ams::mitm::sysupdater { R_TRY(OpenContentMetaFileSystem(std::addressof(fs), normalized_path)); /* Create a holder for the fs. */ - std::unique_ptr unique_fs = std::make_unique(std::move(fs)); + std::unique_ptr unique_fs = std::make_unique(std::move(fs)); R_UNLESS(unique_fs != nullptr, fs::ResultAllocationMemoryFailedNew()); /* Register the fs. */