public void LoadOpenFx() { logger.Info("Initializing open framework api"); OpenFx.Load(new AutumnBoxGuiBaseApiImpl()); logger.Info("Open framework api system is initialized"); logger.Info("Loading extensions"); OpenFx.RefreshExtensionsList(); ILibsManager libsManager = OpenFx.Lake.Get <ILibsManager>(); logger.Info($"There are {libsManager.Librarians.Count()} librarians and {libsManager.GetAllExtensions().Count()} wrappers"); isLoaded = true; while (handlers.Any()) { try { handlers.Dequeue()(); } catch (Exception e) { logger.Warn("", e); } } }
public static void Initialize() { OpenFx.Load(FakeApi); OpenFx.RefreshExtensionsList(); }