Esempio n. 1
0
        private void generateentFilesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Initialize
            using (FolderBrowserDialog folderDlg = new FolderBrowserDialog())
            {
                //Setup
                folderDlg.Description = "Browse to directory to create *.ent files.";

                //Show
                if (folderDlg.ShowDialog() == DialogResult.OK)
                {
                    //Clear directory
                    foreach (string file in Directory.GetFiles(folderDlg.SelectedPath))
                    {
                        File.Delete(file);
                    }

                    //Loop through tag groups
                    foreach (AbideTagGroup tagGroup in collection.GetTagGroups())
                    {
                        string pluginName = tagGroup.GroupTag.FourCc.Replace('<', '_').Replace('>', '_').Replace('?', '_');
                        string path       = Path.Combine(folderDlg.SelectedPath, $"{pluginName}.ent");
                    }
                }
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Preprocesses a tag cache object for guerilla.
        /// </summary>
        /// <param name="collection">The tag collection object containing tag blocks and tag groups.</param>
        public static void PreprocessForGuerilla(TagDefinitionCollection collection)
        {
            //Loop
            foreach (AbideTagBlock tagBlock in collection.GetTagBlocks())
            {
                GeneralPreprocess.Preprocess(tagBlock, collection);
                GuerillaPreprocess.Preprocess(tagBlock, collection);
            }

            //Preprocess
            Preprocess(collection.GetTagGroups(), collection.GetTagBlocks());
        }