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);