private static void WriteOutputFiles(DlcOwnership ownershipDetails, string outputDirPath, bool convertUnicodeCharacters) { var dlcListWriter = new DlcListWriter(new StringCleaner(false, convertUnicodeCharacters, false, false)); dlcListWriter.WriteOfficialDlcToFile(ownershipDetails.MissingOfficialDlc, Path.Combine(outputDirPath, "missing.csv")); dlcListWriter.WriteSongPackInfoToFile(ownershipDetails.SongPacks, Path.Combine(outputDirPath, "songpacks.csv")); dlcListWriter.WriteDlcListToFile(ownershipDetails.UnknownExisting, Path.Combine(outputDirPath, "unmatchedExisting.csv")); }
private static void CheckDlc(DlcOwnershipInput dlcOwnershipInput, string outputDirPath, bool convertUnicodeCharacters) { var dlcCheckResults = new DlcFunctions().CheckDlcLists(dlcOwnershipInput); var dlcListWriter = new DlcListWriter(new StringCleaner(false, convertUnicodeCharacters, false, false)); var officialUnmatched = dlcCheckResults.Where(x => x.MatchResult == MatchResultType.UnmatchedLeftDlc).Select(x => x.LeftDlc).ToList(); var tuningsUnmatched = dlcCheckResults.Where(x => x.MatchResult == MatchResultType.UnmatchedRightDlc).Select(x => x.RightDlc).ToList(); dlcListWriter.WriteOfficialDlcToFile(officialUnmatched, Path.Combine(outputDirPath, "official_not_matched_to_tunings.csv")); dlcListWriter.WriteDlcListToFile(tuningsUnmatched, Path.Combine(outputDirPath, "tunings_not_match_to_official.csv")); }