account: Services Refactoring (#1833)

* account: Services Refactoring

* Remove extra empty space

* Fix IProfile::Get

* address gdkchan feedback
This commit is contained in:
Ac_K 2021-01-02 23:34:28 +01:00 committed by GitHub
parent 4f01c13f50
commit b001040c2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 844 additions and 317 deletions

View file

@ -1,5 +1,4 @@
using LibHac;
using LibHac.Arp.Impl;
using LibHac.Ncm;
using LibHac.Ns;
using System;
@ -8,7 +7,7 @@ using ApplicationId = LibHac.ApplicationId;
namespace Ryujinx.HLE.HOS.Services.Arp
{
class LibHacIReader : IReader
class LibHacIReader : LibHac.Arp.Impl.IReader
{
private Horizon System { get; }
@ -19,21 +18,22 @@ namespace Ryujinx.HLE.HOS.Services.Arp
public Result GetApplicationLaunchProperty(out LibHac.Arp.ApplicationLaunchProperty launchProperty, ulong processId)
{
launchProperty = new LibHac.Arp.ApplicationLaunchProperty();
launchProperty.BaseStorageId = StorageId.BuiltInUser;
launchProperty.ApplicationId = new ApplicationId(System.Device.Application.TitleId);
launchProperty = new LibHac.Arp.ApplicationLaunchProperty
{
BaseStorageId = StorageId.BuiltInUser,
ApplicationId = new ApplicationId(System.Device.Application.TitleId)
};
return Result.Success;
}
public Result GetApplicationLaunchPropertyWithApplicationId(out LibHac.Arp.ApplicationLaunchProperty launchProperty,
ApplicationId applicationId)
public Result GetApplicationLaunchPropertyWithApplicationId(out LibHac.Arp.ApplicationLaunchProperty launchProperty, ApplicationId applicationId)
{
launchProperty = new LibHac.Arp.ApplicationLaunchProperty();
launchProperty.BaseStorageId = StorageId.BuiltInUser;
launchProperty.ApplicationId = applicationId;
launchProperty = new LibHac.Arp.ApplicationLaunchProperty
{
BaseStorageId = StorageId.BuiltInUser,
ApplicationId = applicationId
};
return Result.Success;
}
@ -43,10 +43,9 @@ namespace Ryujinx.HLE.HOS.Services.Arp
throw new NotImplementedException();
}
public Result GetApplicationControlPropertyWithApplicationId(out ApplicationControlProperty controlProperty,
ApplicationId applicationId)
public Result GetApplicationControlPropertyWithApplicationId(out ApplicationControlProperty controlProperty, ApplicationId applicationId)
{
throw new NotImplementedException();
}
}
}
}