Implement GetAvailableLanguageCodeCount2

This commit is contained in:
greggameplayer 2018-06-19 22:44:17 +02:00
parent 3bdd109f45
commit 2609ea1182

View file

@ -16,7 +16,8 @@ namespace Ryujinx.HLE.OsHle.Services.Set
{ 0, GetLanguageCode },
{ 1, GetAvailableLanguageCodes },
{ 3, GetAvailableLanguageCodeCount },
{ 5, GetAvailableLanguageCodes2 }
{ 5, GetAvailableLanguageCodes2 },
{ 6, GetAvailableLanguageCodeCount2 }
};
}
@ -48,6 +49,13 @@ namespace Ryujinx.HLE.OsHle.Services.Set
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)
{
int Count = (int)(Size / 8);