Prevent potential for rapid querying of JSON file

Adds a default splash text that is "Splash Text" to ensure it does not rapidly query an empty language in the JSON file.
This commit is contained in:
Awesomeangotti 2026-04-29 19:33:25 +00:00
parent 67cdbe9494
commit d7d2b29c3f

View file

@ -29,6 +29,10 @@ namespace Ryujinx.Common
if (string.IsNullOrEmpty(_Final_Splash))
{
_Final_Splash = _Get_Lang_Json();
if (string.IsNullOrEmpty(_Final_Splash))
{
_Final_Splash = "Splash Text";
}
}
return $"{_Final_Splash}";