From ba546799eadb5fe2dd442cfa56d4705ec2d2708c Mon Sep 17 00:00:00 2001 From: MelonSpeedruns Date: Thu, 6 Feb 2020 15:58:29 -0500 Subject: [PATCH] "Pwease push code and call me stoopid" --- Ryujinx/Ui/AboutWindow.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Ryujinx/Ui/AboutWindow.cs b/Ryujinx/Ui/AboutWindow.cs index d7b9d7db9a..bde1593d69 100644 --- a/Ryujinx/Ui/AboutWindow.cs +++ b/Ryujinx/Ui/AboutWindow.cs @@ -49,13 +49,14 @@ namespace Ryujinx.Ui string currentVersionJson; string currentVersionBranch; string currentVersionPr; - var VersionJSON = JObject.Parse(System.IO.Path.Combine(Environment.CurrentDirectory, "Version.json")); - var _JRoot = VersionJSON[0]; - currentVersionJson = (string)_JRoot["BuildVer"]; - currentVersionPr = (string)_JRoot["BuildPR"]; - currentVersionBranch = (string)_JRoot["BuildBranch"]; - _versionText.Text = "Version " + currentVersionJson + " - Branch " + currentVersionBranch + " - PR ID " + currentVersionPr; + JObject VersionJSON = JObject.Parse(File.ReadAllText(System.IO.Path.Combine(Environment.CurrentDirectory, "Version.json"))); + + currentVersionJson = (string)VersionJSON["BuildVer"]; + currentVersionPr = (string)VersionJSON["BuildPr"]; + currentVersionBranch = (string)VersionJSON["BuildBranch"]; + + _versionText.Text = "Version - " + currentVersionJson + Environment.NewLine + "Branch - " + currentVersionBranch + Environment.NewLine + "PR ID - #" + currentVersionPr; } catch {