Skip to content

Commit

Permalink
Merge branch 'main' into tgdbnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutzzz committed Feb 8, 2024
2 parents 1005755 + 3e2f758 commit 2669bfc
Show file tree
Hide file tree
Showing 43 changed files with 208 additions and 131 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
env:
OS: ${{ matrix.os }}

Expand Down Expand Up @@ -57,6 +57,10 @@ jobs:
if: runner.os == 'Windows'
run: dotnet publish other/GameFinder.Example/GameFinder.Example.csproj -o ${{ github.workspace }}/bin/${{ runner.os }} -p:PublishReadyToRun=true -p:PublishSingleFile=true -p:PublishTrimmed=false

- name: Publish (macOS)
if: runner.os == 'macOS'
run: dotnet publish other/GameFinder.Example/GameFinder.Example.csproj -o ${{ github.workspace }}/bin/${{ runner.os }} -p:PublishReadyToRun=true -p:PublishSingleFile=true -p:PublishTrimmed=false

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: dotnet nuget push **/*.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

- name: Push to GitHub Packages
run: dotnet nuget push **/*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/erri120/index.json
run: dotnet nuget push **/*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/Nutty/index.json

- name: Create Release
id: create_release
Expand Down
22 changes: 17 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com) and this p

# Changelog

## Unreleased
## [Unreleased](https://github.com/Nutzzz/GameCollector/compare/v4.2.0.2...HEAD)

**TODO**:

- Add unit tests
- Fix/add unit tests
- Update documentation

**WIP**:

- Add DataHandlers to download metadata and images from online sources

## [Released](https://github.com/Nutzzz/GameCollector/releases)

## [4.2.0.2](https://github.com/erri120/GameFinder/compare/v2.5.0...Nutzzz:GameCollector:v4.2.0.2) - 2024-02-08

**Changes**:

- Added a generic `record GameData` to collect data for all handlers:
Expand Down Expand Up @@ -40,8 +48,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com) and this p
- `Dictionary<string, List<string>>? Metadata`
- Metadata Dictionary may include (depending on available information) "ReleaseDate", "Description", "Developers", "Publishers", "Genres", "ImageUrl", etc.
- The `IGame` implementations from GameFinder are now subclasses of `GameData`. This should hopefully make merging with upstream easier.
- Added experimental metadata provider:
- TheGamesDb.net
- Added emulators:
- Dolphin, MAME
- Added additional store launchers:
Expand All @@ -53,10 +59,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com) and this p

# Upstream Changelog

## [Unreleased](https://github.com/erri120/GameFinder/compare/v4.1.0...HEAD)
## [Unreleased](https://github.com/erri120/GameFinder/compare/v4.2.0...HEAD)

- Upgrade deps

## [Released](https://github.com/erri120/GameFinder/releases)

## [4.2.0](https://github.com/erri120/GameFinder/compare/v4.1.0...v4.2.0) - 2024-01-28

- Added support for OSX version of Steam ([#122](https://github.com/erri120/GameFinder/pull/122))

## [4.1.0](https://github.com/erri120/GameFinder/compare/v4.0.0...v4.1.0) - 2024-01-08

- Upgraded to .NET 8.
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<VersionPrefix>3.2.2</VersionPrefix>
<VersionPrefix>4.2.0</VersionPrefix>
<Authors>Nutzzz, erri120</Authors>
<PackageProjectUrl>https://github.com/Nutzzz/GameCollector</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
Expand Down
11 changes: 5 additions & 6 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<PackageVersion Include="CommandLineParser" Version="2.9.1" />
<PackageVersion Include="FluentResults" Version="3.15.2" />
<PackageVersion Include="Microsoft.Win32.Registry" Version="5.0.0" />
<PackageVersion Include="NexusMods.Paths" Version="0.4.0" />
<PackageVersion Include="NexusMods.Paths" Version="0.5.0" />
<PackageVersion Include="NLog" Version="5.2.8" />
<PackageVersion Include="NLog.Extensions.Logging" Version="5.3.8" />
<PackageVersion Include="OneOf" Version="3.0.263" />
Expand All @@ -24,12 +24,11 @@
<PackageVersion Include="System.Data.SQLite.Core" Version="1.0.118" />
<PackageVersion Include="System.ServiceProcess.ServiceController" Version="7.0.1" />
<PackageVersion Include="System.Text.Json" Version="7.0.0" />
<PackageVersion Include="TheGamesDbApiWrapper" Version="1.3.1" />
<PackageVersion Include="YamlDotNet" Version="13.1.1" />
</ItemGroup>

<ItemGroup>
<PackageVersion Include="Meziantou.Analyzer" Version="2.0.135"/>
<PackageVersion Include="Meziantou.Analyzer" Version="2.0.139"/>
<PackageVersion Include="JetBrains.Annotations" Version="2023.3.0"/>
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0"/>
</ItemGroup>
Expand All @@ -38,19 +37,19 @@
<PackageVersion Include="AutoFixture" Version="4.18.1" />
<PackageVersion Include="AutoFixture.Xunit2" Version="4.18.1" />
<PackageVersion Include="FluentAssertions" Version="6.12.0" />
<PackageVersion Include="FluentAssertions.Analyzers" Version="0.29.0">
<PackageVersion Include="FluentAssertions.Analyzers" Version="0.30.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
<PackageVersion Include="FluentResults.Extensions.FluentAssertions" Version="2.1.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageVersion Include="NexusMods.Paths.TestingHelpers" Version="0.4.0" />
<PackageVersion Include="NexusMods.Paths.TestingHelpers" Version="0.5.0" />
<PackageVersion Include="NSubstitute" Version="5.1.0" />
<PackageVersion Include="NSubstitute.Analyzers.CSharp" Version="1.0.16">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageVersion>
<PackageVersion Include="xunit" Version="2.6.5" />
<PackageVersion Include="xunit" Version="2.6.6" />
<PackageVersion Include="Xunit.SkippableFact" Version="1.4.13" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.6">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
7 changes: 0 additions & 7 deletions GameCollector.sln
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GameCollector.EmuHandlers.M
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DataHandlers", "DataHandlers", "{82816E34-196A-4304-8A28-BF22FA937DF0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GameCollector.DataHandlers.TheGamesDb", "src\GameCollector.DataHandlers.TheGamesDb\GameCollector.DataHandlers.TheGamesDb.csproj", "{2C3F6179-889E-435B-823A-D7E6B5A1CBE9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -320,10 +318,6 @@ Global
{EA0A79A3-639B-4983-A28F-1D07EC1113C7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EA0A79A3-639B-4983-A28F-1D07EC1113C7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EA0A79A3-639B-4983-A28F-1D07EC1113C7}.Release|Any CPU.Build.0 = Release|Any CPU
{2C3F6179-889E-435B-823A-D7E6B5A1CBE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2C3F6179-889E-435B-823A-D7E6B5A1CBE9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2C3F6179-889E-435B-823A-D7E6B5A1CBE9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2C3F6179-889E-435B-823A-D7E6B5A1CBE9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -378,7 +372,6 @@ Global
{6173D1F4-48C2-4B14-B907-C7A746CF081D} = {1F5F230D-146C-4794-A2E6-F9C13279D721}
{EA0A79A3-639B-4983-A28F-1D07EC1113C7} = {1F5F230D-146C-4794-A2E6-F9C13279D721}
{82816E34-196A-4304-8A28-BF22FA937DF0} = {EFB4E7DB-DE24-4BDE-B660-DAF1394ECC21}
{2C3F6179-889E-435B-823A-D7E6B5A1CBE9} = {82816E34-196A-4304-8A28-BF22FA937DF0}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {44B3FB99-03EC-4CEA-B043-4B5D8C9DA9FF}
Expand Down
60 changes: 27 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
# GameCollector
#### a fork of [GameFinder](https://github.com/erri120/GameFinder)

[![CI](https://github.com/Nutzzz/GameCollector/actions/workflows/ci.yml/badge.svg)](https://github.com/Nutzzz/GameCollector/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/Nutzzz/GameCollector/branch/master/graph/badge.svg?token=10PVRFWH39)](https://codecov.io/gh/Nutzzz/GameCollector)
[![CI](https://github.com/Nutzzz/GameCollector/actions/workflows/ci.yml/badge.svg)](https://github.com/Nutzzz/GameCollector/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/Nutzzz/GameCollector/branch/master/graph/badge.svg?token=ARU010EHZ4)](https://codecov.io/gh/Nutzzz/GameCollector)

.NET library for finding games. GameCollector expands on upstream GameFinder (which is primarily designed to support modding tools), by adding additional supported store launchers, emulators, and data sources, and includes additional information about each game (sufficient for a multi-store game launcher such as [GLC](https://github.com/Solaire/GLC)). The following launchers and emulators are supported:

- Amazon Games
- Arc
- Amazon Games [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.Amazon)](https://www.nuget.org/packages/GameCollector.StoreHandlers.Amazon)
- Arc [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.Arc)](https://www.nuget.org/packages/GameCollector.StoreHandlers.Arc)
- [Bethesda.net](#bethesdanet) [![Nuget](https://img.shields.io/nuget/v/GameFinder.StoreHandlers.BethNet?color=red&label=deprecated,upstream)](https://www.nuget.org/packages/GameFinder.StoreHandlers.BethNet)
- Big Fish Game Manager
- Blizzard Battle.net
- Dolphin Emulator
- [EA app](#ea-app) [![Nuget](https://img.shields.io/nuget/v/GameFinder.StoreHandlers.EADesktop?color=red&label=upstream)](https://www.nuget.org/packages/GameFinder.StoreHandlers.EADesktop)
- [Epic Games Store](#epic-games-store) [![Nuget](https://img.shields.io/nuget/v/GameFinder.StoreHandlers.EGS?color=red&label=upstream)](https://www.nuget.org/packages/GameFinder.StoreHandlers.EGS)
- Game Jolt Client
- [GOG Galaxy](#gog-galaxy) [![Nuget](https://img.shields.io/nuget/v/GameFinder.StoreHandlers.GOG?color=red&label=upstream)](https://www.nuget.org/packages/GameFinder.StoreHandlers.GOG)
- Humble App
- Indiegala IGClient
- itch
- Legacy Games Launcher
- Multiple Arcade Machine Emulator (MAME)
- Oculus
- [Origin](#origin) [![Nuget](https://img.shields.io/nuget/v/GameFinder.StoreHandlers.Origin?color=red&label=upstream)](https://www.nuget.org/packages/GameFinder.StoreHandlers.Origin)
- Paradox Launcher
- Plarium Play
- Riot Client
- Robot Cache Client
- Rockstar Games Launcher
- [Steam](#steam) [![Nuget](https://img.shields.io/nuget/v/GameFinder.StoreHandlers.Steam?color=red&label=upstream)](https://www.nuget.org/packages/GameFinder.StoreHandlers.Steam)
- Ubisoft Connect
- Wargaming.net Game Center
- [Xbox Game Pass](#xbox-game-pass) [![Nuget](https://img.shields.io/nuget/v/GameFinder.StoreHandlers.Xbox?color=red&label=upstream)](https://www.nuget.org/packages/GameFinder.StoreHandlers.Xbox)
- Big Fish Game Manager [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.BigFish)](https://www.nuget.org/packages/GameCollector.StoreHandlers.BigFish)
- Blizzard Battle.net [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.BattleNet)](https://www.nuget.org/packages/GameCollector.StoreHandlers.BattleNet)
- Dolphin Emulator [![Nuget](https://img.shields.io/nuget/v/GameCollector.EmuHandlers.Dolphin)](https://www.nuget.org/packages/GameCollector.EmuHandlers.Dolphin)
- [EA app](#ea-app) [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.EADesktop)](https://www.nuget.org/packages/GameCollector.StoreHandlers.EADesktop) [![Nuget](https://img.shields.io/nuget/v/GameFinder.StoreHandlers.EADesktop?color=red&label=upstream)](https://www.nuget.org/packages/GameFinder.StoreHandlers.EADesktop)
- [Epic Games Store](#epic-games-store) [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.EGS)](https://www.nuget.org/packages/GameCollector.StoreHandlers.EGS) [![Nuget](https://img.shields.io/nuget/v/GameFinder.StoreHandlers.EGS?color=red&label=upstream)](https://www.nuget.org/packages/GameFinder.StoreHandlers.EGS)
- Game Jolt Client [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.GameJolt)](https://www.nuget.org/packages/GameCollector.StoreHandlers.GameJolt)
- [GOG Galaxy](#gog-galaxy) [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.GOG)](https://www.nuget.org/packages/GameCollector.StoreHandlers.GOG) [![Nuget](https://img.shields.io/nuget/v/GameFinder.StoreHandlers.GOG?color=red&label=upstream)](https://www.nuget.org/packages/GameFinder.StoreHandlers.GOG)
- Humble App [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.Humble)](https://www.nuget.org/packages/GameCollector.StoreHandlers.Humble)
- Indiegala IGClient [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.IGClient)](https://www.nuget.org/packages/GameCollector.StoreHandlers.IGClient)
- itch [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.Itch)](https://www.nuget.org/packages/GameCollector.StoreHandlers.Itch)
- Legacy Games Launcher [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.Legacy)](https://www.nuget.org/packages/GameCollector.StoreHandlers.Legacy)
- Multiple Arcade Machine Emulator (MAME) [![Nuget](https://img.shields.io/nuget/v/GameCollector.EmuHandlers.MAME)](https://www.nuget.org/packages/GameCollector.EmuHandlers.MAME)
- Oculus [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.Oculus)](https://www.nuget.org/packages/GameCollector.StoreHandlers.Oculus)
- [Origin](#origin) [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.Origin)](https://www.nuget.org/packages/GameCollector.StoreHandlers.Origin) [![Nuget](https://img.shields.io/nuget/v/GameFinder.StoreHandlers.Origin?color=red&label=upstream)](https://www.nuget.org/packages/GameFinder.StoreHandlers.Origin)
- Paradox Launcher [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.Paradox)](https://www.nuget.org/packages/GameCollector.StoreHandlers.Paradox)
- Plarium Play [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.Plarium)](https://www.nuget.org/packages/GameCollector.StoreHandlers.Plarium)
- Riot Client [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.Riot)](https://www.nuget.org/packages/GameCollector.StoreHandlers.Riot)
- Robot Cache Client [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.RobotCache)](https://www.nuget.org/packages/GameCollector.StoreHandlers.RobotCache)
- Rockstar Games Launcher [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.Rockstar)](https://www.nuget.org/packages/GameCollector.StoreHandlers.Rockstar)
- [Steam](#steam) [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.Steam)](https://www.nuget.org/packages/GameCollector.StoreHandlers.Steam) [![Nuget](https://img.shields.io/nuget/v/GameFinder.StoreHandlers.Steam?color=red&label=upstream)](https://www.nuget.org/packages/GameFinder.StoreHandlers.Steam)
- Ubisoft Connect [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.Ubisoft)](https://www.nuget.org/packages/GameCollector.StoreHandlers.Ubisoft)
- Wargaming.net Game Center [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.WargamingNet)](https://www.nuget.org/packages/GameCollector.StoreHandlers.WargamingNet)
- [Xbox Game Pass](#xbox-game-pass) [![Nuget](https://img.shields.io/nuget/v/GameCollector.StoreHandlers.Xbox)](https://www.nuget.org/packages/GameCollector.StoreHandlers.Xbox) [![Nuget](https://img.shields.io/nuget/v/GameFinder.StoreHandlers.Xbox?color=red&label=upstream)](https://www.nuget.org/packages/GameFinder.StoreHandlers.Xbox)

If you are interested in understanding _how_ GameCollector/GameFinder finds these games, check [the upstream wiki](https://github.com/erri120/GameFinder/wiki) for more information.

Additionally, the following Linux tools are supported:

- [Wine](#wine) [![Nuget](https://img.shields.io/nuget/v/GameFinder.Wine?color=red&label=upstream)](https://www.nuget.org/packages/GameFinder.Wine)
- [Wine](#wine) [![Nuget](https://img.shields.io/nuget/v/GameCollector.Wine)](https://www.nuget.org/packages/GameCollector.Wine) [![Nuget](https://img.shields.io/nuget/v/GameFinder.Wine?color=red&label=upstream)](https://www.nuget.org/packages/GameFinder.Wine)

## Example

Expand Down Expand Up @@ -129,12 +129,6 @@ This is a new category of handler for GameCollector. They are Windows-only for n
- Dolphin
- MAME

## Supported Metadata Providers

This is a new category of handler for GameCollector which is designed to supplement data for previously collected games.

- TheGamesDb.net

## New Supported Launchers

The following handlers have been added for GameCollector. They are all Windows-only for now:
Expand Down
4 changes: 0 additions & 4 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,3 @@ component_management:
name: MAME
paths:
- "src/GameCollector.EmuHandlers.MAME/**"
- component_id: data_handler_thegamesdb
name: TheGamesDb.net
paths:
- "src/GameCollector.DataHandlers.TheGamesDb/**"
2 changes: 1 addition & 1 deletion other/GameFinder.Example/GameFinder.Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\GameCollector.DataHandlers.TheGamesDb\GameCollector.DataHandlers.TheGamesDb.csproj" />
<!--<ProjectReference Include="..\..\src\GameCollector.DataHandlers.TheGamesDb\GameCollector.DataHandlers.TheGamesDb.csproj" />-->
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions other/GameFinder.Example/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ public class Options
[Option("steam", HelpText = "Search for Steam games", Hidden = true, Group = "Handlers")]
public bool Steam { get; set; } = false;

/*
[Option("tgdb", HelpText = "Search for TheGamesDb.net games", Group = "Handlers")]
public bool TheGamesDB { get; set; } = false;
*/

// alias for "ubisoft"
[Option("uplay", HelpText = "Search for Ubisoft Connect games", Hidden = true)]
Expand All @@ -116,8 +118,10 @@ public class Options
[Option('s', "steamapi", HelpText = "Specify Steam API key from <https://steamcommunity.com/dev/apikey> (optional)", MetaValue = "KEY")]
public string? SteamAPI { get; set; }

/*
[Option('t', "tgdbapi", HelpText = "Specify TheGamesDb.net API key from <https://api.thegamesdb.net/key.php> (optional)", MetaValue = "KEY")]
public string? TheGamesDBAPI { get; set; }
*/

[Option('w', "wine", HelpText = "Search for Wine prefixes")]
public bool Wine { get; set; } = false;
Expand Down
14 changes: 14 additions & 0 deletions other/GameFinder.Example/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@ private async static void Run(Options options, ILogger logger)
}, cancelToken));
}

if (OperatingSystem.IsMacOS())
{
if (options.Steam)
RunSteamHandler(realFileSystem, null, options.SteamAPI);
}

if (options.TheGamesDB) tasks.Add(Task.Run(() => RunTheGamesDbHandler(realFileSystem, options.TheGamesDBAPI), cancelToken));

Task.WaitAll(tasks.ToArray(), cancelToken);
Expand All @@ -256,6 +262,14 @@ private async static void Run(Options options, ILogger logger)
await Task.WhenAll(tasks).ConfigureAwait(false);
*/

/*
Parallel.ForEach(tasks, task =>
{
task.Start();
});
await Task.WhenAll(tasks).ConfigureAwait(false);
*/

logger.LogInformation($"{nameof(Program)} complete");
}

Expand Down
Loading

0 comments on commit 2669bfc

Please sign in to comment.