mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
0e93a51030
* bcat:u: Implement EnumerateDeliveryCacheDirectory Basic implementation `EnumerateDeliveryCacheDirectory` call to `IDeliveryCacheStorageService` according to RE. (close #622) I've added some comments in the whole service for when we'll implement a real bcat implementation. For now, all games who use it isn't playable because of GPU. * Use Array instead of List * Add ApplicationLaunchPropertyHelper * Fix helper * Fix helper 2 * Fix ApplicationLaunchProperty Default * Fix ApplicationLaunchProperty 2 * Fix folder
40 lines
No EOL
1.2 KiB
C#
40 lines
No EOL
1.2 KiB
C#
using Ryujinx.Common.Logging;
|
|
using Ryujinx.HLE.HOS.Services.Glue;
|
|
using Ryujinx.HLE.Utilities;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Acc
|
|
{
|
|
class IManagerForApplication : IpcService
|
|
{
|
|
private UInt128 _userId;
|
|
private ApplicationLaunchProperty _applicationLaunchProperty;
|
|
|
|
public IManagerForApplication(UInt128 userId, ApplicationLaunchProperty applicationLaunchProperty)
|
|
{
|
|
_userId = userId;
|
|
_applicationLaunchProperty = applicationLaunchProperty;
|
|
}
|
|
|
|
[Command(0)]
|
|
// CheckAvailability()
|
|
public ResultCode CheckAvailability(ServiceCtx context)
|
|
{
|
|
Logger.PrintStub(LogClass.ServiceAcc);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
|
|
[Command(1)]
|
|
// GetAccountId() -> nn::account::NetworkServiceAccountId
|
|
public ResultCode GetAccountId(ServiceCtx context)
|
|
{
|
|
long networkServiceAccountId = 0xcafe;
|
|
|
|
Logger.PrintStub(LogClass.ServiceAcc, new { networkServiceAccountId });
|
|
|
|
context.ResponseData.Write(networkServiceAccountId);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
}
|
|
} |