From d29d093afa77f427f1b2e1a25498d6bdf780d887 Mon Sep 17 00:00:00 2001 From: DeadlyKitten <9684760+DeadlyKitten@users.noreply.github.com> Date: Sat, 2 Oct 2021 23:14:03 -0700 Subject: [PATCH] fix oopsie. --- MonkeModManager/FormMain.cs | 4 ++-- MonkeModManager/Internals/ReleaseInfo.cs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/MonkeModManager/FormMain.cs b/MonkeModManager/FormMain.cs index 0bb351c..e192773 100644 --- a/MonkeModManager/FormMain.cs +++ b/MonkeModManager/FormMain.cs @@ -19,7 +19,7 @@ public partial class FormMain : Form { private const string BaseEndpoint = "https://api.github.com/repos/"; - private const Int16 CurrentVersion = 5; + private const Int16 CurrentVersion = 6; private List releases; Dictionary groups = new Dictionary(); private string InstallDirectory = @""; @@ -79,7 +79,7 @@ private void LoadReleases() for (int i = 0; i < allMods.Count; i++) { JSONNode current = allMods[i]; - ReleaseInfo release = new ReleaseInfo(current["name"], current["author"], current["version"], current["group"], current["download_url"], current["install_location"], current["dependencies"].AsArray); + ReleaseInfo release = new ReleaseInfo(current["name"], current["author"], current["version"], current["group"], current["download_url"], current["install_location"], current["git_path"], current["dependencies"].AsArray); //UpdateReleaseInfo(ref release); releases.Add(release); } diff --git a/MonkeModManager/Internals/ReleaseInfo.cs b/MonkeModManager/Internals/ReleaseInfo.cs index 034cb10..1eb5b45 100644 --- a/MonkeModManager/Internals/ReleaseInfo.cs +++ b/MonkeModManager/Internals/ReleaseInfo.cs @@ -20,13 +20,14 @@ public class ReleaseInfo public bool Install = true; public List Dependencies = new List(); public List Dependents = new List(); - public ReleaseInfo(string _name, string _author, string _version, string _group, string _link, string _installLocation, JSONArray dependencies) + public ReleaseInfo(string _name, string _author, string _version, string _group, string _link, string _installLocation, string _gitPath, JSONArray dependencies) { Name = _name; Author = _author; Version = _version; Group = _group; Link = _link; + GitPath = _gitPath; InstallLocation = _installLocation; Group = _group;