diff options
| author | Ac_K <Acoustik666@gmail.com> | 2018-02-28 04:31:52 +0100 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-02-28 00:31:52 -0300 |
| commit | 7f0bee2ff8d6eca1f10a29d5c9e5e7663cb34143 (patch) | |
| tree | 7a03b209834a113418030322de41579766868a27 /Ryujinx.Core/OsHle/Services/Set/ServiceSet.cs | |
| parent | f876bd2a805805d9e5dc350b65e8d02fbc5b88b5 (diff) | |
Stubs implementations (#45)
Services Bsd, Nifm & SSL stubs implementations
Objects IGeneralService, IRequest stubs implementations.
Fake-Fix GetAvailableLanguageCodes stub too ^^!
Diffstat (limited to 'Ryujinx.Core/OsHle/Services/Set/ServiceSet.cs')
| -rw-r--r-- | Ryujinx.Core/OsHle/Services/Set/ServiceSet.cs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Ryujinx.Core/OsHle/Services/Set/ServiceSet.cs b/Ryujinx.Core/OsHle/Services/Set/ServiceSet.cs index 05e409b0..c60e1712 100644 --- a/Ryujinx.Core/OsHle/Services/Set/ServiceSet.cs +++ b/Ryujinx.Core/OsHle/Services/Set/ServiceSet.cs @@ -1,5 +1,6 @@ using ChocolArm64.Memory; using Ryujinx.Core.OsHle.Ipc; +using System; using System.Collections.Generic; namespace Ryujinx.Core.OsHle.IpcServices.Set @@ -30,12 +31,10 @@ namespace Ryujinx.Core.OsHle.IpcServices.Set short Size = Context.Request.RecvListBuff[0].Size; //This should return an array of ints with values matching the LanguageCode enum. - byte[] Data = new byte[Size]; - - Data[0] = 0; - Data[1] = 1; - - AMemoryHelper.WriteBytes(Context.Memory, Position, Data); + foreach (long value in new long[] { 0L, 1L, 2L, 3L, 4L, 5L, 6L, 7L }) + { + AMemoryHelper.WriteBytes(Context.Memory, Position += 8, BitConverter.GetBytes(value)); + } } Context.ResponseData.Write(LangCodesCount); |
