mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-26 11:22:33 -06:00
nvdrv: use correct names for interface factory
This commit is contained in:
parent
beb438bb0b
commit
b6c6534c30
1 changed files with 3 additions and 3 deletions
|
@ -52,15 +52,15 @@ void LoopProcess(Nvnflinger::Nvnflinger& nvnflinger, Core::System& system) {
|
||||||
return std::make_shared<NVDRV>(system, module, "nvdrv:a");
|
return std::make_shared<NVDRV>(system, module, "nvdrv:a");
|
||||||
};
|
};
|
||||||
const auto NvdrvInterfaceFactoryForSysmodules = [&, module] {
|
const auto NvdrvInterfaceFactoryForSysmodules = [&, module] {
|
||||||
return std::make_shared<NVDRV>(system, module, "nvdrv:a");
|
return std::make_shared<NVDRV>(system, module, "nvdrv:s");
|
||||||
};
|
};
|
||||||
const auto NvdrvInterfaceFactory = [&, module] {
|
const auto NvdrvInterfaceFactoryForTesting = [&, module] {
|
||||||
return std::make_shared<NVDRV>(system, module, "nvdrv:t");
|
return std::make_shared<NVDRV>(system, module, "nvdrv:t");
|
||||||
};
|
};
|
||||||
server_manager->RegisterNamedService("nvdrv", NvdrvInterfaceFactoryForApplication);
|
server_manager->RegisterNamedService("nvdrv", NvdrvInterfaceFactoryForApplication);
|
||||||
server_manager->RegisterNamedService("nvdrv:a", NvdrvInterfaceFactoryForApplets);
|
server_manager->RegisterNamedService("nvdrv:a", NvdrvInterfaceFactoryForApplets);
|
||||||
server_manager->RegisterNamedService("nvdrv:s", NvdrvInterfaceFactoryForSysmodules);
|
server_manager->RegisterNamedService("nvdrv:s", NvdrvInterfaceFactoryForSysmodules);
|
||||||
server_manager->RegisterNamedService("nvdrv:t", NvdrvInterfaceFactory);
|
server_manager->RegisterNamedService("nvdrv:t", NvdrvInterfaceFactoryForTesting);
|
||||||
server_manager->RegisterNamedService("nvmemp", std::make_shared<NVMEMP>(system));
|
server_manager->RegisterNamedService("nvmemp", std::make_shared<NVMEMP>(system));
|
||||||
nvnflinger.SetNVDrvInstance(module);
|
nvnflinger.SetNVDrvInstance(module);
|
||||||
ServerManager::RunServer(std::move(server_manager));
|
ServerManager::RunServer(std::move(server_manager));
|
||||||
|
|
Loading…
Reference in a new issue