2026-08-18 18:11:33 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
2022-04-23 04:59:50 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-11-19 12:35:07 -08:00
|
|
|
|
|
|
|
|
#include "core/hle/service/olsc/olsc.h"
|
2024-02-21 16:13:01 -05:00
|
|
|
#include "core/hle/service/olsc/olsc_service_for_application.h"
|
|
|
|
|
#include "core/hle/service/olsc/olsc_service_for_system_service.h"
|
2023-02-18 16:26:48 -05:00
|
|
|
#include "core/hle/service/server_manager.h"
|
2020-11-19 12:35:07 -08:00
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
|
|
|
|
|
namespace Service::OLSC {
|
|
|
|
|
|
2026-08-18 18:11:33 +02:00
|
|
|
class ISProfileBgAgentForSystemProcess final : public ServiceFramework<ISProfileBgAgentForSystemProcess> {
|
|
|
|
|
public:
|
|
|
|
|
explicit ISProfileBgAgentForSystemProcess(Core::System& system_)
|
|
|
|
|
: ServiceFramework{system_, "spbg:sp"}
|
|
|
|
|
{
|
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
|
{ 100, nullptr, "OpenBgAgentController" },
|
|
|
|
|
};
|
|
|
|
|
RegisterHandlers(functions);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-02-18 16:26:48 -05:00
|
|
|
void LoopProcess(Core::System& system) {
|
|
|
|
|
auto server_manager = std::make_unique<ServerManager>(system);
|
2026-08-18 18:11:33 +02:00
|
|
|
server_manager->RegisterNamedService("olsc:u", std::make_shared<IOlscServiceForApplication>(system));
|
|
|
|
|
server_manager->RegisterNamedService("olsc:s", std::make_shared<IOlscServiceForSystemService>(system));
|
|
|
|
|
server_manager->RegisterNamedService("spbg:sp", std::make_shared<ISProfileBgAgentForSystemProcess>(system));
|
2023-02-18 16:26:48 -05:00
|
|
|
ServerManager::RunServer(std::move(server_manager));
|
2020-11-19 12:35:07 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace Service::OLSC
|