mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-13 13:37:08 +00:00
* Handle updates containing non numeric characters Smh Dont be stupid * Use Berry’s method * Thanks gdk * Remove using
21 lines
653 B
C#
21 lines
653 B
C#
using Ryujinx.Ava.Common.Locale;
|
|
|
|
namespace Ryujinx.Ava.UI.Models
|
|
{
|
|
public class TitleUpdateModel
|
|
{
|
|
public uint Version { get; }
|
|
public string Path { get; }
|
|
public string Label { get; }
|
|
|
|
public TitleUpdateModel(uint version, string displayVersion, string path)
|
|
{
|
|
Version = version;
|
|
Label = LocaleManager.Instance.UpdateAndGetDynamicValue(
|
|
System.IO.Path.GetExtension(path)?.ToLower() == ".xci" ? LocaleKeys.TitleBundledUpdateVersionLabel : LocaleKeys.TitleUpdateVersionLabel,
|
|
displayVersion
|
|
);
|
|
Path = path;
|
|
}
|
|
}
|
|
}
|