public bool EnableOnStartUp(string clientId, string name, string executePath)
 {
     if (CheckCredential(clientId))
     {
         return(RegistryManager.AddRegistry("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", name, executePath));
     }
     return(false);
 }
示例#2
0
        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());
        }
示例#3
0
        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());
        }