mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-18 22:07:57 -05:00
core: Relocate g_service_manager to the System class
Converts the service manager from a global into an instance-based variable.
This commit is contained in:
@ -14,6 +14,8 @@
|
||||
|
||||
namespace Service::SM {
|
||||
|
||||
ServiceManager::~ServiceManager() = default;
|
||||
|
||||
void ServiceManager::InvokeControlRequest(Kernel::HLERequestContext& context) {
|
||||
controller_interface->InvokeRequest(context);
|
||||
}
|
||||
@ -72,7 +74,7 @@ ResultVal<Kernel::SharedPtr<Kernel::ClientSession>> ServiceManager::ConnectToSer
|
||||
return client_port->Connect();
|
||||
}
|
||||
|
||||
std::shared_ptr<ServiceManager> g_service_manager;
|
||||
SM::~SM() = default;
|
||||
|
||||
/**
|
||||
* SM::Initialize service function
|
||||
|
Reference in New Issue
Block a user