mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 15:45:46 +00: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:
parent
18e541f7e2
commit
4bd499d440
6 changed files with 65 additions and 37 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue