mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
fix wrong contenttype (#553)
This commit is contained in:
parent
5b029ae7a2
commit
8dcfeb64a3
1 changed files with 7 additions and 9 deletions
|
@ -150,24 +150,22 @@ namespace Ryujinx.HLE.HOS.Services.FspSrv
|
||||||
byte[] padding = context.RequestData.ReadBytes(7);
|
byte[] padding = context.RequestData.ReadBytes(7);
|
||||||
long titleId = context.RequestData.ReadInt64();
|
long titleId = context.RequestData.ReadInt64();
|
||||||
|
|
||||||
|
ContentType contentType = ContentType.Data;
|
||||||
|
|
||||||
StorageId installedStorage =
|
StorageId installedStorage =
|
||||||
context.Device.System.ContentManager.GetInstalledStorage(titleId, ContentType.Data, storageId);
|
context.Device.System.ContentManager.GetInstalledStorage(titleId, contentType, storageId);
|
||||||
|
|
||||||
if (installedStorage == StorageId.None)
|
if (installedStorage == StorageId.None)
|
||||||
{
|
{
|
||||||
|
contentType = ContentType.AocData;
|
||||||
|
|
||||||
installedStorage =
|
installedStorage =
|
||||||
context.Device.System.ContentManager.GetInstalledStorage(titleId, ContentType.AocData, storageId);
|
context.Device.System.ContentManager.GetInstalledStorage(titleId, contentType, storageId);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (installedStorage != StorageId.None)
|
if (installedStorage != StorageId.None)
|
||||||
{
|
{
|
||||||
string contentPath = context.Device.System.ContentManager.GetInstalledContentPath(titleId, storageId, ContentType.AocData);
|
string contentPath = context.Device.System.ContentManager.GetInstalledContentPath(titleId, storageId, contentType);
|
||||||
|
|
||||||
if (string.IsNullOrWhiteSpace(contentPath))
|
|
||||||
{
|
|
||||||
contentPath = context.Device.System.ContentManager.GetInstalledContentPath(titleId, storageId, ContentType.AocData);
|
|
||||||
}
|
|
||||||
|
|
||||||
string installPath = context.Device.FileSystem.SwitchPathToSystemPath(contentPath);
|
string installPath = context.Device.FileSystem.SwitchPathToSystemPath(contentPath);
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(installPath))
|
if (!string.IsNullOrWhiteSpace(installPath))
|
||||||
|
|
Loading…
Reference in a new issue