summaryrefslogblamecommitdiffstats
path: root/src/core/hle/service/am/am.cpp
blob: 9dc710ba90f706dd34b37a0c19340b759a073af8 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                               
 
                                   

                                                                          
                                            
 
                       
 
                                                                            

                                                                  



                                                                                          
                                                        

 
                          
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#include "core/hle/service/am/am.h"
#include "core/hle/service/am/service/all_system_applet_proxies_service.h"
#include "core/hle/service/am/service/application_proxy_service.h"
#include "core/hle/service/server_manager.h"

namespace Service::AM {

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

    server_manager->RegisterNamedService(
        "appletAE", std::make_shared<IAllSystemAppletProxiesService>(system, nvnflinger));
    server_manager->RegisterNamedService(
        "appletOE", std::make_shared<IApplicationProxyService>(system, nvnflinger));
    ServerManager::RunServer(std::move(server_manager));
}

} // namespace Service::AM