aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/registered_cache.h
diff options
context:
space:
mode:
authorFearlessTobi <thm.frey@gmail.com>2020-05-20 21:28:16 +0200
committerFearlessTobi <thm.frey@gmail.com>2020-05-20 21:28:16 +0200
commit5e9e8073a054e8ebb5143f0ae510235599b28f79 (patch)
tree2d26c90e5bb2edf975afe511f9999beca8c48382 /src/core/file_sys/registered_cache.h
parenta1d3586e606f5a008b442d9335cbc783006f5286 (diff)
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/file_sys/registered_cache.h')
-rw-r--r--src/core/file_sys/registered_cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/file_sys/registered_cache.h b/src/core/file_sys/registered_cache.h
index d1eec240e7..4b2fb08cb5 100644
--- a/src/core/file_sys/registered_cache.h
+++ b/src/core/file_sys/registered_cache.h
@@ -88,7 +88,7 @@ public:
protected:
// A single instance of KeyManager to be used by GetEntry()
- Core::Crypto::KeyManager keys;
+ Core::Crypto::KeyManager& keys = Core::Crypto::KeyManager::instance();
};
class PlaceholderCache {