suyu/src/core/file_sys
Lioncash 39ae73b356 file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable
The data retrieved in these cases are ultimately chiefly owned by either
the RegisteredCache instance itself, or the filesystem factories. Both
these should live throughout the use of their contained data. If they
don't, it should be considered an interface/design issue, and using
shared_ptr instances here would mask that, as the data would always be
prolonged after the main owner's lifetime ended.

This makes the lifetime of the data explicit and makes it harder to
accidentally create cyclic references. It also makes the interface
slightly more flexible than the previous API, as a shared_ptr can be
created from a unique_ptr, but not the other way around, so this allows
for that use-case if it ever becomes necessary in some form.
2018-10-16 09:38:52 -04:00
..
bis_factory.cpp file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable 2018-10-16 09:38:52 -04:00
bis_factory.h file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable 2018-10-16 09:38:52 -04:00
card_image.cpp card_image: Ensure program_nca_status is always initialized 2018-10-02 23:16:05 -04:00
card_image.h main: Only show DRD deprecation warning once 2018-09-04 14:44:48 -04:00
content_archive.cpp file-sys: Default heavy-weight class destructors in the cpp file 2018-09-19 19:34:08 -04:00
content_archive.h file-sys: Default heavy-weight class destructors in the cpp file 2018-09-19 19:34:08 -04:00
control_metadata.cpp file_sys/control_metadata: Get rid of magic constants 2018-10-15 20:11:44 -04:00
control_metadata.h aoc: Read DLC base title ID from RegisteredCache 2018-10-14 18:58:14 -04:00
directory.h Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
errors.h file_sys/errors: Remove redundant object constructor calls 2018-07-20 22:37:54 -04:00
fsmitm_romfsbuild.cpp fsmitm_romfsbuild: Extract stubs and IPS to romfs_ext dir 2018-10-04 12:29:20 -04:00
fsmitm_romfsbuild.h fsmitm_romfsbuild: Extract stubs and IPS to romfs_ext dir 2018-10-04 12:29:20 -04:00
ips_layer.cpp Merge pull request #1461 from lioncash/warn 2018-10-09 22:30:01 -04:00
ips_layer.h ips_layer: Add missing includes 2018-10-09 14:10:13 -04:00
mode.h VFS Regression and Accuracy Fixes (#776) 2018-07-23 19:40:35 -07:00
nca_metadata.cpp file-sys: Default heavy-weight class destructors in the cpp file 2018-09-19 19:34:08 -04:00
nca_metadata.h file-sys: Default heavy-weight class destructors in the cpp file 2018-09-19 19:34:08 -04:00
nca_patch.cpp Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
nca_patch.h Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
partition_filesystem.cpp file-sys: Default heavy-weight class destructors in the cpp file 2018-09-19 19:34:08 -04:00
partition_filesystem.h file-sys: Default heavy-weight class destructors in the cpp file 2018-09-19 19:34:08 -04:00
patch_manager.cpp file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable 2018-10-16 09:38:52 -04:00
patch_manager.h patch_manager: Return a std::unique_ptr from ParseControlNCA() and GetControlMetadata() instead of a std::shared_ptr 2018-10-09 14:38:03 -04:00
program_metadata.cpp process/vm_manager: Amend API to allow reading parameters from NPDM metadata 2018-09-24 17:24:50 -04:00
program_metadata.h process/vm_manager: Amend API to allow reading parameters from NPDM metadata 2018-09-24 17:24:50 -04:00
registered_cache.cpp file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable 2018-10-16 09:38:52 -04:00
registered_cache.h file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable 2018-10-16 09:38:52 -04:00
romfs.cpp fsmitm_romfsbuild: Extract stubs and IPS to romfs_ext dir 2018-10-04 12:29:20 -04:00
romfs.h fsmitm_romfsbuild: Extract stubs and IPS to romfs_ext dir 2018-10-04 12:29:20 -04:00
romfs_factory.cpp romfs_factory: Extract packed update setter to new function 2018-10-05 08:53:51 -04:00
romfs_factory.h romfs_factory: Extract packed update setter to new function 2018-10-05 08:53:51 -04:00
savedata_factory.cpp kernel/process: Make data member variables private 2018-09-30 02:30:01 -04:00
savedata_factory.h file-sys: Default heavy-weight class destructors in the cpp file 2018-09-19 19:34:08 -04:00
sdmc_factory.cpp file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable 2018-10-16 09:38:52 -04:00
sdmc_factory.h file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable 2018-10-16 09:38:52 -04:00
submission_package.cpp romfs_factory: Extract packed update setter to new function 2018-10-05 08:53:51 -04:00
submission_package.h submission_package: Ensure the 'extracted' member variable is always initialized 2018-10-03 01:47:34 -04:00
vfs.cpp vfs/etc: Append std:: to size_t usages 2018-09-25 20:06:21 -04:00
vfs.h vfs: Move forward declarations to separate file 2018-10-07 13:15:11 -04:00
vfs_concat.cpp vfs_concat/vfs_layered: Remove friend declarations from ConcatenatedVfsFile 2018-09-25 20:06:01 -04:00
vfs_concat.h vfs_concat/vfs_layered: Remove friend declarations from ConcatenatedVfsFile 2018-09-25 20:06:01 -04:00
vfs_layered.cpp vfs_concat/vfs_layered: Remove friend declarations from ConcatenatedVfsFile 2018-09-25 20:06:01 -04:00
vfs_layered.h vfs_concat/vfs_layered: Remove friend declarations from ConcatenatedVfsFile 2018-09-25 20:06:01 -04:00
vfs_offset.cpp file-sys: Default heavy-weight class destructors in the cpp file 2018-09-19 19:34:08 -04:00
vfs_offset.h file-sys: Default heavy-weight class destructors in the cpp file 2018-09-19 19:34:08 -04:00
vfs_real.cpp fsmitm: Cleanup and modernize fsmitm port 2018-09-23 21:50:20 -04:00
vfs_real.h fsmitm: Cleanup and modernize fsmitm port 2018-09-23 21:50:20 -04:00
vfs_static.h vfs/etc: Append std:: to size_t usages 2018-09-25 20:06:21 -04:00
vfs_types.h vfs: Move forward declarations to separate file 2018-10-07 13:15:11 -04:00
vfs_vector.cpp vfs_vector: Amend initializer list order in VectorVfsFile's constructor initializer list 2018-09-25 20:06:21 -04:00
vfs_vector.h vfs/etc: Append std:: to size_t usages 2018-09-25 20:06:21 -04:00
xts_archive.cpp Merge pull request #1364 from lioncash/content 2018-09-20 23:31:31 -04:00
xts_archive.h Merge pull request #1364 from lioncash/content 2018-09-20 23:31:31 -04:00