mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-04 19:48:56 +02:00
* editorconfig: Add default charset * Change file encoding from UTF-8-BOM to UTF-8
27 lines
872 B
C#
27 lines
872 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;
|
|
}
|
|
}
|
|
}
|