From 0906de9a14b735d1d409290ca050eb7d2c2d3d84 Mon Sep 17 00:00:00 2001 From: bunnei Date: Tue, 10 Oct 2017 17:32:14 -0400 Subject: hle: Remove a large amount of 3ds-specific service code. --- src/core/frontend/camera/factory.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/core/frontend/camera/factory.cpp (limited to 'src/core/frontend/camera/factory.cpp') diff --git a/src/core/frontend/camera/factory.cpp b/src/core/frontend/camera/factory.cpp deleted file mode 100644 index 4b4da50dd..000000000 --- a/src/core/frontend/camera/factory.cpp +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2016 Citra Emulator Project -// Licensed under GPLv2 or any later version -// Refer to the license.txt file included. - -#include -#include "common/logging/log.h" -#include "core/frontend/camera/blank_camera.h" -#include "core/frontend/camera/factory.h" - -namespace Camera { - -static std::unordered_map> factories; - -CameraFactory::~CameraFactory() = default; - -void RegisterFactory(const std::string& name, std::unique_ptr factory) { - factories[name] = std::move(factory); -} - -std::unique_ptr CreateCamera(const std::string& name, const std::string& config) { - auto pair = factories.find(name); - if (pair != factories.end()) { - return pair->second->Create(config); - } - - if (name != "blank") { - LOG_ERROR(Service_CAM, "Unknown camera \"%s\"", name.c_str()); - } - return std::make_unique(); -} - -} // namespace Camera -- cgit v1.2.3