mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-08-30 07:25:05 +00:00
Some checks are pending
Canary release job / Create tag (push) Waiting to run
Canary release job / Release for linux-arm64 (push) Waiting to run
Canary release job / Release for linux-x64 (push) Waiting to run
Canary release job / Release for win-x64 (push) Waiting to run
Canary release job / Release MacOS universal (push) Waiting to run
Also convert the constructor of DlcSelectViewModel to expect a normal title id and not one already converted to the base ID.
23 lines
731 B
C#
23 lines
731 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using Ryujinx.Ava.Common.Models;
|
|
using Ryujinx.Ava.Utilities.AppLibrary;
|
|
using System.Linq;
|
|
|
|
namespace Ryujinx.Ava.UI.ViewModels
|
|
{
|
|
public partial class DlcSelectViewModel : BaseModel
|
|
{
|
|
[ObservableProperty] private DownloadableContentModel[] _dlcs;
|
|
#nullable enable
|
|
[ObservableProperty] private DownloadableContentModel? _selectedDlc;
|
|
#nullable disable
|
|
|
|
public DlcSelectViewModel(ulong titleId, ApplicationLibrary appLibrary)
|
|
{
|
|
_dlcs = appLibrary.FindDlcsFor(titleId)
|
|
.OrderBy(it => it.IsBundled ? 0 : 1)
|
|
.ThenBy(it => it.TitleId)
|
|
.ToArray();
|
|
}
|
|
}
|
|
}
|