Fix game locator on non Windows systems

This commit is contained in:
Timothy Baldridge
2021-10-16 14:51:25 -06:00
parent 42c0d920ef
commit 3babd24c24

View File

@ -28,17 +28,17 @@ namespace Wabbajack.Downloaders.GameFile
if (OperatingSystem.IsWindows()) if (OperatingSystem.IsWindows())
{ {
_origin = new OriginHandler(true, false, logger); _origin = new OriginHandler(true, false, logger);
_gog = new GOGHandler(logger);
_egs = new EGSHandler(logger);
} }
_gog = new GOGHandler(logger);
_egs = new EGSHandler(logger);
_locationCache = new Dictionary<Game, AbsolutePath>(); _locationCache = new Dictionary<Game, AbsolutePath>();
_steam.FindAllGames(); _steam.FindAllGames();
_origin?.FindAllGames(); _origin?.FindAllGames();
_gog.FindAllGames(); _gog?.FindAllGames();
_egs.FindAllGames(); _egs?.FindAllGames();
} }
public AbsolutePath GameLocation(Game game) public AbsolutePath GameLocation(Game game)