aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx/UI/Models/TitleUpdateModel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx/UI/Models/TitleUpdateModel.cs')
-rw-r--r--src/Ryujinx/UI/Models/TitleUpdateModel.cs17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/Ryujinx/UI/Models/TitleUpdateModel.cs b/src/Ryujinx/UI/Models/TitleUpdateModel.cs
index cde37bf9..46f6f46d 100644
--- a/src/Ryujinx/UI/Models/TitleUpdateModel.cs
+++ b/src/Ryujinx/UI/Models/TitleUpdateModel.cs
@@ -1,21 +1,20 @@
-using LibHac.Ns;
using Ryujinx.Ava.Common.Locale;
namespace Ryujinx.Ava.UI.Models
{
public class TitleUpdateModel
{
- public ApplicationControlProperty Control { get; }
+ public uint Version { get; }
public string Path { get; }
+ public string Label { get; }
- public string Label => LocaleManager.Instance.UpdateAndGetDynamicValue(
- System.IO.Path.GetExtension(Path)?.ToLower() == ".xci" ? LocaleKeys.TitleBundledUpdateVersionLabel : LocaleKeys.TitleUpdateVersionLabel,
- Control.DisplayVersionString.ToString()
- );
-
- public TitleUpdateModel(ApplicationControlProperty control, string path)
+ public TitleUpdateModel(uint version, string displayVersion, string path)
{
- Control = control;
+ Version = version;
+ Label = LocaleManager.Instance.UpdateAndGetDynamicValue(
+ System.IO.Path.GetExtension(path)?.ToLower() == ".xci" ? LocaleKeys.TitleBundledUpdateVersionLabel : LocaleKeys.TitleUpdateVersionLabel,
+ displayVersion
+ );
Path = path;
}
}