From 816d03f7d96278c5b3d2604f94901270b10d4167 Mon Sep 17 00:00:00 2001 From: Narr the Reg Date: Fri, 9 Feb 2024 10:31:35 -0600 Subject: service: bcat: Address review issues --- src/core/hle/service/bcat/bcat_interface.cpp | 61 ---------------------------- 1 file changed, 61 deletions(-) delete mode 100644 src/core/hle/service/bcat/bcat_interface.cpp (limited to 'src/core/hle/service/bcat/bcat_interface.cpp') diff --git a/src/core/hle/service/bcat/bcat_interface.cpp b/src/core/hle/service/bcat/bcat_interface.cpp deleted file mode 100644 index 2d9a0efcc..000000000 --- a/src/core/hle/service/bcat/bcat_interface.cpp +++ /dev/null @@ -1,61 +0,0 @@ -// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project -// SPDX-License-Identifier: GPL-2.0-or-later - -#include "core/hle/service/bcat/bcat_interface.h" -#include "core/hle/service/bcat/bcat_service.h" -#include "core/hle/service/bcat/delivery_cache_storage_service.h" -#include "core/hle/service/cmif_serialization.h" -#include "core/hle/service/filesystem/filesystem.h" - -namespace Service::BCAT { - -std::unique_ptr CreateBackendFromSettings([[maybe_unused]] Core::System& system, - DirectoryGetter getter) { - return std::make_unique(std::move(getter)); -} - -BcatInterface::BcatInterface(Core::System& system_, const char* name_) - : ServiceFramework{system_, name_}, fsc{system.GetFileSystemController()} { - // clang-format off - static const FunctionInfo functions[] = { - {0, C<&BcatInterface::CreateBcatService>, "CreateBcatService"}, - {1, C<&BcatInterface::CreateDeliveryCacheStorageService>, "CreateDeliveryCacheStorageService"}, - {2, C<&BcatInterface::CreateDeliveryCacheStorageServiceWithApplicationId>, "CreateDeliveryCacheStorageServiceWithApplicationId"}, - {3, nullptr, "CreateDeliveryCacheProgressService"}, - {4, nullptr, "CreateDeliveryCacheProgressServiceWithApplicationId"}, - }; - // clang-format on - - RegisterHandlers(functions); - - backend = - CreateBackendFromSettings(system_, [this](u64 tid) { return fsc.GetBCATDirectory(tid); }); -} - -BcatInterface::~BcatInterface() = default; - -Result BcatInterface::CreateBcatService(OutInterface out_interface) { - LOG_INFO(Service_BCAT, "called"); - *out_interface = std::make_shared(system, *backend); - R_SUCCEED(); -} - -Result BcatInterface::CreateDeliveryCacheStorageService( - OutInterface out_interface) { - LOG_INFO(Service_BCAT, "called"); - - const auto title_id = system.GetApplicationProcessProgramID(); - *out_interface = - std::make_shared(system, fsc.GetBCATDirectory(title_id)); - R_SUCCEED(); -} - -Result BcatInterface::CreateDeliveryCacheStorageServiceWithApplicationId( - u64 title_id, OutInterface out_interface) { - LOG_DEBUG(Service_BCAT, "called, title_id={:016X}", title_id); - *out_interface = - std::make_shared(system, fsc.GetBCATDirectory(title_id)); - R_SUCCEED(); -} - -} // namespace Service::BCAT -- cgit v1.2.3