2016-05-18 01:28:25 +00:00
|
|
|
// Copyright 2016 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2018-10-05 14:59:43 +00:00
|
|
|
#include "core/core.h"
|
2016-12-13 06:35:24 +00:00
|
|
|
#include "core/hle/service/act/act.h"
|
|
|
|
#include "core/hle/service/act/act_a.h"
|
|
|
|
#include "core/hle/service/act/act_u.h"
|
2016-05-18 01:28:25 +00:00
|
|
|
|
2018-09-22 12:23:08 +00:00
|
|
|
namespace Service::ACT {
|
2016-05-18 01:28:25 +00:00
|
|
|
|
2018-03-16 09:36:35 +00:00
|
|
|
Module::Interface::Interface(std::shared_ptr<Module> act, const char* name)
|
|
|
|
: ServiceFramework(name, 1 /* Placeholder */), act(std::move(act)) {}
|
|
|
|
|
|
|
|
Module::Interface::~Interface() = default;
|
|
|
|
|
2018-10-05 14:59:43 +00:00
|
|
|
void InstallInterfaces(Core::System& system) {
|
|
|
|
auto& service_manager = system.ServiceManager();
|
2018-03-16 09:36:35 +00:00
|
|
|
auto act = std::make_shared<Module>();
|
|
|
|
std::make_shared<ACT_A>(act)->InstallAsService(service_manager);
|
|
|
|
std::make_shared<ACT_U>(act)->InstallAsService(service_manager);
|
2016-12-13 06:35:24 +00:00
|
|
|
}
|
2016-05-18 01:28:25 +00:00
|
|
|
|
2018-09-22 12:23:08 +00:00
|
|
|
} // namespace Service::ACT
|