示例#1
0
        private static void CalculateOwnership(DlcOwnershipInput dlcOwnershipInput, string outputDirPath, bool convertEncoding)
        {
            var dlcFuncs = new DlcFunctions();

            var ownershipDetails = new DlcFunctions().CalculateOwnership(dlcOwnershipInput);

            WriteOutputFiles(ownershipDetails, outputDirPath, convertEncoding);
        }
示例#2
0
        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"));
        }
示例#3
0
        static void Main(string[] args)
        {
            var programArgs = ParseArguments(args);

            if (programArgs == null)
            {
                return;
            }

            var dlcFuncs = new DlcFunctions();
            //dlcFuncs.AttemptLinking();
            //return;
            var loadPolicy = new DlcLoadPolicy
            {
                AddNewItems             = programArgs.AddNewRows,
                ClearExistingBeforeLoad = programArgs.ReplaceExistingItems,
                UpdateExisting          = programArgs.UpdateExisting
            };

            dlcFuncs.LoadSourceToStore(programArgs.PathToDatabase, programArgs.DlcSourcePath, programArgs.SourceType, loadPolicy);
        }