summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Zach Hilman2019-05-01 22:41:32 -0400
committerGravatar Zach Hilman2019-09-30 17:27:23 -0400
commitea17b294ea04a00d94025cda97b2cd4d5f730b17 (patch)
tree6a876c4998bd18b4a851b012b8522372c3f9a556 /src
parentam: Unstub PopLaunchParameter and add bcat connection for app-specific data (diff)
downloadyuzu-ea17b294ea04a00d94025cda97b2cd4d5f730b17.tar.gz
yuzu-ea17b294ea04a00d94025cda97b2cd4d5f730b17.tar.xz
yuzu-ea17b294ea04a00d94025cda97b2cd4d5f730b17.zip
bcat: Expose CreateBackendFromSettings helper function
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/bcat/backend/backend.h2
-rw-r--r--src/core/hle/service/bcat/module.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/bcat/backend/backend.h b/src/core/hle/service/bcat/backend/backend.h
index 2e9511f3f..e412819e1 100644
--- a/src/core/hle/service/bcat/backend/backend.h
+++ b/src/core/hle/service/bcat/backend/backend.h
@@ -50,4 +50,6 @@ public:
50 void SetPassphrase(u64 title_id, const Passphrase& passphrase) override; 50 void SetPassphrase(u64 title_id, const Passphrase& passphrase) override;
51}; 51};
52 52
53std::unique_ptr<Backend> CreateBackendFromSettings(DirectoryGetter getter);
54
53} // namespace Service::BCAT 55} // namespace Service::BCAT
diff --git a/src/core/hle/service/bcat/module.cpp b/src/core/hle/service/bcat/module.cpp
index 9244c265a..a8d545992 100644
--- a/src/core/hle/service/bcat/module.cpp
+++ b/src/core/hle/service/bcat/module.cpp
@@ -589,7 +589,6 @@ void Module::Interface::CreateDeliveryCacheStorageServiceWithApplicationId(
589 Service::FileSystem::GetBCATDirectory(title_id)); 589 Service::FileSystem::GetBCATDirectory(title_id));
590} 590}
591 591
592namespace {
593std::unique_ptr<Backend> CreateBackendFromSettings(DirectoryGetter getter) { 592std::unique_ptr<Backend> CreateBackendFromSettings(DirectoryGetter getter) {
594 const auto backend = Settings::values.bcat_backend; 593 const auto backend = Settings::values.bcat_backend;
595 594
@@ -600,7 +599,6 @@ std::unique_ptr<Backend> CreateBackendFromSettings(DirectoryGetter getter) {
600 599
601 return std::make_unique<NullBackend>(std::move(getter)); 600 return std::make_unique<NullBackend>(std::move(getter));
602} 601}
603} // Anonymous namespace
604 602
605Module::Interface::Interface(std::shared_ptr<Module> module, const char* name) 603Module::Interface::Interface(std::shared_ptr<Module> module, const char* name)
606 : ServiceFramework(name), module(std::move(module)), 604 : ServiceFramework(name), module(std::move(module)),