aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Arp
diff options
context:
space:
mode:
authorMary <1760003+Thog@users.noreply.github.com>2021-07-13 16:48:54 +0200
committerMary <1760003+Thog@users.noreply.github.com>2021-07-13 16:48:54 +0200
commit208ba1dde2b9a4d31446ace2bba8f0d641d2e300 (patch)
treec7478e7eb87061400bab37daf4f2f69cf387d9f2 /Ryujinx.HLE/HOS/Services/Arp
parent997380d48cb3b74e2438cee7fc3b017d6b59b714 (diff)
Revert LibHac update
Users are facing save destruction on failing extra data update apparently
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Arp')
-rw-r--r--Ryujinx.HLE/HOS/Services/Arp/LibHacIReader.cs31
1 files changed, 7 insertions, 24 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Arp/LibHacIReader.cs b/Ryujinx.HLE/HOS/Services/Arp/LibHacIReader.cs
index d36ec590..dc8ed2e6 100644
--- a/Ryujinx.HLE/HOS/Services/Arp/LibHacIReader.cs
+++ b/Ryujinx.HLE/HOS/Services/Arp/LibHacIReader.cs
@@ -9,14 +9,19 @@ namespace Ryujinx.HLE.HOS.Services.Arp
{
class LibHacIReader : LibHac.Arp.Impl.IReader
{
- public ApplicationId ApplicationId { get; set; }
+ private Horizon System { get; }
+
+ public LibHacIReader(Horizon system)
+ {
+ System = system;
+ }
public Result GetApplicationLaunchProperty(out LibHac.Arp.ApplicationLaunchProperty launchProperty, ulong processId)
{
launchProperty = new LibHac.Arp.ApplicationLaunchProperty
{
BaseStorageId = StorageId.BuiltInUser,
- ApplicationId = ApplicationId
+ ApplicationId = new ApplicationId(System.Device.Application.TitleId)
};
return Result.Success;
@@ -42,27 +47,5 @@ namespace Ryujinx.HLE.HOS.Services.Arp
{
throw new NotImplementedException();
}
-
- public Result GetServiceObject(out object serviceObject)
- {
- throw new NotImplementedException();
- }
- }
-
- internal class LibHacArpServiceObject : LibHac.Sm.IServiceObject
- {
- private LibHacIReader _serviceObject;
-
- public LibHacArpServiceObject(LibHacIReader serviceObject)
- {
- _serviceObject = serviceObject;
- }
-
- public Result GetServiceObject(out object serviceObject)
- {
- serviceObject = _serviceObject;
-
- return Result.Success;
- }
}
} \ No newline at end of file