crypto/key_manager: Remove dependency on the global system accessor
We can supply the content provider as an argument instead of hardcoding a global accessor in the implementation.
This commit is contained in:
parent
1a9774f824
commit
e0dd440b1f
3 changed files with 12 additions and 7 deletions
|
@ -2592,8 +2592,10 @@ void GMainWindow::OnReinitializeKeys(ReinitializeKeyBehavior behavior) {
|
|||
|
||||
const auto function = [this, &keys, &pdm] {
|
||||
keys.PopulateFromPartitionData(pdm);
|
||||
Core::System::GetInstance().GetFileSystemController().CreateFactories(*vfs);
|
||||
keys.DeriveETicket(pdm);
|
||||
|
||||
auto& system = Core::System::GetInstance();
|
||||
system.GetFileSystemController().CreateFactories(*vfs);
|
||||
keys.DeriveETicket(pdm, system.GetContentProvider());
|
||||
};
|
||||
|
||||
QString errors;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue