From 2afc75ac05d4a2830bda6bb98febebde75d971fd Mon Sep 17 00:00:00 2001 From: Lojemiru <33508026+Lojemiru@users.noreply.github.com> Date: Thu, 18 Mar 2021 00:28:29 -0500 Subject: [PATCH] Implemented Installable property Used for previously installed version archival in the new AM2RLauncher --- XML/ModProfileXML.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/XML/ModProfileXML.cs b/XML/ModProfileXML.cs index 68f571c..683d8ab 100644 --- a/XML/ModProfileXML.cs +++ b/XML/ModProfileXML.cs @@ -46,10 +46,14 @@ namespace AM2R_ModPacker public bool UsesYYC { get; set; } + [XmlAttribute("Installable")] + public bool Installable + { get; set; } + public ModProfileXML() { } - public ModProfileXML(string operatingSystem, int xmlVersion, string version, string name, string author, bool usesCustomMusic, string saveLocation, bool android, bool usesYYC) + public ModProfileXML(string operatingSystem, int xmlVersion, string version, string name, string author, bool usesCustomMusic, string saveLocation, bool android, bool usesYYC, bool installable = true) { OperatingSystem = operatingSystem; XMLVersion = xmlVersion; @@ -60,6 +64,7 @@ namespace AM2R_ModPacker SaveLocation = saveLocation; Android = android; UsesYYC = usesYYC; + Installable = installable; } } }