mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-16 07:30:32 +00:00
Check if the desired language is actually available
This commit is contained in:
parent
cf74740f82
commit
47ffa43ea1
1 changed files with 11 additions and 1 deletions
|
@ -52,7 +52,17 @@ namespace Ryujinx.HLE.Loaders.Processes
|
||||||
{
|
{
|
||||||
ulong programId = metaLoader.GetProgramId();
|
ulong programId = metaLoader.GetProgramId();
|
||||||
|
|
||||||
Name = ApplicationControlProperties.Title[(int)titleLanguage].NameString.ToString();
|
if (ApplicationControlProperties.Title.ItemsRo.Length > 0)
|
||||||
|
{
|
||||||
|
var langIndex = ApplicationControlProperties.Title.ItemsRo.Length > (int)titleLanguage ? (int)titleLanguage : 0;
|
||||||
|
|
||||||
|
Name = ApplicationControlProperties.Title[langIndex].NameString.ToString();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Name = metaLoader.GetProgramName();
|
||||||
|
}
|
||||||
|
|
||||||
ProgramId = programId;
|
ProgramId = programId;
|
||||||
ProgramIdText = $"{programId:x16}";
|
ProgramIdText = $"{programId:x16}";
|
||||||
Is64Bit = metaLoader.IsProgram64Bit();
|
Is64Bit = metaLoader.IsProgram64Bit();
|
||||||
|
|
Loading…
Reference in a new issue