suyu/src/core/hle/service
Lioncash b77430df70 apm/controller: Make SetPerformanceConfiguration() use an array of pairs over a map
While a map is an OK way to do lookups (and usually recommended in most
cases), this is a map that lives for the entire duration of the program
and only deallocates its contents when the program terminates.

Given the total size of the map is quite small, we can simply use a
std::array of pairs and utilize std::find_if to perform the same
behavior without loss of performance.

This eliminates a static constructor and places the data into the
read-only segment.

While we're at it, we can also handle malformed inputs instead of
directly dereferencing the resulting iterator.
2019-10-17 16:13:14 -04:00
..
acc service/acc: Lower log severity from INFO to DEBUG 2019-09-22 15:15:07 +02:00
am bcat: Remove use of global system accessors 2019-10-15 16:39:27 -04:00
aoc Rebase 2019-09-22 16:41:34 +10:00
apm apm/controller: Make SetPerformanceConfiguration() use an array of pairs over a map 2019-10-17 16:13:14 -04:00
audio audio/audout_u: Change formatting for old clang-format versions 2019-10-04 23:51:56 +00:00
bcat bcat: Remove use of global system accessors 2019-10-15 16:39:27 -04:00
bpc service: Add bpc and pcv services 2018-08-01 16:13:04 -04:00
btdrv Deglobalize System: Btdrv 2019-09-22 16:30:20 +10:00
btm Deglobalize System: Btm 2019-09-22 16:30:24 +10:00
caps service: Update service function tables 2019-04-11 02:47:00 -04:00
erpt service/erpt: Update function table 2018-12-02 15:46:44 -05:00
es Services::ES fix casting warnings 2019-09-29 22:45:09 +02:00
eupld service: Add eupld services 2018-07-25 22:13:43 -04:00
fatal hle/service: Replace global system instance calls with instance-based ones 2019-10-06 13:42:23 -04:00
fgm Changed logging to be "Log before execution", Added more error logging, all services should now log on some level 2018-11-26 17:06:13 +11:00
filesystem hle/service: Replace global system instance calls with instance-based ones 2019-10-06 13:42:23 -04:00
friend service/friend: Remove unused field 2019-10-04 23:41:21 +00:00
glue glue: Correct missing bytes in ApplicationLaunchParameter 2019-06-25 22:25:10 -04:00
grc service: Add the grc:c service 2018-07-26 09:53:58 -04:00
hid hid: Implement DeactivateNpad 2019-10-07 04:44:09 -07:00
lbl Changed logging to be "Log before execution", Added more error logging, all services should now log on some level 2018-11-26 17:06:13 +11:00
ldn service: Update service function tables 2019-04-11 02:47:00 -04:00
ldr hle/service: Replace global system instance calls with instance-based ones 2019-10-06 13:42:23 -04:00
lm lm: Flush manager output on core shutdown 2019-09-22 12:34:55 -04:00
mig service: Add migration services 2018-08-02 10:09:45 -04:00
mii Merge pull request #2708 from DarkLordZach/mii-db-source-crash 2019-09-04 13:07:10 +10:00
mm Changed logging to be "Log before execution", Added more error logging, all services should now log on some level 2018-11-26 17:06:13 +11:00
ncm ncm: Implement LR OpenAddOnContentLocationResolver (2) 2019-05-26 20:37:13 -04:00
nfc core/yuzu: Remove enable_nfc setting 2019-03-29 15:02:28 +01:00
nfp service/nfp: Silence -Wunused and -Wswitch 2019-10-04 23:41:22 +00:00
nifm nifm: Signal to applications that internet access is available 2019-09-30 17:21:53 -04:00
nim Rebase 2019-09-22 16:41:34 +10:00
npns service: Update service function tables 2019-04-11 02:47:00 -04:00
ns pl_u: Fix mismatched rebase size error in font encryption 2019-10-13 13:46:27 -04:00
nvdrv Merge pull request #2912 from FernandoS27/async-fixes 2019-10-16 10:34:48 -04:00
nvflinger Merge pull request #2912 from FernandoS27/async-fixes 2019-10-16 10:34:48 -04:00
pcie service: Add the pcie service 2018-07-31 06:40:21 -04:00
pctl service: Update service function tables 2019-04-11 02:47:00 -04:00
pcv service: Add bpc and pcv services 2018-08-01 16:13:04 -04:00
pm pm: Implement pm:shell and pm:dmnt GetApplicationPid 2019-06-26 19:07:34 -04:00
prepo Rebase 2019-09-22 16:37:59 +10:00
psc service/psc: Update function tables 2019-01-29 21:16:24 -05:00
ptm psm: Stub GetChargerType 2018-10-21 22:03:25 -04:00
set set: Implement GetQuestFlag 2019-06-28 18:38:47 -04:00
sm kernel/server_port: Make data members private 2019-03-11 10:41:05 -04:00
sockets service: Update service function tables 2019-04-11 02:47:00 -04:00
spl hle/service: Resolve unused variable warnings 2019-04-04 13:18:09 -04:00
ssl service: Update service function tables 2019-04-11 02:47:00 -04:00
time Deglobalize System: Time 2019-09-22 16:38:02 +10:00
usb service/usb: Update function table 2018-12-02 15:49:40 -05:00
vi Deglobalize System: Vi 2019-09-22 16:38:03 +10:00
wlan service: Add wlan services 2018-07-28 21:54:55 -04:00
service.cpp Merge pull request #2654 from DarkLordZach/lm-log-rewrite 2019-10-08 20:23:13 -04:00
service.h services: Pass FileSystemController as reference to services that need it 2019-09-21 16:43:10 -04:00