TitleUpdateModel.cs
1 using Ryujinx.Ava.Common.Locale; 2 3 namespace Ryujinx.Ava.UI.Models 4 { 5 public class TitleUpdateModel 6 { 7 public uint Version { get; } 8 public string Path { get; } 9 public string Label { get; } 10 11 public TitleUpdateModel(uint version, string displayVersion, string path) 12 { 13 Version = version; 14 Label = LocaleManager.Instance.UpdateAndGetDynamicValue( 15 System.IO.Path.GetExtension(path)?.ToLower() == ".xci" ? LocaleKeys.TitleBundledUpdateVersionLabel : LocaleKeys.TitleUpdateVersionLabel, 16 displayVersion 17 ); 18 Path = path; 19 } 20 } 21 }