mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-23 04:52:08 +00:00
Disable titlesplash for MacOS users to resolve concerns brought up with MacOS bar PR. Splash also gets randomized after every game load.
This commit is contained in:
parent
cb00496c53
commit
041e4f9d35
3 changed files with 14 additions and 2 deletions
|
|
@ -2,6 +2,7 @@ using System.Collections.Generic;
|
|||
using Ryujinx.Common.Logging;
|
||||
using Gommon;
|
||||
using Ryujinx.Ava.Systems.Configuration;
|
||||
using System;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace Ryujinx.Common
|
||||
|
|
@ -42,6 +43,16 @@ namespace Ryujinx.Common
|
|||
|
||||
return $"{_Final_Splash}";
|
||||
}
|
||||
|
||||
public static string GetTitleSplash()
|
||||
{
|
||||
if (OperatingSystem.IsMacOS())
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
return $" - {GetSplash()}";
|
||||
}
|
||||
|
||||
private static _Splash_Locales _Splash_Json;
|
||||
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ namespace Ryujinx.Ava
|
|||
|
||||
internal static string FormatTitle(LocaleKeys? windowTitleKey = null, bool includeVersion = true)
|
||||
=> windowTitleKey is null
|
||||
? $"{FullAppName}{(includeVersion ? $" {Program.Version}" : string.Empty)} - {SplashTextHelper.GetSplash()}"
|
||||
: $"{FullAppName}{(includeVersion ? $" {Program.Version}" : string.Empty)} - {LocaleManager.Instance[windowTitleKey.Value]} - {SplashTextHelper.GetSplash()}";
|
||||
? $"{FullAppName}{(includeVersion ? $" {Program.Version}" : string.Empty)}{SplashTextHelper.GetTitleSplash()}"
|
||||
: $"{FullAppName}{(includeVersion ? $" {Program.Version}" : string.Empty)} - {LocaleManager.Instance[windowTitleKey.Value]}{SplashTextHelper.GetTitleSplash()}";
|
||||
|
||||
public static readonly string FullAppName = string.Intern(ReleaseInformation.IsCanaryBuild ? "Ryujinx Canary" : "Ryujinx");
|
||||
|
||||
|
|
|
|||
|
|
@ -1221,6 +1221,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
throw new ArgumentException($"Unknown Progress Handler type {typeof(T)}");
|
||||
}
|
||||
});
|
||||
SplashTextHelper.RefreshSplash();
|
||||
}
|
||||
|
||||
private void PrepareLoadScreen()
|
||||
|
|
|
|||
Loading…
Reference in a new issue