mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-29 01:56:06 +00:00
olsc: rewrite IOlscServiceForApplication
This commit is contained in:
@@ -12,10 +12,16 @@ namespace Service::OLSC {
|
||||
void LoopProcess(Core::System& system) {
|
||||
auto server_manager = std::make_unique<ServerManager>(system);
|
||||
|
||||
server_manager->RegisterNamedService("olsc:u",
|
||||
std::make_shared<IOlscServiceForApplication>(system));
|
||||
server_manager->RegisterNamedService("olsc:s",
|
||||
std::make_shared<IOlscServiceForSystemService>(system));
|
||||
const auto OlscFactoryForApplication = [&] {
|
||||
return std::make_shared<IOlscServiceForApplication>(system);
|
||||
};
|
||||
|
||||
const auto OlscFactoryForSystemService = [&] {
|
||||
return std::make_shared<IOlscServiceForSystemService>(system);
|
||||
};
|
||||
|
||||
server_manager->RegisterNamedService("olsc:u", OlscFactoryForApplication);
|
||||
server_manager->RegisterNamedService("olsc:s", OlscFactoryForSystemService);
|
||||
|
||||
ServerManager::RunServer(std::move(server_manager));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user