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.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Ryujinx/UI/Models/TitleUpdateModel.cs b/src/Ryujinx/UI/Models/TitleUpdateModel.cs
new file mode 100644
index 00000000..c270c9ed
--- /dev/null
+++ b/src/Ryujinx/UI/Models/TitleUpdateModel.cs
@@ -0,0 +1,19 @@
+using LibHac.Ns;
+using Ryujinx.Ava.Common.Locale;
+
+namespace Ryujinx.Ava.UI.Models
+{
+ public class TitleUpdateModel
+ {
+ public ApplicationControlProperty Control { get; }
+ public string Path { get; }
+
+ public string Label => LocaleManager.Instance.UpdateAndGetDynamicValue(LocaleKeys.TitleUpdateVersionLabel, Control.DisplayVersionString.ToString());
+
+ public TitleUpdateModel(ApplicationControlProperty control, string path)
+ {
+ Control = control;
+ Path = path;
+ }
+ }
+}