summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/bcat/bcat.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-02-08 23:58:44 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2024-02-10 07:23:22 +0100
commit7c2e9a6596c8b6c5d366c3eaaf926ad7db406486 (patch)
tree77657cc9413e380eb49e758647536a9dff4f7082 /src/core/hle/service/bcat/bcat.cpp
parentMerge pull request #12951 from liamwhite/more-ipc (diff)
downloadyuzu-7c2e9a6596c8b6c5d366c3eaaf926ad7db406486.tar
yuzu-7c2e9a6596c8b6c5d366c3eaaf926ad7db406486.tar.gz
yuzu-7c2e9a6596c8b6c5d366c3eaaf926ad7db406486.tar.bz2
yuzu-7c2e9a6596c8b6c5d366c3eaaf926ad7db406486.tar.lz
yuzu-7c2e9a6596c8b6c5d366c3eaaf926ad7db406486.tar.xz
yuzu-7c2e9a6596c8b6c5d366c3eaaf926ad7db406486.tar.zst
yuzu-7c2e9a6596c8b6c5d366c3eaaf926ad7db406486.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/bcat/bcat.cpp30
1 files changed, 16 insertions, 14 deletions
diff --git a/src/core/hle/service/bcat/bcat.cpp b/src/core/hle/service/bcat/bcat.cpp
index d0ac17324..31e9d8662 100644
--- a/src/core/hle/service/bcat/bcat.cpp
+++ b/src/core/hle/service/bcat/bcat.cpp
@@ -1,24 +1,26 @@
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
+#include "core/hle/service/bcat/backend/backend.h"
#include "core/hle/service/bcat/bcat.h"
+#include "core/hle/service/bcat/bcat_interface.h"
+#include "core/hle/service/server_manager.h"
namespace Service::BCAT {
-BCAT::BCAT(Core::System& system_, std::shared_ptr<Module> module_,
- FileSystem::FileSystemController& fsc_, const char* name_)
- : Interface(system_, std::move(module_), fsc_, name_) {
- // clang-format off
- static const FunctionInfo functions[] = {
- {0, &BCAT::CreateBcatService, "CreateBcatService"},
- {1, &BCAT::CreateDeliveryCacheStorageService, "CreateDeliveryCacheStorageService"},
- {2, &BCAT::CreateDeliveryCacheStorageServiceWithApplicationId, "CreateDeliveryCacheStorageServiceWithApplicationId"},
- {3, nullptr, "CreateDeliveryCacheProgressService"},
- {4, nullptr, "CreateDeliveryCacheProgressServiceWithApplicationId"},
- };
- // clang-format on
- RegisterHandlers(functions);
+void LoopProcess(Core::System& system) {
+ auto server_manager = std::make_unique<ServerManager>(system);
+
+ server_manager->RegisterNamedService("bcat:a",
+ std::make_shared<BcatInterface>(system, "bcat:a"));
+ server_manager->RegisterNamedService("bcat:m",
+ std::make_shared<BcatInterface>(system, "bcat:m"));
+ server_manager->RegisterNamedService("bcat:u",
+ std::make_shared<BcatInterface>(system, "bcat:u"));
+ server_manager->RegisterNamedService("bcat:s",
+ std::make_shared<BcatInterface>(system, "bcat:s"));
+
+ ServerManager::RunServer(std::move(server_manager));
}
-BCAT::~BCAT() = default;
} // namespace Service::BCAT