Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

hle: service: sm: Use RegisterNamedService to register the service.

bunneie9d361208594
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index f3fd0f534f..d7e09e8f12 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.cpp
@@ -208,7 +208,7 @@ Services::Services(std::shared_ptr<SM::ServiceManager>& sm, Core::System& system
system.GetFileSystemController().CreateFactories(*system.GetFilesystem(), false);
- SM::ServiceManager::InstallInterfaces(sm, system);
+ system.Kernel().RegisterNamedService("sm:", SM::ServiceManager::InterfaceFactory);
Account::InstallInterfaces(system);
AM::InstallInterfaces(*sm, *nv_flinger, system);