UI: Move DLC RomFS dumping under normal RomFS dumping.

Also removed it from DLC manager.
This commit is contained in:
Evan Husted
2025-10-09 17:18:50 -05:00
committed by KeatonTheBot
parent c3bfce3378
commit 2471bb8ede
13 changed files with 202 additions and 39 deletions
@@ -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();
}
}
}