mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-09-27 22:07:56 +02:00
UI: Move DLC RomFS dumping under normal RomFS dumping.
Also removed it from DLC manager.
This commit is contained in:
committed by
KeatonTheBot
parent
c3bfce3378
commit
2471bb8ede
@@ -0,0 +1,45 @@
|
||||
using Ryujinx.UI.App.Common;
|
||||
using Ryujinx.UI.Common.Models;
|
||||
using System.Linq;
|
||||
|
||||
namespace Ryujinx.Ava.UI.ViewModels
|
||||
{
|
||||
public partial class DlcSelectViewModel : BaseModel
|
||||
{
|
||||
private DownloadableContentModel[] _dlcs;
|
||||
private DownloadableContentModel _selectedDlc;
|
||||
|
||||
public DownloadableContentModel[] Dlcs
|
||||
{
|
||||
get => _dlcs;
|
||||
set
|
||||
{
|
||||
_dlcs = value;
|
||||
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
#nullable enable
|
||||
public DownloadableContentModel? SelectedDlc
|
||||
{
|
||||
get => _selectedDlc;
|
||||
set
|
||||
{
|
||||
_selectedDlc = value;
|
||||
|
||||
OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
#nullable disable
|
||||
|
||||
public DlcSelectViewModel(ulong titleId, ApplicationLibrary appLibrary)
|
||||
{
|
||||
_dlcs = appLibrary.DownloadableContents.Items
|
||||
.Where(x => x.Dlc.TitleIdBase == titleId)
|
||||
.Select(x => x.Dlc)
|
||||
.OrderBy(it => it.IsBundled ? 0 : 1)
|
||||
.ThenBy(it => it.TitleId)
|
||||
.ToArray();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user