account/ns: Implement 13.0.0+ service calls (#2820)
This PR implements/stubs some missing calls introduced in recent firmware (13.0.0). - `acc:u0 InitializeApplicationInfoV2` needed by ACNH. - `aoc:u NotifyMountAddOnContent/NotifyUnmountAddOnContent/CheckAddOnContentMountStatus` checked by RE. Needed by ACNH. - `IPurchaseEventManager PopPurchasedProductInfo` needed by Dying Light. Now ACNH 2.0 update is fully playable, and Dying Light can boot further:
This commit is contained in:
parent
30b7aaefca
commit
3dcee8c437
3 changed files with 68 additions and 1 deletions
|
@ -25,7 +25,7 @@ namespace Ryujinx.HLE.HOS.Services.Ns.Aoc
|
|||
|
||||
context.Memory.Read(inBufferPosition, buffer);
|
||||
|
||||
// NOTE: Service use the pid to call arp:r GetApplicationLaunchProperty and store it in internal field.
|
||||
// NOTE: Service uses the pid to call arp:r GetApplicationLaunchProperty and store it in internal field.
|
||||
// Then it seems to use the buffer content and compare it with a stored linked instrusive list.
|
||||
// Since we don't support purchase from eShop, we can stub it.
|
||||
|
||||
|
@ -47,5 +47,22 @@ namespace Ryujinx.HLE.HOS.Services.Ns.Aoc
|
|||
|
||||
return ResultCode.Success;
|
||||
}
|
||||
|
||||
[CommandHipc(3)]
|
||||
// PopPurchasedProductInfo(nn::ec::detail::PurchasedProductInfo)
|
||||
public ResultCode PopPurchasedProductInfo(ServiceCtx context)
|
||||
{
|
||||
byte[] purchasedProductInfo = new byte[0x80];
|
||||
|
||||
context.ResponseData.Write(purchasedProductInfo);
|
||||
|
||||
// NOTE: Service finds info using internal array then convert it into nn::ec::detail::PurchasedProductInfo.
|
||||
// Returns 0x320A4 if the internal array size is null.
|
||||
// Since we don't support purchase from eShop, we can stub it.
|
||||
|
||||
Logger.Debug?.PrintStub(LogClass.ServiceNs); // NOTE: Uses Debug to avoid spamming.
|
||||
|
||||
return ResultCode.Success;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue