From 8e7974553a9aeb0d9c5879478a799c07951f4dcd Mon Sep 17 00:00:00 2001 From: Awesomeangotti Date: Sun, 26 Apr 2026 16:42:20 -0400 Subject: [PATCH] Commented out non working code in the SplashTextHelper.cs file for later work. --- assets/Splashes/Splashes.json | 29 +++++ src/Ryujinx/Common/SplashTextHelper.cs | 159 ++++++++++++++----------- 2 files changed, 117 insertions(+), 71 deletions(-) create mode 100644 assets/Splashes/Splashes.json diff --git a/assets/Splashes/Splashes.json b/assets/Splashes/Splashes.json new file mode 100644 index 000000000..b197abaa3 --- /dev/null +++ b/assets/Splashes/Splashes.json @@ -0,0 +1,29 @@ +{ + "Locales": [ + { + "ID": "MenuBarActionsOpenMiiEditor", + "Translations": { + "ar_SA": "", + "de_DE": "", + "el_GR": "", + "en_US": "Mii Editor", + "es_ES": "Editor de Mii", + "fr_FR": "Éditeur de Mii", + "he_IL": "", + "it_IT": "Editor di Mii", + "ja_JP": "", + "ko_KR": "Mii 편집기", + "no_NO": "Mii-redigerer", + "pl_PL": "Edytor Mii", + "pt_BR": "Editor de Mii", + "ru_RU": "Редактор Mii", + "sv_SE": "Mii-redigerare", + "th_TH": "", + "tr_TR": "", + "uk_UA": "Редактор Mii", + "zh_CN": "Mii 编辑器", + "zh_TW": "Mii 編輯器" + } + } + ] +} \ No newline at end of file diff --git a/src/Ryujinx/Common/SplashTextHelper.cs b/src/Ryujinx/Common/SplashTextHelper.cs index 8f137ec73..4e37bea04 100644 --- a/src/Ryujinx/Common/SplashTextHelper.cs +++ b/src/Ryujinx/Common/SplashTextHelper.cs @@ -1,6 +1,13 @@ using System.Collections.Generic; using Ryujinx.Common.Logging; using Gommon; +/* For use when working on json stuff +using Ryujinx.Ava.Common.Locale; +using Ryujinx.Common.Utilities; +using System; +using System.IO; +using System.Text.Json.Serialization; +*/ namespace Ryujinx.Common { @@ -9,15 +16,15 @@ namespace Ryujinx.Common { public static void PrintSplash() { - Logger.Notice.Print(LogClass.Application, " ___ __ _ "); + Logger.Notice.Print(LogClass.Application, " ___ __ _ "); Logger.Notice.Print(LogClass.Application, @" / _ \ __ __ __ __ / / (_) ___ ___ _"); Logger.Notice.Print(LogClass.Application, @" / , _/ / // // // / / _ \ / / / _ \ / _ `/"); Logger.Notice.Print(LogClass.Application, @"/_/|_| \_, / \_,_/ /_.__//_/ /_//_/ \_, / "); - Logger.Notice.Print(LogClass.Application, " /___/ /___/ "); - - Logger.Notice.Print(LogClass.Application, ""); - Logger.Notice.Print(LogClass.Application, GetSplash()); - Logger.Notice.Print(LogClass.Application, ""); + Logger.Notice.Print(LogClass.Application, " /___/ /___/ "); + + Logger.Notice.Print(LogClass.Application, ""); + Logger.Notice.Print(LogClass.Application, GetSplash()); + Logger.Notice.Print(LogClass.Application, ""); } private static string _Final_Splash = ""; @@ -31,73 +38,83 @@ namespace Ryujinx.Common return $"{_Final_Splash}"; } - + // This list contains all splashes. Additions are welcome to this list : ) - Awesomeangotti - private static List _Main_Splashes = new() + private static List _Main_Splashes = new() { - "Ryubing is my middle name", - "Giving it 110 percent!", - "I don't think therefore I don't am!", - "All hail egg", - "Insert cringy joke here", - "ITS RYUBINGING TIME", - "I hate mondays...", - "Fantastical!", - "Now with 100% more humor!", - //"Wishlist party cosmos!", - "\"Not S&P approved\" has been approved by S&P", - "ARE YOU NOT ENTERTAINED?", - "It's an emulator!", - "Now the real game begins", - "Cooked fresh since 2018!", - "Must've been the wind...", - "I used to be an adventurer like you before I took an arrow to the knee", - "Ryubing!", - "May contain nuts!", - "May include occasional pop culture references!", - "100% organically grown!", - "Have a nice day : )", - "Spoats car!", // I love my inside jokes. - "Bottom text", - "Im sorry dave. I'm afraid I can't do that.", - "That's no moon", - "Sir, finishing this fight.", - "I see how it is...", - "Space! The final frontier!", - "If you could not tell already, I love making bad jokes : )", - "this.", - "Probably contains no baked beans", - "Y'all ready for this?", - "Removed herobrine", - "Right to repair!", - "Programmed in C#!", - "Forgejo has dethroned Gitlab!", - "Any ideas what to put here?", - "Good morning!", - "Good afternoon!", - "Good evening!", - "I hope you are having a great day!", - "Please insert disc two!", - "I... AM RYUBING!", - "Ryubingin' it up", - "bing bing wahoo", - "egg", - "No, lossless scaling is NOT supported", - "How do you people do anything?", - "One dollar.", - "Somebody once told me!", - "Its that time of the month again!", - "Brewed from only the finest memes", - "Async shader compilation would destroy my soul", - "Trans rights are human rights!", - ":3", - "Please connect a controller!", - "Never gonna give you up!", - "The game was rigged from the start", - "Ganon is watching you!", - }; - + "Ryubing is my middle name", + "Giving it 110 percent!", + "I don't think therefore I don't am!", + "All hail egg", + "Insert cringy joke here", + "ITS RYUBINGING TIME", + "I hate mondays...", + "Fantastical!", + "Now with 100% more humor!", + //"Wishlist party cosmos!", + "\"Not S&P approved\" has been approved by S&P", + "ARE YOU NOT ENTERTAINED?", + "It's an emulator!", + "Now the real game begins", + "Cooked fresh since 2018!", + "Must've been the wind...", + "I used to be an adventurer like you before I took an arrow to the knee", + "Ryubing!", + "May contain nuts!", + "May include occasional pop culture references!", + "100% organically grown!", + "Have a nice day : )", + "Spoats car!", // I love my inside jokes. + "Bottom text", + "Im sorry dave. I'm afraid I can't do that.", + "That's no moon", + "Sir, finishing this fight.", + "I see how it is...", + "Space! The final frontier!", + "If you could not tell already, I love making bad jokes : )", + "this.", + "Probably contains no baked beans", + "Y'all ready for this?", + "Removed herobrine", + "Right to repair!", + "Programmed in C#!", + "Forgejo has dethroned Gitlab!", + "Any ideas what to put here?", + "Good morning!", + "Good afternoon!", + "Good evening!", + "I hope you are having a great day!", + "Please insert disc two!", + "I... AM RYUBING!", + "Ryubingin' it up", + "bing bing wahoo", + "egg", + "No, lossless scaling is NOT supported", + "How do you people do anything?", + "One dollar.", + "Somebody once told me!", + "Its that time of the month again!", + "Brewed from only the finest memes", + "Async shader compilation would destroy my soul", + "Trans rights are human rights!", + ":3", + "Please connect a controller!", + "Never gonna give you up!", + "The game was rigged from the start", + "Ganon is watching you!", + }; // My working codes stops here. The rest is experimental + + // Saving my place for now. This commented out code below here is my piss poor attempt at json parsing or deserializing or whatever it is. + /* + private static List _Json_List; + + // Please free me from this JSON prison. + private static void _Make_Splash_List() + { + _Json_List = JsonHelper.DeserializeFromFile("Ryujinx/Assets/Splashes/Splash.json", JsonHelper.JsonSerializerContext); + } + */ } - + }