Implement GetAvailableLanguageCodeCount2
This commit is contained in:
parent
3bdd109f45
commit
2609ea1182
1 changed files with 16 additions and 8 deletions
|
@ -16,7 +16,8 @@ namespace Ryujinx.HLE.OsHle.Services.Set
|
||||||
{ 0, GetLanguageCode },
|
{ 0, GetLanguageCode },
|
||||||
{ 1, GetAvailableLanguageCodes },
|
{ 1, GetAvailableLanguageCodes },
|
||||||
{ 3, GetAvailableLanguageCodeCount },
|
{ 3, GetAvailableLanguageCodeCount },
|
||||||
{ 5, GetAvailableLanguageCodes2 }
|
{ 5, GetAvailableLanguageCodes2 },
|
||||||
|
{ 6, GetAvailableLanguageCodeCount2 }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,6 +49,13 @@ namespace Ryujinx.HLE.OsHle.Services.Set
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static long GetAvailableLanguageCodeCount2(ServiceCtx Context)
|
||||||
|
{
|
||||||
|
Context.ResponseData.Write(SystemStateMgr.LanguageCodes.Length);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
public static long GetAvailableLanguagesCodesMethod(ServiceCtx Context, long Position, long Size)
|
public static long GetAvailableLanguagesCodesMethod(ServiceCtx Context, long Position, long Size)
|
||||||
{
|
{
|
||||||
int Count = (int)(Size / 8);
|
int Count = (int)(Size / 8);
|
||||||
|
|
Loading…
Reference in a new issue