summaryrefslogtreecommitdiff
path: root/src/core/crypto/key_manager.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-12-01 20:32:38 -0500
committerGravatar Lioncash2018-12-01 23:43:23 -0500
commitdb4523f1ece642475d58f8764863c8930a0812e3 (patch)
tree53a96ed05770f77a1dd9bb463863c38e3dffa36c /src/core/crypto/key_manager.cpp
parentFix debug build (diff)
downloadyuzu-db4523f1ece642475d58f8764863c8930a0812e3.tar.gz
yuzu-db4523f1ece642475d58f8764863c8930a0812e3.tar.xz
yuzu-db4523f1ece642475d58f8764863c8930a0812e3.zip
filesystem: De-globalize registered_cache_union
We can just return a new instance of this when it's requested. This only ever holds pointers to the existing registed caches, so it's not a large object. Plus, this also gets rid of the need to keep around a separate member function just to properly clear out the union. Gets rid of one of five globals in the filesystem code.
Diffstat (limited to 'src/core/crypto/key_manager.cpp')
-rw-r--r--src/core/crypto/key_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp
index 904afa039..ed231927b 100644
--- a/src/core/crypto/key_manager.cpp
+++ b/src/core/crypto/key_manager.cpp
@@ -794,7 +794,7 @@ void KeyManager::DeriveBase() {
794 794
795void KeyManager::DeriveETicket(PartitionDataManager& data) { 795void KeyManager::DeriveETicket(PartitionDataManager& data) {
796 // ETicket keys 796 // ETicket keys
797 const auto es = Service::FileSystem::GetUnionContents()->GetEntry( 797 const auto es = Service::FileSystem::GetUnionContents().GetEntry(
798 0x0100000000000033, FileSys::ContentRecordType::Program); 798 0x0100000000000033, FileSys::ContentRecordType::Program);
799 799
800 if (es == nullptr) 800 if (es == nullptr)