bcat: Expose CreateBackendFromSettings helper function
This commit is contained in:
parent
fe8c7e66e2
commit
ea17b294ea
@ -50,4 +50,6 @@ public:
|
|||||||
void SetPassphrase(u64 title_id, const Passphrase& passphrase) override;
|
void SetPassphrase(u64 title_id, const Passphrase& passphrase) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
std::unique_ptr<Backend> CreateBackendFromSettings(DirectoryGetter getter);
|
||||||
|
|
||||||
} // namespace Service::BCAT
|
} // namespace Service::BCAT
|
||||||
|
@ -589,7 +589,6 @@ void Module::Interface::CreateDeliveryCacheStorageServiceWithApplicationId(
|
|||||||
Service::FileSystem::GetBCATDirectory(title_id));
|
Service::FileSystem::GetBCATDirectory(title_id));
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
|
||||||
std::unique_ptr<Backend> CreateBackendFromSettings(DirectoryGetter getter) {
|
std::unique_ptr<Backend> CreateBackendFromSettings(DirectoryGetter getter) {
|
||||||
const auto backend = Settings::values.bcat_backend;
|
const auto backend = Settings::values.bcat_backend;
|
||||||
|
|
||||||
@ -600,7 +599,6 @@ std::unique_ptr<Backend> CreateBackendFromSettings(DirectoryGetter getter) {
|
|||||||
|
|
||||||
return std::make_unique<NullBackend>(std::move(getter));
|
return std::make_unique<NullBackend>(std::move(getter));
|
||||||
}
|
}
|
||||||
} // Anonymous namespace
|
|
||||||
|
|
||||||
Module::Interface::Interface(std::shared_ptr<Module> module, const char* name)
|
Module::Interface::Interface(std::shared_ptr<Module> module, const char* name)
|
||||||
: ServiceFramework(name), module(std::move(module)),
|
: ServiceFramework(name), module(std::move(module)),
|
||||||
|
Loading…
Reference in New Issue
Block a user