diff options
| author | Ac_K <Acoustik666@gmail.com> | 2020-02-14 11:33:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-14 11:33:22 +0100 |
| commit | 949bb81a9e7ef7d582ac06edabb3bc2613eb7698 (patch) | |
| tree | d7434a97446d8fef397ecb456bbea1165bd113e0 | |
| parent | 9e4f668f6cc59d47847472410228850fe5528daa (diff) | |
Add version in all window titles (#935)
This add the AppVeyor build version (added in #927) in the console window title and in the GUI title (when you are on the games list or when an emulated game is closed).
| -rw-r--r-- | Ryujinx/Program.cs | 4 | ||||
| -rw-r--r-- | Ryujinx/Ui/MainWindow.cs | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Ryujinx/Program.cs b/Ryujinx/Program.cs index e24d09fb..5fca0933 100644 --- a/Ryujinx/Program.cs +++ b/Ryujinx/Program.cs @@ -22,10 +22,10 @@ namespace Ryujinx EnableHighResolution = true }); - Console.Title = "Ryujinx Console"; - Version = Assembly.GetEntryAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion; + Console.Title = $"Ryujinx Console {Version}"; + string systemPath = Environment.GetEnvironmentVariable("Path", EnvironmentVariableTarget.Machine); Environment.SetEnvironmentVariable("Path", $"{Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "bin")};{systemPath}"); diff --git a/Ryujinx/Ui/MainWindow.cs b/Ryujinx/Ui/MainWindow.cs index 8c500b30..e9e79d77 100644 --- a/Ryujinx/Ui/MainWindow.cs +++ b/Ryujinx/Ui/MainWindow.cs @@ -118,6 +118,7 @@ namespace Ryujinx.Ui ApplyTheme(); _mainWin.Icon = new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.assets.Icon.png"); + _mainWin.Title = $"Ryujinx {Program.Version}"; _stopEmulation.Sensitive = false; if (ConfigurationState.Instance.Ui.GuiColumns.FavColumn) _favToggle.Active = true; @@ -427,7 +428,7 @@ namespace Ryujinx.Ui _gameTableWindow.Expand = true; - this.Window.Title = "Ryujinx"; + this.Window.Title = $"Ryujinx {Program.Version}"; _emulationContext = null; _gameLoaded = false; |
