"Pwease push code and call me stoopid"
This commit is contained in:
parent
b6fc77045c
commit
ba546799ea
1 changed files with 7 additions and 6 deletions
|
@ -49,13 +49,14 @@ namespace Ryujinx.Ui
|
||||||
string currentVersionJson;
|
string currentVersionJson;
|
||||||
string currentVersionBranch;
|
string currentVersionBranch;
|
||||||
string currentVersionPr;
|
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
|
catch
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue