Replace deprecated Modio library with alternative library

This commit is contained in:
Stone_Red
2024-11-15 19:55:12 +01:00
parent c6e858764f
commit e6be5c011b
4 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -39,7 +39,7 @@
<PackageReference Include="BusyIndicators" Version="2.1.2" />
<PackageReference Include="CuteUtils" Version="1.0.0" />
<PackageReference Include="MaterialDesignThemes" Version="5.1.0" />
<PackageReference Include="Modio.NET" Version="1.1.1" />
<PackageReference Include="Modio" Version="1.0.0" />
<PackageReference Include="NAudio" Version="2.2.1" />
<PackageReference Include="System.Management" Version="8.0.0" />
</ItemGroup>
@@ -1,9 +1,9 @@
using DesktopMagic.DataContexts;
using DesktopMagic.Helpers;
using Modio.NET;
using Modio.NET.Filters;
using Modio.NET.Models;
using Modio;
using Modio.Filters;
using Modio.Models;
using System;
using System.Collections.Generic;
@@ -104,7 +104,7 @@ public partial class PluginManager : Window
Filter filter = ModFilter.Popular.Desc().Limit(100);
IAsyncEnumerable<Mod> mods = client.Games[modIoGameId].Mods.Search(filter).ToEnumerableAsync();
IAsyncEnumerable<Mod> mods = client.Games[modIoGameId].Mods.Search(filter).ToEnumerable();
await foreach (Mod mod in mods)
{
if (pluginIds.Contains(mod.Id))
@@ -220,7 +220,7 @@ public partial class PluginManager : Window
Filter filter = ModFilter.Name.Like($"{searchString}").And(ModFilter.Popular.Desc()).Limit(100);
IAsyncEnumerable<Mod> mods = client.Games[modIoGameId].Mods.Search(filter).ToEnumerableAsync();
IAsyncEnumerable<Mod> mods = client.Games[modIoGameId].Mods.Search(filter).ToEnumerable();
await foreach (Mod mod in mods)
{
if (pluginManagerDataContext.InstalledPlugins.Any(p => p.Id == mod.Id))
+1 -1
View File
@@ -1,4 +1,4 @@
using Modio.NET.Models;
using Modio.Models;
using System;
using System.Text.Json.Serialization;
@@ -22,15 +22,15 @@
<DocumentationFile>$([System.IO.Path]::Combine($(MSBuildProjectDirectory), "DesktopMagicPluginAPI.xml"))</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Drawing.Common" Version="8.0.0" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Drawing.Common" Version="8.0.0" />
</ItemGroup>
</Project>