public static List <string> sql2es(string[] sqlLines) { var sqlReader = new SQL.SQLReader(); var emoteTable = sqlReader.ReadEmoteTable(sqlLines); emoteTable.BuildLinks(); //ShowScript(emoteTable.EmoteSets); var esLines = BuildScript(emoteTable.EmoteSets); return(esLines); }
public static void sql2es(FileInfo sqlFile) { var sqlLines = File.ReadAllLines(sqlFile.FullName); var sqlReader = new SQL.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); }