Don't read the installer config to get a version string
This commit is contained in:
parent
4042a5a43b
commit
6012011a57
1 changed files with 2 additions and 15 deletions
|
@ -40,22 +40,9 @@ namespace Ryujinx.Ui
|
||||||
_discordLogo.Pixbuf = new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.assets.DiscordLogo.png", 30 , 30 );
|
_discordLogo.Pixbuf = new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.assets.DiscordLogo.png", 30 , 30 );
|
||||||
_twitterLogo.Pixbuf = new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.assets.TwitterLogo.png", 30 , 30 );
|
_twitterLogo.Pixbuf = new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.assets.TwitterLogo.png", 30 , 30 );
|
||||||
|
|
||||||
try
|
// todo: Get version string
|
||||||
{
|
|
||||||
IJsonFormatterResolver resolver = CompositeResolver.Create(new[] { StandardResolver.AllowPrivateSnakeCase });
|
|
||||||
|
|
||||||
using (Stream stream = File.OpenRead(System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Ryujinx", "Installer", "Config", "Config.json")))
|
|
||||||
{
|
|
||||||
AboutInformation = JsonSerializer.Deserialize<AboutInfo>(stream, resolver);
|
|
||||||
}
|
|
||||||
|
|
||||||
_versionText.Text = $"Version {AboutInformation.InstallVersion} - {AboutInformation.InstallBranch} ({AboutInformation.InstallCommit})";
|
|
||||||
}
|
|
||||||
catch
|
|
||||||
{
|
|
||||||
_versionText.Text = "Unknown Version";
|
_versionText.Text = "Unknown Version";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private static void OpenUrl(string url)
|
private static void OpenUrl(string url)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue