From c25bf59b5875961588efe0da20a83f4c290871c8 Mon Sep 17 00:00:00 2001 From: Ashley Date: Thu, 6 Feb 2020 15:00:31 -0500 Subject: [PATCH] I am smart I swear - Screwed up the Object names for the JSON --- Ryujinx/Ui/AboutWindow.cs | 2 -- Ryujinx/Updater/UpdateParser.cs | 7 ++++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Ryujinx/Ui/AboutWindow.cs b/Ryujinx/Ui/AboutWindow.cs index 57939c718a..906d28fd58 100644 --- a/Ryujinx/Ui/AboutWindow.cs +++ b/Ryujinx/Ui/AboutWindow.cs @@ -43,8 +43,6 @@ namespace Ryujinx.Ui Directory.CreateDirectory(localAppPath); } - string versionJsonFile = System.IO.Path.Combine(localAppPath, "Version.json"); - try { _versionText.Text = "Version " + File.ReadAllText(versionJsonFile); diff --git a/Ryujinx/Updater/UpdateParser.cs b/Ryujinx/Updater/UpdateParser.cs index d0fc3f6334..d1bd41bbc4 100644 --- a/Ryujinx/Updater/UpdateParser.cs +++ b/Ryujinx/Updater/UpdateParser.cs @@ -71,9 +71,10 @@ namespace Ryujinx try { var VersionJSON = JObject.Parse(Path.Combine(Environment.CurrentDirectory, "Version.json")); - (string)currentVersionJson = (string)_VersionJSON["BuildVer"]; - (string)currentVersionPr = (string)_VersionJSON["BuildPR"]; - (string)currentVersionBranch = (string)_VersionJSON["BuildBranch"]; + var _JRoot = VersionJSON[0]; + (string)currentVersionJson = (string)_JRoot["BuildVer"]; + (string)currentVersionPr = (string)_JRoot["BuildPR"]; + (string)currentVersionBranch = (string)_JRoot["BuildBranch"]; Version newVersion = Version.Parse(_buildVer); Version currentVersion = Version.Parse(currentVersionJson);