Skip to content

Commit

Permalink
Add IRunGameTool for BG3
Browse files Browse the repository at this point in the history
  • Loading branch information
Al12rs committed Sep 24, 2024
1 parent b2b9da0 commit d7d8d6c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using NexusMods.Abstractions.Games;

namespace NexusMods.Games.Larian.BaldursGate3.RunGameTools;

public class BG3RunGameTool : RunGameTool<BaldursGate3>
{
public BG3RunGameTool(IServiceProvider serviceProvider, BaldursGate3 game) : base(serviceProvider, game)
{
}
}
3 changes: 3 additions & 0 deletions src/Games/NexusMods.Games.Larian/BaldursGate3/Services.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using Microsoft.Extensions.DependencyInjection;
using NexusMods.Abstractions.Games;
using NexusMods.Abstractions.Loadouts;
using NexusMods.Abstractions.Settings;
using NexusMods.Games.Larian.BaldursGate3.RunGameTools;

namespace NexusMods.Games.Larian.BaldursGate3;

Expand All @@ -10,6 +12,7 @@ public static IServiceCollection AddBaldursGate3(this IServiceCollection service
{
services
.AddGame<BaldursGate3>()
.AddSingleton<ITool, BG3RunGameTool>()
.AddSettings<BaldursGate3Settings>();

return services;
Expand Down

0 comments on commit d7d8d6c

Please sign in to comment.