I am smart I swear
- Screwed up the Object names for the JSON
This commit is contained in:
parent
da574ca5dd
commit
f287a7fd7e
2 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue