service: Remove two usages of the global system accessor

Removes more instances of reliance on global state.
This commit is contained in:
Lioncash 2020-09-07 03:17:06 -04:00
parent 841b295ad0
commit ffdf8c0cb3
3 changed files with 5 additions and 7 deletions

View file

@ -63,9 +63,9 @@ public:
/// Creates a port pair and registers this service with the given ServiceManager.
void InstallAsService(SM::ServiceManager& service_manager);
/// Creates a port pair and registers it on the kernel's global port registry.
void InstallAsNamedPort();
void InstallAsNamedPort(Kernel::KernelCore& kernel);
/// Creates and returns an unregistered port for the service.
std::shared_ptr<Kernel::ClientPort> CreatePort();
std::shared_ptr<Kernel::ClientPort> CreatePort(Kernel::KernelCore& kernel);
void InvokeRequest(Kernel::HLERequestContext& ctx);