From 0746b83edf49d1fd668dd337264e942f361b675c Mon Sep 17 00:00:00 2001 From: Mary Date: Wed, 14 Apr 2021 00:01:24 +0200 Subject: Initial support for the new 12.x IPC system (#2182) * Rename CommandAttribute as CommandHIpcAttribute to prepare for 12.x changes * Implement inital support for TIPC and adds SM command ids * *Ipc to *ipc * Missed a ref in last commit... * CommandAttributeTIpc to CommandAttributeTipc * Addresses comment and fixes some bugs around TIPC doesn't have any padding requirements as buffer C isn't a thing Fix for RegisterService inverting two argument only on TIPC --- Ryujinx.HLE/HOS/Services/Sdb/Pdm/IQueryService.cs | 4 ++-- Ryujinx.HLE/HOS/Services/Sdb/Pl/ISharedFontManager.cs | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'Ryujinx.HLE/HOS/Services/Sdb') diff --git a/Ryujinx.HLE/HOS/Services/Sdb/Pdm/IQueryService.cs b/Ryujinx.HLE/HOS/Services/Sdb/Pdm/IQueryService.cs index 210dd98b..a243b0a0 100644 --- a/Ryujinx.HLE/HOS/Services/Sdb/Pdm/IQueryService.cs +++ b/Ryujinx.HLE/HOS/Services/Sdb/Pdm/IQueryService.cs @@ -7,14 +7,14 @@ namespace Ryujinx.HLE.HOS.Services.Sdb.Pdm { public IQueryService(ServiceCtx context) { } - [Command(13)] // 5.0.0+ + [CommandHipc(13)] // 5.0.0+ // QueryApplicationPlayStatisticsForSystem(buffer title_id_list) -> (buffer entries, s32 entries_count) public ResultCode QueryApplicationPlayStatisticsForSystem(ServiceCtx context) { return QueryPlayStatisticsManager.GetPlayStatistics(context); } - [Command(16)] // 6.0.0+ + [CommandHipc(16)] // 6.0.0+ // QueryApplicationPlayStatisticsByUserAccountIdForSystem(nn::account::Uid, buffer title_id_list) -> (buffer entries, s32 entries_count) public ResultCode QueryApplicationPlayStatisticsByUserAccountIdForSystem(ServiceCtx context) { diff --git a/Ryujinx.HLE/HOS/Services/Sdb/Pl/ISharedFontManager.cs b/Ryujinx.HLE/HOS/Services/Sdb/Pl/ISharedFontManager.cs index 5be54f00..1a4bc5bd 100644 --- a/Ryujinx.HLE/HOS/Services/Sdb/Pl/ISharedFontManager.cs +++ b/Ryujinx.HLE/HOS/Services/Sdb/Pl/ISharedFontManager.cs @@ -13,7 +13,7 @@ namespace Ryujinx.HLE.HOS.Services.Sdb.Pl public ISharedFontManager(ServiceCtx context) { } - [Command(0)] + [CommandHipc(0)] // RequestLoad(u32) public ResultCode RequestLoad(ServiceCtx context) { @@ -24,7 +24,7 @@ namespace Ryujinx.HLE.HOS.Services.Sdb.Pl return ResultCode.Success; } - [Command(1)] + [CommandHipc(1)] // GetLoadState(u32) -> u32 public ResultCode GetLoadState(ServiceCtx context) { @@ -37,7 +37,7 @@ namespace Ryujinx.HLE.HOS.Services.Sdb.Pl return ResultCode.Success; } - [Command(2)] + [CommandHipc(2)] // GetFontSize(u32) -> u32 public ResultCode GetFontSize(ServiceCtx context) { @@ -48,7 +48,7 @@ namespace Ryujinx.HLE.HOS.Services.Sdb.Pl return ResultCode.Success; } - [Command(3)] + [CommandHipc(3)] // GetSharedMemoryAddressOffset(u32) -> u32 public ResultCode GetSharedMemoryAddressOffset(ServiceCtx context) { @@ -59,7 +59,7 @@ namespace Ryujinx.HLE.HOS.Services.Sdb.Pl return ResultCode.Success; } - [Command(4)] + [CommandHipc(4)] // GetSharedMemoryNativeHandle() -> handle public ResultCode GetSharedMemoryNativeHandle(ServiceCtx context) { @@ -78,7 +78,7 @@ namespace Ryujinx.HLE.HOS.Services.Sdb.Pl return ResultCode.Success; } - [Command(5)] + [CommandHipc(5)] // GetSharedFontInOrderOfPriority(bytes<8, 1>) -> (u8, u32, buffer, buffer, buffer) public ResultCode GetSharedFontInOrderOfPriority(ServiceCtx context) { -- cgit v1.2.3