From 05d46b2da80d146128bb15f8e053db58f7da46a0 Mon Sep 17 00:00:00 2001 From: emmaus Date: Sun, 30 Dec 2018 07:59:34 +0000 Subject: [PATCH] fix wrong contenttype --- .../HOS/Services/FspSrv/IFileSystemProxy.cs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Ryujinx.HLE/HOS/Services/FspSrv/IFileSystemProxy.cs b/Ryujinx.HLE/HOS/Services/FspSrv/IFileSystemProxy.cs index 8764792c33..9df7880c08 100644 --- a/Ryujinx.HLE/HOS/Services/FspSrv/IFileSystemProxy.cs +++ b/Ryujinx.HLE/HOS/Services/FspSrv/IFileSystemProxy.cs @@ -150,24 +150,22 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv byte[] padding = context.RequestData.ReadBytes(7); long titleId = context.RequestData.ReadInt64(); + ContentType contentType = ContentType.Data; + StorageId installedStorage = - context.Device.System.ContentManager.GetInstalledStorage(titleId, ContentType.Data, storageId); + context.Device.System.ContentManager.GetInstalledStorage(titleId, contentType, storageId); if (installedStorage == StorageId.None) { + contentType = ContentType.AocData; + installedStorage = - context.Device.System.ContentManager.GetInstalledStorage(titleId, ContentType.AocData, storageId); + context.Device.System.ContentManager.GetInstalledStorage(titleId, contentType, storageId); } if (installedStorage != StorageId.None) { - string contentPath = context.Device.System.ContentManager.GetInstalledContentPath(titleId, storageId, ContentType.AocData); - - if (string.IsNullOrWhiteSpace(contentPath)) - { - contentPath = context.Device.System.ContentManager.GetInstalledContentPath(titleId, storageId, ContentType.AocData); - } - + string contentPath = context.Device.System.ContentManager.GetInstalledContentPath(titleId, storageId, contentType); string installPath = context.Device.FileSystem.SwitchPathToSystemPath(contentPath); if (!string.IsNullOrWhiteSpace(installPath))