Fix fxo dependencies

This commit is contained in:
Megamouse 2023-12-14 20:26:59 +01:00
parent 47fcb9562f
commit 907e0fa8c8
8 changed files with 45 additions and 17 deletions

View file

@ -634,7 +634,12 @@ void Emulator::Init()
// Load IPC config
g_cfg_ipc.load();
sys_log.notice("Using IPC config:\n%s", g_cfg_ipc.to_string());
g_fxo->get<IPC_socket::IPC_server_manager>().set_server_enabled(g_cfg_ipc.get_server_enabled());
// Create and start IPC server only if needed
if (g_cfg_ipc.get_server_enabled())
{
g_fxo->init<IPC_socket::IPC_server_manager>(true);
}
}
void Emulator::SetUsr(const std::string& user)