summaryrefslogtreecommitdiff
path: root/src/core/hle
diff options
context:
space:
mode:
authorGravatar FearlessTobi2020-05-20 21:28:16 +0200
committerGravatar FearlessTobi2020-05-20 21:28:16 +0200
commit9f82a9a2444a232e746992fa89084b928255cb63 (patch)
tree2d26c90e5bb2edf975afe511f9999beca8c48382 /src/core/hle
parentMerge pull request #3815 from FernandoS27/command-list-2 (diff)
downloadyuzu-9f82a9a2444a232e746992fa89084b928255cb63.tar.gz
yuzu-9f82a9a2444a232e746992fa89084b928255cb63.tar.xz
yuzu-9f82a9a2444a232e746992fa89084b928255cb63.zip
crypto: Make KeyManager a singleton class
Previously, we were reading the keys everytime a KeyManager object was created, causing yuzu to reread the keys file multiple hundreds of times when loading the game list. With this change, it is only loaded once. On my system, this decreased game list loading times by a factor of 20.
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/es/es.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/es/es.cpp b/src/core/hle/service/es/es.cpp
index f8e9df4b1..ad6841a64 100644
--- a/src/core/hle/service/es/es.cpp
+++ b/src/core/hle/service/es/es.cpp
@@ -263,7 +263,7 @@ private:
263 rb.Push<u64>(write_size); 263 rb.Push<u64>(write_size);
264 } 264 }
265 265
266 Core::Crypto::KeyManager keys; 266 Core::Crypto::KeyManager& keys = Core::Crypto::KeyManager::instance();
267}; 267};
268 268
269void InstallInterfaces(SM::ServiceManager& service_manager) { 269void InstallInterfaces(SM::ServiceManager& service_manager) {