mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-20 04:36:33 +00:00
ContentServices: Handle null LocationEntry Path in VerifyContentType (#506)
When `LocationEntry.ContentPath` is `null`, we can always return `false` as it can't possibly be a valid `ContentType`
This commit is contained in:
parent
fe8fbb6fb9
commit
26e09474a9
2 changed files with 6 additions and 0 deletions
|
@ -223,6 +223,11 @@ namespace Ryujinx.HLE.FileSystem.Content
|
||||||
|
|
||||||
private bool VerifyContentType(LocationEntry LocationEntry, ContentType ContentType)
|
private bool VerifyContentType(LocationEntry LocationEntry, ContentType ContentType)
|
||||||
{
|
{
|
||||||
|
if (LocationEntry.ContentPath == null)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
StorageId StorageId = LocationHelper.GetStorageId(LocationEntry.ContentPath);
|
StorageId StorageId = LocationHelper.GetStorageId(LocationEntry.ContentPath);
|
||||||
string InstalledPath = Device.FileSystem.SwitchPathToSystemPath(LocationEntry.ContentPath);
|
string InstalledPath = Device.FileSystem.SwitchPathToSystemPath(LocationEntry.ContentPath);
|
||||||
|
|
||||||
|
|
|
@ -78,6 +78,7 @@ namespace Ryujinx.HLE.FileSystem
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return GetFullPath(MakeDirAndGetFullPath(Parts[0]), Parts[1]);
|
return GetFullPath(MakeDirAndGetFullPath(Parts[0]), Parts[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue