mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-23 15:24:53 +01:00
eafcc314a9
* Start refactor * Move around functions * It builds * Menu opens * Buttons * Fix overlapping text * SaveAndClose and Close buttons * Remove button * Layout * It’s a little funky but it works * Enable all/disable all buttons * Fix UpdateCount desyncs * Search bar * Search by title id * Fix fuck ups * Fix selection mode * Update Ryujinx.Ava/UI/ViewModels/DownloadableContentManagerViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/ViewModels/DownloadableContentManagerViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update Ryujinx.Ava/UI/ViewModels/DownloadableContentManagerViewModel.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Fix search bar * Log corrupted DLC json * Fix LibHac changes --------- Co-authored-by: Ac_K <Acoustik666@gmail.com>
35 lines
869 B
C#
35 lines
869 B
C#
using Ryujinx.Ava.UI.ViewModels;
|
|
using System.IO;
|
|
|
|
namespace Ryujinx.Ava.UI.Models
|
|
{
|
|
public class DownloadableContentModel : BaseModel
|
|
{
|
|
private bool _enabled;
|
|
|
|
public bool Enabled
|
|
{
|
|
get => _enabled;
|
|
set
|
|
{
|
|
_enabled = value;
|
|
|
|
OnPropertyChanged();
|
|
}
|
|
}
|
|
|
|
public string TitleId { get; }
|
|
public string ContainerPath { get; }
|
|
public string FullPath { get; }
|
|
|
|
public string FileName => Path.GetFileName(ContainerPath);
|
|
|
|
public DownloadableContentModel(string titleId, string containerPath, string fullPath, bool enabled)
|
|
{
|
|
TitleId = titleId;
|
|
ContainerPath = containerPath;
|
|
FullPath = fullPath;
|
|
Enabled = enabled;
|
|
}
|
|
}
|
|
} |