2018-02-20 21:09:23 +01:00
|
|
|
using Ryujinx.Core.OsHle.Ipc;
|
2018-02-05 00:08:20 +01:00
|
|
|
|
2018-02-20 21:09:23 +01:00
|
|
|
namespace Ryujinx.Core.OsHle.Services
|
2018-02-05 00:08:20 +01:00
|
|
|
{
|
|
|
|
static partial class Service
|
|
|
|
{
|
|
|
|
public static long PlGetLoadState(ServiceCtx Context)
|
|
|
|
{
|
|
|
|
Context.ResponseData.Write(1); //Loaded
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static long PlGetFontSize(ServiceCtx Context)
|
|
|
|
{
|
|
|
|
Context.ResponseData.Write(Horizon.FontSize);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static long PlGetSharedMemoryAddressOffset(ServiceCtx Context)
|
|
|
|
{
|
|
|
|
Context.ResponseData.Write(0);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static long PlGetSharedMemoryNativeHandle(ServiceCtx Context)
|
|
|
|
{
|
|
|
|
Context.Response.HandleDesc = IpcHandleDesc.MakeCopy(Context.Ns.Os.FontHandle);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|