diff --git a/Ryujinx/Ui/AboutInfo.cs b/Ryujinx/Ui/AboutInfo.cs new file mode 100644 index 0000000000..ec8dd8471f --- /dev/null +++ b/Ryujinx/Ui/AboutInfo.cs @@ -0,0 +1,9 @@ +namespace Ryujinx.UI +{ + public struct AboutInfo + { + public string InstallVersion; + public string InstallCommit; + public string InstallBranch; + } +} \ No newline at end of file diff --git a/Ryujinx/Ui/AboutWindow.cs b/Ryujinx/Ui/AboutWindow.cs index 2ef83931e7..775680142e 100644 --- a/Ryujinx/Ui/AboutWindow.cs +++ b/Ryujinx/Ui/AboutWindow.cs @@ -12,14 +12,7 @@ namespace Ryujinx.UI { public class AboutWindow : Window { - private struct Info - { - public string InstallVersion; - public string InstallCommit; - public string InstallBranch; - } - - private static Info Information { get; set; } + private static AboutInfo AboutInformation { get; set; } #pragma warning disable CS0649 #pragma warning disable IDE0044 @@ -52,10 +45,10 @@ namespace Ryujinx.UI using (Stream stream = File.OpenRead(System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "RyuFS", "Installer", "Config", "Config.json"))) { - Information = JsonSerializer.Deserialize(stream, resolver); + AboutInformation = JsonSerializer.Deserialize(stream, resolver); } - _versionText.Text = $"Version {Information.InstallVersion} - {Information.InstallBranch} ({Information.InstallCommit})"; + _versionText.Text = $"Version {AboutInformation.InstallVersion} - {AboutInformation.InstallBranch} ({AboutInformation.InstallCommit})"; } catch {