static LocalMod CreateLocalMod(string name, IAbsoluteDirectoryPath localModPath, ISupportModding game) { if (name == null) { throw new ArgumentNullException(nameof(name)); } if (game == null) { throw new ArgumentNullException(nameof(game)); } var localMod = new LocalMod(System.Guid.Empty) { Name = name, CustomPath = localModPath }; localMod.Controller.UpdateState(game); return(localMod); }
static LocalMod CreateLocalMod(string name, IAbsoluteDirectoryPath localModPath, ISupportModding game) { Contract.Requires<ArgumentNullException>(name != null); Contract.Requires<ArgumentNullException>(game != null); var localMod = new LocalMod(System.Guid.Empty) { Name = name, CustomPath = localModPath }; localMod.Controller.UpdateState(game); return localMod; }