示例#1
0
        public IEnumerable <Patch> GetPatches()
        {
            var folderModules = Lib.GetFolderModules(_session.FolderPath);

            _vf.Read(_session.FilePath);
            _sessionSettings.AfterExtractHook.Execute(_session.FolderPath);
            _vf.FixCase(folderModules.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.Item1));
            var vbaFileModules = Lib.GetFolderModules(_vf.FolderPath);

            foreach (var patch in Lib.GetModulePatches(_session, _sessionSettings, _vf.FolderPath, folderModules, vbaFileModules))
            {
                yield return(patch);
            }
            var projPatch = Lib.GetProjectPatch(_session, _vf.FolderPath);

            if (projPatch != null)
            {
                yield return(projPatch);
            }
            var licensesPatch = Lib.GetLicensesPatch(_session, _vf.FolderPath);

            if (licensesPatch != null)
            {
                yield return(licensesPatch);
            }
        }
示例#2
0
        public IEnumerable <Patch> GetPatches()
        {
            var folderModules = Lib.GetFolderModules(_session.FolderPath);

            _vf.Read(_session.FilePath, folderModules.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.Item1));
            foreach (var patch in Lib.GetModulePatches(_session, _sessionSettings, _vf.FolderPath, folderModules, _vf.ModuleTexts.ToList()))
            {
                yield return(patch);
            }
            var projPatch = Lib.GetProjectPatch(_session, _vf.FolderPath);

            if (projPatch != null)
            {
                yield return(projPatch);
            }
            var licensesPatch = Lib.GetLicensesPatch(_session, _vf.FolderPath);

            if (licensesPatch != null)
            {
                yield return(licensesPatch);
            }
        }