Example #1
0
 public void SaveInstallLocation(string bundleLocation)
 {
     if (!InstalledBundleLocation.Contains(bundleLocation) && !IsSubDirectoryOrEqualPluginsDirectory(bundleLocation, BundleRuntime.Instance.Framework.Options.PluginsDirectoryList))
     {
         InstalledBundleLocation.Add(bundleLocation);
     }
     UnInstalledBundleLocation.RemoveAll(item => item.Location == bundleLocation);
 }
Example #2
0
 public void SaveUnInstallLocation(string path, bool needRemove)
 {
     if (!UnInstalledBundleLocation.Exists(item => item.Location == path))
     {
         var option = new UnInstallBundleOption {
             Location   = path,
             NeedRemove = needRemove
         };
         UnInstalledBundleLocation.Add(option);
     }
     InstalledBundleLocation.Remove(path);
 }