From f038dccf2f0789cb216fd648c5a1e893b839a258 Mon Sep 17 00:00:00 2001 From: AnakinRaW Date: Sat, 14 Dec 2024 17:08:33 +0100 Subject: [PATCH] rename --- .../src/PetroglyphGameInfrastructure.cs | 2 +- .../Detection/Mods/IModReferenceFinder.cs | 2 +- .../src/Services/Detection/Mods/ModFinder.cs | 16 +--------------- 3 files changed, 3 insertions(+), 17 deletions(-) diff --git a/src/PetroGlyph.Games.EawFoc/src/PetroglyphGameInfrastructure.cs b/src/PetroGlyph.Games.EawFoc/src/PetroglyphGameInfrastructure.cs index 873a743..9222120 100644 --- a/src/PetroGlyph.Games.EawFoc/src/PetroglyphGameInfrastructure.cs +++ b/src/PetroGlyph.Games.EawFoc/src/PetroglyphGameInfrastructure.cs @@ -29,7 +29,7 @@ public static void InitializeServices(IServiceCollection serviceCollection) serviceCollection.AddSingleton(sp => new GameFactory(sp)); //serviceCollection.AddSingleton(sp => new ModFactory(sp)); serviceCollection.AddSingleton(sp => new ModIdentifierBuilder(sp)); - serviceCollection.AddSingleton(sp => new ModFinder(sp)); + serviceCollection.AddSingleton(sp => new ModFinder(sp)); serviceCollection.AddSingleton(sp => new ModReferenceLocationResolver(sp)); serviceCollection.AddSingleton(sp => new ModDependencyResolver(sp)); diff --git a/src/PetroGlyph.Games.EawFoc/src/Services/Detection/Mods/IModReferenceFinder.cs b/src/PetroGlyph.Games.EawFoc/src/Services/Detection/Mods/IModReferenceFinder.cs index 600a875..7940ab4 100644 --- a/src/PetroGlyph.Games.EawFoc/src/Services/Detection/Mods/IModReferenceFinder.cs +++ b/src/PetroGlyph.Games.EawFoc/src/Services/Detection/Mods/IModReferenceFinder.cs @@ -7,7 +7,7 @@ namespace PG.StarWarsGame.Infrastructure.Services.Detection; /// /// Service to search for s. /// -public interface IModReferenceFinder +public interface IModFinder { /// /// Searches for for a given game. diff --git a/src/PetroGlyph.Games.EawFoc/src/Services/Detection/Mods/ModFinder.cs b/src/PetroGlyph.Games.EawFoc/src/Services/Detection/Mods/ModFinder.cs index 8cb55d1..4e3972f 100644 --- a/src/PetroGlyph.Games.EawFoc/src/Services/Detection/Mods/ModFinder.cs +++ b/src/PetroGlyph.Games.EawFoc/src/Services/Detection/Mods/ModFinder.cs @@ -11,19 +11,12 @@ namespace PG.StarWarsGame.Infrastructure.Services.Detection; -/// -/// Searches for s for a give . -/// -internal class ModFinder : IModReferenceFinder +internal class ModFinder : IModFinder { private readonly ISteamGameHelpers _steamHelper; private readonly IModIdentifierBuilder _idBuilder; private readonly IModGameTypeResolver _gameTypeResolver; - /// - /// Creates a new instance. - /// - /// The service provider public ModFinder(IServiceProvider serviceProvider) { if (serviceProvider == null) @@ -33,13 +26,6 @@ public ModFinder(IServiceProvider serviceProvider) _gameTypeResolver = serviceProvider.GetRequiredService(); } - /// - /// Searches mods for the given . - /// - /// The game which hosts the mods. - /// A set of s. - /// The either holds the absolute path or Steam Workshops ID. - /// If the is not installed. public ISet FindMods(IGame game) { if (game == null)