public bool EnableOnStartUp(string clientId, string name, string executePath) { if (CheckCredential(clientId)) { return(RegistryManager.AddRegistry("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", name, executePath)); } return(false); }
private void LoadRegistries(IProgressReceiver progress) { progress.UpdateProgress(0, "Loading block model registry..."); RegistryManager.AddRegistry <BlockModelEntry, Graphics.Models.Blocks.BlockModel>(new BlockModelRegistry()); progress.UpdateProgress(0, "Loading blockstate registry..."); RegistryManager.AddRegistry(new RegistryBase <BlockState>("blockstate")); progress.UpdateProgress(50, "Loading block registry..."); RegistryManager.AddRegistry(new BlockRegistry()); }
private void LoadRegistries(IProgressReceiver progress) { progress.UpdateProgress(0, "Loading block model registry..."); RegistryManager.AddRegistry <BlockModelEntry, ResourcePackModelBase>(BlockModelRegistry = new BlockModelRegistry()); progress.UpdateProgress(0, "Loading entity model registry..."); RegistryManager.AddRegistry <EntityModelEntry, EntityModel>(EntityModelRegistry = new EntityModelRegistry()); progress.UpdateProgress(0, "Loading blockstate registry..."); RegistryManager.AddRegistry(new RegistryBase <BlockState>("blockstate")); progress.UpdateProgress(50, "Loading block registry..."); RegistryManager.AddRegistry(new BlockRegistry()); }