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:
awesomeangotti 2026-05-19 12:01:50 -04:00 committed by Awesomeangotti
parent cb00496c53
commit 041e4f9d35
3 changed files with 14 additions and 2 deletions

View file

@ -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;

View file

@ -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");

View file

@ -1221,6 +1221,7 @@ namespace Ryujinx.Ava.UI.ViewModels
throw new ArgumentException($"Unknown Progress Handler type {typeof(T)}");
}
});
SplashTextHelper.RefreshSplash();
}
private void PrepareLoadScreen()