mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-03-13 02:39:39 -05:00

* Handle updates containing non numeric characters Smh Dont be stupid * Use Berry’s method * Thanks gdk * Remove using
22 lines
653 B
C#
22 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;
|
|
}
|
|
}
|
|
}
|