aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremmauss <emmausssss@gmail.com>2018-12-30 15:36:35 +0200
committerGitHub <noreply@github.com>2018-12-30 15:36:35 +0200
commit8dcfeb64a33713444ad6f27be563d7e668d2bfcb (patch)
treef21fe4f7bd60187d4c37a3ae820eed7e94813c8c
parent5b029ae7a2baea780b3dec01b7c96ef060534271 (diff)
fix wrong contenttype (#553)
-rw-r--r--Ryujinx.HLE/HOS/Services/FspSrv/IFileSystemProxy.cs16
1 files changed, 7 insertions, 9 deletions
diff --git a/Ryujinx.HLE/HOS/Services/FspSrv/IFileSystemProxy.cs b/Ryujinx.HLE/HOS/Services/FspSrv/IFileSystemProxy.cs
index 8764792c..9df7880c 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))