2022-04-23 01:59:50 -07:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2018-08-01 13:24:03 -07:00
|
|
|
|
|
|
|
#include "core/hle/service/caps/caps.h"
|
2020-03-31 16:16:36 -07:00
|
|
|
#include "core/hle/service/caps/caps_a.h"
|
|
|
|
#include "core/hle/service/caps/caps_c.h"
|
2023-10-03 19:05:02 -07:00
|
|
|
#include "core/hle/service/caps/caps_manager.h"
|
2020-03-31 16:16:36 -07:00
|
|
|
#include "core/hle/service/caps/caps_sc.h"
|
|
|
|
#include "core/hle/service/caps/caps_ss.h"
|
|
|
|
#include "core/hle/service/caps/caps_su.h"
|
|
|
|
#include "core/hle/service/caps/caps_u.h"
|
2023-02-18 13:26:48 -08:00
|
|
|
#include "core/hle/service/server_manager.h"
|
2018-08-01 13:24:03 -07:00
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
|
|
|
namespace Service::Capture {
|
|
|
|
|
2023-02-18 13:26:48 -08:00
|
|
|
void LoopProcess(Core::System& system) {
|
|
|
|
auto server_manager = std::make_unique<ServerManager>(system);
|
2023-10-11 17:41:56 -07:00
|
|
|
auto album_manager = std::make_shared<AlbumManager>(system);
|
2023-10-03 19:05:02 -07:00
|
|
|
|
|
|
|
server_manager->RegisterNamedService(
|
|
|
|
"caps:a", std::make_shared<IAlbumAccessorService>(system, album_manager));
|
|
|
|
server_manager->RegisterNamedService(
|
|
|
|
"caps:c", std::make_shared<IAlbumControlService>(system, album_manager));
|
|
|
|
server_manager->RegisterNamedService(
|
|
|
|
"caps:u", std::make_shared<IAlbumApplicationService>(system, album_manager));
|
|
|
|
|
2023-10-17 22:05:44 -07:00
|
|
|
server_manager->RegisterNamedService(
|
|
|
|
"caps:ss", std::make_shared<IScreenShotService>(system, album_manager));
|
2023-10-03 19:05:02 -07:00
|
|
|
server_manager->RegisterNamedService("caps:sc",
|
|
|
|
std::make_shared<IScreenShotControlService>(system));
|
2023-10-17 22:05:44 -07:00
|
|
|
server_manager->RegisterNamedService(
|
|
|
|
"caps:su", std::make_shared<IScreenShotApplicationService>(system, album_manager));
|
2023-02-18 13:26:48 -08:00
|
|
|
|
|
|
|
ServerManager::RunServer(std::move(server_manager));
|
2018-08-01 13:24:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Service::Capture
|