Exemplo n.º 1
0
Arquivo: BOI.cs Projeto: thalber/BOI
        private void BlepOut_FormClosing(object sender, FormClosingEventArgs e)
        {
            Wood.WriteLine("BOI shutting down. " + DateTime.Now);
            BoiConfigManager.WriteConfig();
            List <string> mns = new List <string>();

            foreach (ModRelay mr in targetFiles)
            {
                mns.Add(mr.AssociatedModData.DisplayedName);
            }
            TagManager.TagCleanup(mns.ToArray());
            TagManager.SaveToFile(tagfilePath);
        }
Exemplo n.º 2
0
 /// <summary>
 /// The one and only ctor
 /// </summary>
 public BlepOut()
 {
     //TODO: add first time launch scanning for game folder
     InitializeComponent();
     this.Text = this.Text.Replace("<VersionNumber>", VersionNumber);
     firstshow = true;
     MaskModeSelect.Items.AddRange(new object[] { Maskmode.Names, Maskmode.Tags, Maskmode.NamesAndTags });
     MaskModeSelect.SelectedItem = Maskmode.NamesAndTags;
     outrmixmods = new List <string>();
     TagManager.ReadTagsFromFile(tagfilePath);
     BoiConfigManager.ReadConfig();
     RootPath = BoiConfigManager.TarPath;
     //if (File.Exists("changelog.txt"))
     //{
     //    System.Diagnostics.Process.Start("changelog.txt");
     //}
     firstshow = false;
 }
Exemplo n.º 3
0
Arquivo: BOI.cs Projeto: thalber/BOI
        public BlepOut()
        {
            InitializeComponent();
            firstshow = true;
            MaskModeSelect.Items.AddRange(new object[] { Maskmode.Names, Maskmode.Tags, Maskmode.NamesAndTags });
            MaskModeSelect.SelectedItem = Maskmode.NamesAndTags;
            Wood.LogPath = Path.Combine(Directory.GetCurrentDirectory(), "BOILOG.txt");
            Wood.WriteLine("BOI starting " + DateTime.Now);
            targetFiles     = new List <ModRelay>();
            pluginBlacklist = new List <string>();
            patchBlacklist  = new List <string>();
            outrmixmods     = new List <string>();
            TagManager.ReadTagsFromFile(tagfilePath);
            BoiConfigManager.ReadConfig();
            UpdateTargetPath(BoiConfigManager.TarPath);
            firstshow = false;
            if (File.Exists(Path.Combine(RootPath, "BepInEx", "LogOutput.log")))
            {
                string[] lans = File.ReadAllLines(Path.Combine(RootPath, "BepInEx", "LogOutput.log"));
                for (int cuwo = 0; cuwo < lans.Length; cuwo++)
                {
                    string scrpyr = lans[cuwo];
                    if (scrpyr.Contains("Here be dragons!"))
                    {
                        Wood.WriteLine("Dragon thoughts found. Saying hi.");
                        goto iolaa;
                    }
                }
iolaa:
                {
                    Wood.WriteLine("...");
                    Wood.WriteLine("To you and your parent, greetings. May your work persist for as long as we do.");
                    Wood.WriteLine("Wish you all well. Bzz!");
                }
            }
            VoiceOfBees.FetchList();
            if (VoiceOfBees.EntryList.Count > 0)
            {
                VoiceOfBees.EntryList[0].TryDownload(ModFolder);
            }
        }