public long ImportBsnesTraceLogs(string[] fileNames) { var importer = new BsnesTraceLogImporter(Project.Data); // TODO: differentiate between binary-formatted and text-formatted files // probably look for a newline within 80 characters // call importer.ImportTraceLogLineBinary() // caution: trace logs can be gigantic, even a few seconds can be > 1GB // inside here, performance becomes critical. LargeFilesReader.ReadFilesLines(fileNames, (line) => { importer.ImportTraceLogLine(line); }); if (importer.CurrentStats.NumRomBytesModified > 0) { MarkChanged(); } return(importer.CurrentStats.NumRomBytesModified); }