DownloadableContentModel.cs
1 using Ryujinx.Ava.Common.Locale; 2 using Ryujinx.Ava.UI.ViewModels; 3 using System.IO; 4 5 namespace Ryujinx.Ava.UI.Models 6 { 7 public class DownloadableContentModel : BaseModel 8 { 9 private bool _enabled; 10 11 public bool Enabled 12 { 13 get => _enabled; 14 set 15 { 16 _enabled = value; 17 18 OnPropertyChanged(); 19 } 20 } 21 22 public string TitleId { get; } 23 public string ContainerPath { get; } 24 public string FullPath { get; } 25 26 public string FileName => Path.GetFileName(ContainerPath); 27 28 public string Label => 29 Path.GetExtension(FileName)?.ToLower() == ".xci" ? $"{LocaleManager.Instance[LocaleKeys.TitleBundledDlcLabel]} {FileName}" : FileName; 30 31 public DownloadableContentModel(string titleId, string containerPath, string fullPath, bool enabled) 32 { 33 TitleId = titleId; 34 ContainerPath = containerPath; 35 FullPath = fullPath; 36 Enabled = enabled; 37 } 38 } 39 }