aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Ava/UI/Models/ModModel.cs
diff options
context:
space:
mode:
authorIsaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com>2024-01-26 01:02:28 +0000
committerGitHub <noreply@github.com>2024-01-26 02:02:28 +0100
commit35fb409e85ef07b8e1c3a582cdc6615e6da71429 (patch)
tree1696d9498a73fe94d228a6bbf3ed06ff92f88a0c /src/Ryujinx.Ava/UI/Models/ModModel.cs
parentd7ec4308b45d4ecb8d77cdc8d98ee618944292ed (diff)
Ava UI: Mod Manager (#4390)1.1.1136
* Let’s start again * Read folders and such * Remove Open Mod Folder menu items * Fix folder opening, Selecting/deselecting * She works * Fix GTK * AddMod * Delete * Fix duplicate entries * Fix file check * Avalonia 11 * Style fixes * Final style fixes * Might be too general * Remove unnecessary using * Enable new mods by default * More cleanup * Fix saving metadata * Dont deseralise ModMetadata several times * Avalonia I hate you * Confirmation dialgoues * Allow selecting multiple folders * Add back secondary folder * Search both paths * Fix formatting * Apply suggestions from code review Co-authored-by: Ac_K <Acoustik666@gmail.com> * Rename Title to Application * Generic locale key * Apply suggestions from code review Co-authored-by: Ac_K <Acoustik666@gmail.com> * Locale Updates * GDK Feedback * Fix --------- Co-authored-by: Ac_K <Acoustik666@gmail.com>
Diffstat (limited to 'src/Ryujinx.Ava/UI/Models/ModModel.cs')
-rw-r--r--src/Ryujinx.Ava/UI/Models/ModModel.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/Ryujinx.Ava/UI/Models/ModModel.cs b/src/Ryujinx.Ava/UI/Models/ModModel.cs
new file mode 100644
index 00000000..f68e1593
--- /dev/null
+++ b/src/Ryujinx.Ava/UI/Models/ModModel.cs
@@ -0,0 +1,30 @@
+using Ryujinx.Ava.UI.ViewModels;
+using System.IO;
+
+namespace Ryujinx.Ava.UI.Models
+{
+ public class ModModel : BaseModel
+ {
+ private bool _enabled;
+
+ public bool Enabled
+ {
+ get => _enabled;
+ set
+ {
+ _enabled = value;
+ OnPropertyChanged();
+ }
+ }
+
+ public string Path { get; }
+ public string Name { get; }
+
+ public ModModel(string path, string name, bool enabled)
+ {
+ Path = path;
+ Name = name;
+ Enabled = enabled;
+ }
+ }
+}