private void OutputSamples(string filename, string dmcFilename) { if (project.UsesSamples) { var sampleData = project.GetPackedSampleData(); // TODO: Once we have a real project name, we will use that. var path = Path.GetDirectoryName(filename); var projectname = Utils.MakeNiceAsmName(project.Name); if (dmcFilename == null) { dmcFilename = Path.Combine(path, projectname + ".dmc"); } File.WriteAllBytes(dmcFilename, sampleData); } }