3
0
Fork 0
forked from suyu/suyu
suyu/src/core/hle/service
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
..
acc Fixed GetAccountId stub, Added error code for OpenDirectory and added ActivateNpadWithRevision 2018-09-19 23:25:00 +10:00
am Removed the use of rp.MakeBuilder 2018-09-19 15:09:59 +10:00
aoc aoc: Read DLC base title ID from RegisteredCache 2018-10-14 18:58:14 -04:00
apm hle/service: Default constructors and destructors in the cpp file where applicable 2018-09-10 23:55:31 -04:00
arp service: Add arp services 2018-08-04 18:01:12 -04:00
audio HwOpus, Implemented DecodeInterleavedWithPerformance 2018-10-11 13:06:56 +11:00
bcat hle/service: Default constructors and destructors in the cpp file where applicable 2018-09-10 23:55:31 -04:00
bpc service: Add bpc and pcv services 2018-08-01 16:13:04 -04:00
btdrv service: Add the btdrv service 2018-07-26 18:06:17 -04:00
btm service/btm: Add basic implementation of GetCoreImpl() 2018-07-28 21:09:07 -04:00
caps service: Add capture services 2018-08-01 16:45:51 -04:00
erpt service: Add the erpt services 2018-07-25 22:13:39 -04:00
es service: Add the es service 2018-07-25 15:36:55 -04:00
eupld service: Add eupld services 2018-07-25 22:13:43 -04:00
fatal kernel/process: Make data member variables private 2018-09-30 02:30:01 -04:00
fgm service: Add fgm services 2018-07-31 08:01:19 -04:00
filesystem file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable 2018-10-16 09:38:52 -04:00
friend hle/service: Default constructors and destructors in the cpp file where applicable 2018-09-10 23:55:31 -04:00
grc service: Add the grc:c service 2018-07-26 09:53:58 -04:00
hid Stubbed IRS (#1349) 2018-09-23 22:33:29 -04:00
lbl service/lbl: Update service function table 2018-10-02 21:15:59 -04:00
ldn service: Add ldn services 2018-07-26 01:48:06 -04:00
ldr service: Add ldr services 2018-07-25 23:11:03 -04:00
lm Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
mig service: Add migration services 2018-08-02 10:09:45 -04:00
mii service: Add mii services 2018-07-27 16:01:29 -04:00
mm mm_u: Forward all old variants of functions to the new ones 2018-08-13 18:59:10 -04:00
ncm service: Add ncm services 2018-07-27 17:38:30 -04:00
nfc service/nfc: Implement Create[x]Interface functions 2018-07-27 15:12:08 -04:00
nfp service: Add missing headers inclusions where applicable 2018-09-25 17:14:38 -04:00
nifm Merge pull request #1368 from ogniK5377/nifm-fix 2018-09-20 23:30:11 -04:00
nim service: Add missing headers inclusions where applicable 2018-09-25 17:14:38 -04:00
ns file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable 2018-10-16 09:38:52 -04:00
nvdrv Merge pull request #1478 from ogniK5377/remap-invalidhandle-remap 2018-10-12 12:07:14 -04:00
nvflinger Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
pcie service: Add the pcie service 2018-07-31 06:40:21 -04:00
pctl hle/service: Default constructors and destructors in the cpp file where applicable 2018-09-10 23:55:31 -04:00
pcv service: Add bpc and pcv services 2018-08-01 16:13:04 -04:00
pm Added GetBootMode (#1107) 2018-08-23 18:31:45 -04:00
prepo service/prepo: Move class into the cpp file 2018-09-11 20:49:01 -04:00
psc service: Add psc services 2018-08-01 23:31:27 -04:00
set Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
sm Ported #4296 from citra 2018-10-06 16:49:01 +10:00
sockets hle/service: Default constructors and destructors in the cpp file where applicable 2018-09-10 23:55:31 -04:00
spl Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
ssl Merge pull request #1354 from ogniK5377/ssl-version 2018-09-23 22:32:14 -04:00
time hle/service: Default constructors and destructors in the cpp file where applicable 2018-09-10 23:55:31 -04:00
usb service: Add usb services 2018-08-07 03:14:03 -04:00
vi Merge pull request #1338 from raven02/service_vi 2018-09-30 15:39:54 -04:00
wlan service: Add wlan services 2018-07-28 21:54:55 -04:00
service.cpp filesystem: Make CreateFactories() and InstallInterface() take a VfsFilesystem instance by reference 2018-10-13 11:36:35 -04:00
service.h filesystem: Make CreateFactories() and InstallInterface() take a VfsFilesystem instance by reference 2018-10-13 11:36:35 -04:00