I am smart I swear

- Screwed up the Object names for the JSON
This commit is contained in:
Ashley 2020-02-06 15:00:31 -05:00
parent da574ca5dd
commit f287a7fd7e
2 changed files with 4 additions and 5 deletions

View file

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

View file

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