summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/bcat/bcat.cpp
blob: 02995ddeebf82b0b3659225dde4552158305c8db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#include "core/hle/service/bcat/backend/backend.h"
#include "core/hle/service/bcat/bcat.h"
#include "core/hle/service/bcat/bcat_interface.h"
#include "core/hle/service/bcat/news/news_interface.h"
#include "core/hle/service/server_manager.h"

namespace Service::BCAT {

void LoopProcess(Core::System& system) {
    auto server_manager = std::make_unique<ServerManager>(system);

    server_manager->RegisterNamedService("bcat:a",
                                         std::make_shared<BcatInterface>(system, "bcat:a"));
    server_manager->RegisterNamedService("bcat:m",
                                         std::make_shared<BcatInterface>(system, "bcat:m"));
    server_manager->RegisterNamedService("bcat:u",
                                         std::make_shared<BcatInterface>(system, "bcat:u"));
    server_manager->RegisterNamedService("bcat:s",
                                         std::make_shared<BcatInterface>(system, "bcat:s"));

    server_manager->RegisterNamedService(
        "news:a", std::make_shared<NewsInterface>(system, 0xffffffff, "news:a"));
    server_manager->RegisterNamedService("news:p",
                                         std::make_shared<NewsInterface>(system, 0x1, "news:p"));
    server_manager->RegisterNamedService("news:c",
                                         std::make_shared<NewsInterface>(system, 0x2, "news:c"));
    server_manager->RegisterNamedService("news:v",
                                         std::make_shared<NewsInterface>(system, 0x4, "news:v"));
    server_manager->RegisterNamedService("news:m",
                                         std::make_shared<NewsInterface>(system, 0xd, "news:m"));

    ServerManager::RunServer(std::move(server_manager));
}

} // namespace Service::BCAT