protected override async Task<BundleManager> CreateRepoIfNotExistent(ContentPaths modPaths,
     IEnumerable<KeyValuePair<Guid, Uri[]>> remotes) {
     var bm = await base.CreateRepoIfNotExistent(modPaths, remotes).ConfigureAwait(false);
     Game.WhenAny(x => x.PrimaryContentPath.Path, x => x.Value).Subscribe(x => {
         bm.PackageManager.Settings.GlobalWorkingPath = x;
         bm.PackageManager.Settings.CheckoutType = CheckoutType.CheckoutWithoutRemoval;
     });
     return bm;
 }
예제 #2
0
 public ModAndSynqPathsChangedEvent(ISupportModding game, ContentPaths oldPaths, ContentPaths newPaths)
 {
     if (game == null)
     {
         throw new ArgumentNullException(nameof(game));
     }
     Game     = game;
     OldPaths = oldPaths;
     NewPaths = newPaths;
 }
예제 #3
0
 public bool EqualRepositoryPath(ContentPaths other) => RepositoryPath.EqualsNullSupported(other.RepositoryPath);
예제 #4
0
 public bool EqualPath(ContentPaths other) => Path.EqualsNullSupported(other.Path);
예제 #5
0
 public bool EqualRepositoryPath(ContentPaths other) => RepositoryPath.EqualsNullSupported(other.RepositoryPath);
예제 #6
0
 public bool EqualPath(ContentPaths other) => Path.EqualsNullSupported(other.Path);
예제 #7
0
        protected virtual Task<BundleManager> CreateRepoIfNotExistent(ContentPaths modPaths,
            IEnumerable<KeyValuePair<Guid, Uri[]>> remotes) {
            var modPath = modPaths.Path;
            var synqBasePath = modPaths.RepositoryPath;
            var synqPath = synqBasePath.GetChildDirectoryWithName(Repository.DefaultRepoRootDirectory);

            return RepositoryHandler.GetBundleManager(synqPath, modPath, remotes);
        }