From 208ba1dde2b9a4d31446ace2bba8f0d641d2e300 Mon Sep 17 00:00:00 2001 From: Mary <1760003+Thog@users.noreply.github.com> Date: Tue, 13 Jul 2021 16:48:54 +0200 Subject: Revert LibHac update Users are facing save destruction on failing extra data update apparently --- Ryujinx.HLE/HOS/Services/Arp/LibHacIReader.cs | 31 ++++++--------------------- 1 file changed, 7 insertions(+), 24 deletions(-) (limited to 'Ryujinx.HLE/HOS/Services/Arp') 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 -- cgit v1.2.3