private void RunGenerator() { LogMessage("Parsing sound target files.\n", Color.Black, Bold_Font); List <SoundList> TargetData = TSFParser.ReadSoundTargetFiles(); LogMessage("\n", Color.White, Default_Font); if (TargetData.Count > 0) { if (this.SoundData == null) { this.SoundData = CSVParser.ParseCSV(); } if (this.SoundData != null) { LWriter.WriteLuaFile(LWriter.CreateLuaTableString(TargetData, this.SoundData), "CustomSounds.lua"); ECollector.WriteErrorLog(this.Folder_Output, "ErrorLog.txt"); LogMessage("\nComplete!\n", Color.Green, Bold_Font); if (pError) { RunLabelText(""); } } } else { LogMessage("No files to parse! Stopping.\n", eColor, Bold_Font); } }