Пример #1
0
        public static void sql2es(FileInfo sqlFile)
        {
            var sqlLines = File.ReadAllLines(sqlFile.FullName);

            var sqlReader = new SQLReader();

            var emoteTable = sqlReader.ReadEmoteTable(sqlLines);

            emoteTable.BuildLinks();

            //ShowScript(emoteTable.EmoteSets);

            var esFilename = Path.ChangeExtension(sqlFile.FullName, ".es");

            // check if file already exists?

            var esFile = new FileInfo(esFilename);

            OutputScript(emoteTable.EmoteSets, esFile);
        }