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);
|
Directory.CreateDirectory(localAppPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
string versionJsonFile = System.IO.Path.Combine(localAppPath, "Version.json");
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_versionText.Text = "Version " + File.ReadAllText(versionJsonFile);
|
_versionText.Text = "Version " + File.ReadAllText(versionJsonFile);
|
||||||
|
|
|
@ -71,9 +71,10 @@ namespace Ryujinx
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var VersionJSON = JObject.Parse(Path.Combine(Environment.CurrentDirectory, "Version.json"));
|
var VersionJSON = JObject.Parse(Path.Combine(Environment.CurrentDirectory, "Version.json"));
|
||||||
(string)currentVersionJson = (string)_VersionJSON["BuildVer"];
|
var _JRoot = VersionJSON[0];
|
||||||
(string)currentVersionPr = (string)_VersionJSON["BuildPR"];
|
(string)currentVersionJson = (string)_JRoot["BuildVer"];
|
||||||
(string)currentVersionBranch = (string)_VersionJSON["BuildBranch"];
|
(string)currentVersionPr = (string)_JRoot["BuildPR"];
|
||||||
|
(string)currentVersionBranch = (string)_JRoot["BuildBranch"];
|
||||||
|
|
||||||
Version newVersion = Version.Parse(_buildVer);
|
Version newVersion = Version.Parse(_buildVer);
|
||||||
Version currentVersion = Version.Parse(currentVersionJson);
|
Version currentVersion = Version.Parse(currentVersionJson);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue