mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-04 13:58:49 +02:00
Android changes
This commit is contained in:
@@ -14,16 +14,21 @@ namespace Ryujinx.HLE.Utilities
|
||||
{
|
||||
FileStream file = File.OpenRead(path);
|
||||
|
||||
return OpenApplicationFileSystem(file, Path.GetExtension(path).ToLower() == ".xci", fileSystem, throwOnFailure);
|
||||
}
|
||||
|
||||
public static IFileSystem OpenApplicationFileSystem(Stream stream, bool isXci, VirtualFileSystem fileSystem, bool throwOnFailure = true)
|
||||
{
|
||||
IFileSystem partitionFileSystem;
|
||||
|
||||
if (Path.GetExtension(path).ToLower() == ".xci")
|
||||
if (isXci)
|
||||
{
|
||||
partitionFileSystem = new Xci(fileSystem.KeySet, file.AsStorage()).OpenPartition(XciPartitionType.Secure);
|
||||
partitionFileSystem = new Xci(fileSystem.KeySet, stream.AsStorage()).OpenPartition(XciPartitionType.Secure);
|
||||
}
|
||||
else
|
||||
{
|
||||
var pfsTemp = new PartitionFileSystem();
|
||||
Result initResult = pfsTemp.Initialize(file.AsStorage());
|
||||
Result initResult = pfsTemp.Initialize(stream.AsStorage());
|
||||
|
||||
if (throwOnFailure)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user