mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix CI issue
This commit is contained in:
parent
f6830d3880
commit
18f2de1ed3
@ -34,10 +34,11 @@ namespace Wabbajack.Common.StoreHandlers
|
||||
|
||||
public Dictionary<Game, AStoreGame> Games = new();
|
||||
|
||||
private void FindGames<THandler, TGame>(THandler handler)
|
||||
private void FindGames<THandler, TGame>(Func<THandler> getHandler)
|
||||
where THandler : AStoreHandler<TGame>
|
||||
where TGame : AStoreGame
|
||||
{
|
||||
var handler = getHandler();
|
||||
try
|
||||
{
|
||||
handler.FindAllGames();
|
||||
@ -57,10 +58,10 @@ namespace Wabbajack.Common.StoreHandlers
|
||||
{
|
||||
_storeGames = new List<AStoreGame>();
|
||||
|
||||
FindGames<SteamHandler, SteamGame>(SteamHandler);
|
||||
FindGames<GOGHandler, GOGGame>(GOGHandler);
|
||||
FindGames<BethNetHandler, BethNetGame>(BethNetHandler);
|
||||
FindGames<EGSHandler, EGSGame>(EpicGameStoreHandler);
|
||||
FindGames<SteamHandler, SteamGame>(() => SteamHandler);
|
||||
FindGames<GOGHandler, GOGGame>(() => GOGHandler);
|
||||
FindGames<BethNetHandler, BethNetGame>(() => BethNetHandler);
|
||||
FindGames<EGSHandler, EGSGame>(() => EpicGameStoreHandler);
|
||||
|
||||
if (OriginHandler.Init())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user