mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 08:56:15 +02:00
Replace deprecated Modio library with alternative library
This commit is contained in:
@@ -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,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>
|
||||
|
||||
Reference in New Issue
Block a user