Ejemplo n.º 1
0
 public void FetchAndRefresh()
 {
     VoiceOfBees.FetchList();
     listAUDBEntries.Items.Clear();
     foreach (var rel in VoiceOfBees.EntryList)
     {
         listAUDBEntries.Items.Add(rel);
     }
     DrawBoxes();
 }
Ejemplo n.º 2
0
        public void FetchAndRefresh()
        {
            bool fl = VoiceOfBees.FetchRelays();

            listAUDBEntries.Items.Clear();
            foreach (var rel in VoiceOfBees.ModEntryList)
            {
                listAUDBEntries.Items.Add(rel);
            }
            DrawBoxes();
            if (!fl)
            {
                labelOperationStatus.Text = "Retrieving modlist failed, check BOILOG.txt for details";
            }
        }
Ejemplo n.º 3
0
Archivo: BOI.cs Proyecto: 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);
            }
        }
Ejemplo n.º 4
0
        private void btn_InstallBep_Click(object sender, EventArgs e)
        {
            int errc = VoiceOfBees.DownloadBepAsync(BlepOut.RootPath);

            labelOperationStatus.Text = (errc == 0) ? "BepInEx installed successfully" : $"{errc} error(s) encountered while installing!";
        }