caps.cpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "core/hle/service/caps/caps.h"
  4. #include "core/hle/service/caps/caps_a.h"
  5. #include "core/hle/service/caps/caps_c.h"
  6. #include "core/hle/service/caps/caps_manager.h"
  7. #include "core/hle/service/caps/caps_sc.h"
  8. #include "core/hle/service/caps/caps_ss.h"
  9. #include "core/hle/service/caps/caps_su.h"
  10. #include "core/hle/service/caps/caps_u.h"
  11. #include "core/hle/service/server_manager.h"
  12. #include "core/hle/service/service.h"
  13. namespace Service::Capture {
  14. void LoopProcess(Core::System& system) {
  15. auto server_manager = std::make_unique<ServerManager>(system);
  16. auto album_manager = std::make_shared<AlbumManager>(system);
  17. server_manager->RegisterNamedService(
  18. "caps:a", std::make_shared<IAlbumAccessorService>(system, album_manager));
  19. server_manager->RegisterNamedService(
  20. "caps:c", std::make_shared<IAlbumControlService>(system, album_manager));
  21. server_manager->RegisterNamedService(
  22. "caps:u", std::make_shared<IAlbumApplicationService>(system, album_manager));
  23. server_manager->RegisterNamedService("caps:ss", std::make_shared<IScreenShotService>(system));
  24. server_manager->RegisterNamedService("caps:sc",
  25. std::make_shared<IScreenShotControlService>(system));
  26. server_manager->RegisterNamedService("caps:su",
  27. std::make_shared<IScreenShotApplicationService>(system));
  28. ServerManager::RunServer(std::move(server_manager));
  29. }
  30. } // namespace Service::Capture