mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-24 05:22:07 +00:00
This works*. Make splash consistent across appearences.
This commit is contained in:
parent
7c690c69c4
commit
9d9e554226
4 changed files with 22 additions and 7 deletions
|
|
@ -5,7 +5,7 @@ using Gommon;
|
|||
namespace Ryujinx.Common
|
||||
{
|
||||
// My code is crappy and I know it. Props to VewDev for assisting me in these shenanigans. - Awesomeangotti
|
||||
public class StartupTextHelper
|
||||
public class SplashTextHelper
|
||||
{
|
||||
public static void PrintSplash()
|
||||
{
|
||||
|
|
@ -16,12 +16,24 @@ namespace Ryujinx.Common
|
|||
Logger.Notice.Print(LogClass.Application, " /___/ /___/ ");
|
||||
|
||||
Logger.Notice.Print(LogClass.Application, "");
|
||||
Logger.Notice.Print(LogClass.Application, MainSplashes.GetRandomElement());
|
||||
Logger.Notice.Print(LogClass.Application, GetSplash());
|
||||
Logger.Notice.Print(LogClass.Application, "");
|
||||
}
|
||||
|
||||
private static string _Final_Splash = "";
|
||||
|
||||
public static string GetSplash()
|
||||
{
|
||||
if (string.IsNullOrEmpty(_Final_Splash))
|
||||
{
|
||||
_Final_Splash = _Main_Splashes.GetRandomElement();
|
||||
}
|
||||
|
||||
return _Final_Splash;
|
||||
}
|
||||
|
||||
// This list contains all splashes. Additions are welcome to this list : ) - Awesomeangotti
|
||||
public static List<string> MainSplashes = new()
|
||||
private static List<string> _Main_Splashes = new()
|
||||
{
|
||||
"Ryubing is my middle name",
|
||||
"Giving it 110 percent!",
|
||||
|
|
@ -81,8 +93,10 @@ namespace Ryujinx.Common
|
|||
":3",
|
||||
"Please connect a controller!",
|
||||
"Never gonna give you up!",
|
||||
"The game was rigged from the start",
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -438,7 +438,7 @@ namespace Ryujinx.Ava
|
|||
internal static void PrintSystemInfo()
|
||||
{
|
||||
// Print the ryubing logo + joke splash
|
||||
StartupTextHelper.PrintSplash();
|
||||
SplashTextHelper.PrintSplash();
|
||||
|
||||
Logger.Notice.Print(LogClass.Application, $"{RyujinxApp.FullAppName} Version: {Version}");
|
||||
Logger.Notice.Print(LogClass.Application, $".NET Runtime: {RuntimeInformation.FrameworkDescription}");
|
||||
|
|
|
|||
|
|
@ -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)} - {StartupTextHelper.MainSplashes.GetRandomElement()}"
|
||||
: $"{FullAppName}{(includeVersion ? $" {Program.Version}" : string.Empty)} - {LocaleManager.Instance[windowTitleKey.Value]} - {StartupTextHelper.MainSplashes.GetRandomElement()}";
|
||||
? $"{FullAppName}{(includeVersion ? $" {Program.Version}" : string.Empty)} - {SplashTextHelper.GetSplash()}"
|
||||
: $"{FullAppName}{(includeVersion ? $" {Program.Version}" : string.Empty)} - {LocaleManager.Instance[windowTitleKey.Value]} - {SplashTextHelper.GetSplash}";
|
||||
|
||||
public static readonly string FullAppName = string.Intern(ReleaseInformation.IsCanaryBuild ? "Ryujinx Canary" : "Ryujinx");
|
||||
|
||||
|
|
|
|||
|
|
@ -1198,7 +1198,8 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
{
|
||||
case ShaderCacheLoadingState.Start:
|
||||
case ShaderCacheLoadingState.Loading:
|
||||
LoadHeading = LocaleManager.Instance[LocaleKeys.CompilingShaders];
|
||||
//LoadHeading = LocaleManager.Instance[LocaleKeys.CompilingShaders]; This is the original line. Leaving it here until done.
|
||||
LoadHeading = $"{LocaleManager.Instance[LocaleKeys.CompilingShaders]} - {SplashTextHelper.GetSplash()}";
|
||||
IsLoadingIndeterminate = false;
|
||||
break;
|
||||
case ShaderCacheLoadingState.Packaging:
|
||||
|
|
|
|||
Loading…
Reference in a new issue