mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-18 14:26:42 +00:00
e3b36db71c
* hle: Some cleanup This PR cleaned up a bit the HLE folder and the VirtualFileSystem one, since we use LibHac, we can use some class of it directly instead of duplicate things. The "Content" of VFS folder is removed since it should be handled in the NCM service directly. A larger cleanup should be done later since there is still be duplicated code here and there. * Fix Headless.SDL2 * Addresses gdkchan feedback
26 lines
No EOL
874 B
C#
26 lines
No EOL
874 B
C#
using LibHac;
|
|
using LibHac.Common;
|
|
using LibHac.Fs;
|
|
using LibHac.Fs.Fsa;
|
|
using LibHac.FsSrv.FsCreator;
|
|
|
|
namespace Ryujinx.HLE.FileSystem
|
|
{
|
|
public class EncryptedFileSystemCreator : IEncryptedFileSystemCreator
|
|
{
|
|
public Result Create(ref SharedRef<IFileSystem> outEncryptedFileSystem,
|
|
ref SharedRef<IFileSystem> baseFileSystem, IEncryptedFileSystemCreator.KeyId idIndex,
|
|
in EncryptionSeed encryptionSeed)
|
|
{
|
|
if (idIndex < IEncryptedFileSystemCreator.KeyId.Save || idIndex > IEncryptedFileSystemCreator.KeyId.CustomStorage)
|
|
{
|
|
return ResultFs.InvalidArgument.Log();
|
|
}
|
|
|
|
// TODO: Reenable when AesXtsFileSystem is fixed.
|
|
outEncryptedFileSystem = SharedRef<IFileSystem>.CreateMove(ref baseFileSystem);
|
|
|
|
return Result.Success;
|
|
}
|
|
}
|
|
} |