Archived
1
0
Fork 0
forked from Mirror/Ryujinx
This repository has been archived on 2024-10-11. You can view files and clone it, but cannot push or open issues or pull requests.
jinx/Ryujinx.Core/OsHle/Services/ServiceSet.cs

32 lines
910 B
C#
Raw Normal View History

2018-02-04 23:08:20 +00:00
using ChocolArm64.Memory;
namespace Ryujinx.Core.OsHle.Services
2018-02-04 23:08:20 +00:00
{
static partial class Service
{
private const int LangCodesCount = 13;
public static long SetGetAvailableLanguageCodes(ServiceCtx Context)
{
int PtrBuffSize = Context.RequestData.ReadInt32();
if (Context.Request.RecvListBuff.Count > 0)
{
long Position = Context.Request.RecvListBuff[0].Position;
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);
}
Context.ResponseData.Write(LangCodesCount);
return 0;
}
}
}