Esempio n. 1
0
        static void Main(string[] args)
        {
            DirectoryInfo Dir;

            FileInfo[] files;

            Dir   = new DirectoryInfo(String.Format(@"{0}\TuningParameters\", Log.GetPathName()));
            files = Dir.GetFiles("*.dvbc");
            foreach (FileInfo file in files)
            {
                DVBC.ConvertList(file.FullName);
            }

            Dir   = new DirectoryInfo(String.Format(@"{0}\TuningParameters\", Log.GetPathName()));
            files = Dir.GetFiles("*.ini");
            foreach (FileInfo file in files)
            {
                // no s2, get combined
                if (!file.FullName.EndsWith("-S2.ini"))
                {
                    DVBS.ConvertList(file.FullName, false);
                }
            }

            Dir   = new DirectoryInfo(String.Format(@"{0}\TuningParameters\", Log.GetPathName()));
            files = Dir.GetFiles("*.qam");
            foreach (FileInfo file in files)
            {
                ATSC.ConvertList(file.FullName);
            }
            DVBT.ConvertList(String.Format(@"{0}\TuningParameters\dvbt.xml", Log.GetPathName()));
        }
Esempio n. 2
0
        static public string MakeDVBCName(string fileName)
        {
            String safeName = DVBT.MakeFileName(fileName);

            if (safeName.Contains("-"))
            {
                Regex re = new Regex("-");
                safeName = re.Replace(safeName, ".", 1);
            }
            else
            {
                safeName = "Global." + safeName;
            }
            return(safeName);
        }