Skip to content

Commit

Permalink
Register screenshotting services
Browse files Browse the repository at this point in the history
  • Loading branch information
Neakita committed Oct 13, 2024
1 parent bce80f1 commit 4a9071b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SightKeeper.Avalonia/Setup/ServicesBootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using SightKeeper.Data.Binary.Services;
using SightKeeper.Domain.Model.DataSets;
using SightKeeper.Domain.Model.DataSets.Screenshots;
using SixLabors.ImageSharp.PixelFormats;
using GamesDataAccess = SightKeeper.Application.Games.GamesDataAccess;

namespace SightKeeper.Avalonia.Setup;
Expand All @@ -29,7 +30,7 @@ public static void Setup(ContainerBuilder builder)
builder.RegisterType<DataSetCreator>();
builder.RegisterType<DataSetEditor>().SingleInstance();
builder.RegisterType<SharpHookScreenBoundsProvider>().As<ScreenBoundsProvider>();
builder.RegisterType<Screenshotter>();
builder.RegisterType<Screenshotter<Bgra32>>().As<Screenshotter>();
}

private static void SetupBinarySerialization(ContainerBuilder builder)
Expand Down
3 changes: 3 additions & 0 deletions SightKeeper.Avalonia/Setup/WindowsBootstrapper.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#if OS_WINDOWS
using Autofac;
using SightKeeper.Application;
using SightKeeper.Application.Games;
using SightKeeper.Application.Windows;
using SixLabors.ImageSharp.PixelFormats;

namespace SightKeeper.Avalonia.Setup;

Expand All @@ -11,6 +13,7 @@ public static void Setup(ContainerBuilder builder)
{
builder.RegisterType<WindowsGameIconProvider>().As<GameIconProvider>();
builder.RegisterType<WindowsFileExplorerGameExecutableDisplayer>().As<GameExecutableDisplayer>();
builder.RegisterType<DX11ScreenCapture>().As<ScreenCapture<Bgra32>>();
}
}
#endif

0 comments on commit 4a9071b

Please sign in to comment.