Some implementations (#99)
* Some implementations - ICommonStateGetter * GetBootMode - ISelfController * SetHandlesRequestToDisplay - IServiceGetterInterface - ISystemUpdateInterface - IVulnerabilityManagerInterface - IPrepoService - ISettingsServer * GetLanguageCode - ISystemSettingsServer * GetFirmwareVersion2 - IHOSBinderDriver * TransactParcelAuto * Fix Implementations * Fix Implementations 2
This commit is contained in:
parent
434e40b8a0
commit
4906acdde9
11 changed files with 223 additions and 9 deletions
|
@ -1,5 +1,7 @@
|
|||
using Ryujinx.Core.OsHle.Ipc;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
namespace Ryujinx.Core.OsHle.Services.Set
|
||||
{
|
||||
|
@ -34,11 +36,37 @@ namespace Ryujinx.Core.OsHle.Services.Set
|
|||
{
|
||||
m_Commands = new Dictionary<int, ServiceProcessRequest>()
|
||||
{
|
||||
{ 0, GetLanguageCode },
|
||||
{ 1, GetAvailableLanguageCodes },
|
||||
{ 3, GetAvailableLanguageCodeCount }
|
||||
};
|
||||
}
|
||||
|
||||
public static long GetLanguageCode(ServiceCtx Context)
|
||||
{
|
||||
Context.ResponseData.Write(LanguageCodetoLongBE(LanguageCodes[1]));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
private static long LanguageCodetoLongBE(string LanguageCode)
|
||||
{
|
||||
using (MemoryStream MS = new MemoryStream())
|
||||
{
|
||||
foreach (char Chr in LanguageCode)
|
||||
{
|
||||
MS.WriteByte((byte)Chr);
|
||||
}
|
||||
|
||||
for (int Offs = 0; Offs < (8 - LanguageCode.Length); Offs++)
|
||||
{
|
||||
MS.WriteByte(0);
|
||||
}
|
||||
|
||||
return BitConverter.ToInt64(MS.ToArray(), 0);
|
||||
}
|
||||
}
|
||||
|
||||
public static long GetAvailableLanguageCodes(ServiceCtx Context)
|
||||
{
|
||||
long Position = Context.Request.RecvListBuff[0].Position;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue