ServicePl.cs 815 B

1234567891011121314151617181920212223242526272829303132333435
  1. using Ryujinx.Core.OsHle.Ipc;
  2. namespace Ryujinx.Core.OsHle.Services
  3. {
  4. static partial class Service
  5. {
  6. public static long PlGetLoadState(ServiceCtx Context)
  7. {
  8. Context.ResponseData.Write(1); //Loaded
  9. return 0;
  10. }
  11. public static long PlGetFontSize(ServiceCtx Context)
  12. {
  13. Context.ResponseData.Write(Horizon.FontSize);
  14. return 0;
  15. }
  16. public static long PlGetSharedMemoryAddressOffset(ServiceCtx Context)
  17. {
  18. Context.ResponseData.Write(0);
  19. return 0;
  20. }
  21. public static long PlGetSharedMemoryNativeHandle(ServiceCtx Context)
  22. {
  23. Context.Response.HandleDesc = IpcHandleDesc.MakeCopy(Context.Ns.Os.FontHandle);
  24. return 0;
  25. }
  26. }
  27. }