public static DefaultFsServerObjects GetDefaultEmulatedCreators(IFileSystem rootFileSystem, KeySet keySet)
        {
            var creators = new FileSystemCreatorInterfaces();
            var gameCard = new EmulatedGameCard(keySet);
            var sdCard   = new EmulatedSdCard();

            var gcStorageCreator = new EmulatedGameCardStorageCreator(gameCard);

            creators.RomFileSystemCreator            = new RomFileSystemCreator();
            creators.PartitionFileSystemCreator      = new PartitionFileSystemCreator();
            creators.StorageOnNcaCreator             = new StorageOnNcaCreator(keySet);
            creators.TargetManagerFileSystemCreator  = new TargetManagerFileSystemCreator();
            creators.SubDirectoryFileSystemCreator   = new SubDirectoryFileSystemCreator();
            creators.SaveDataFileSystemCreator       = new SaveDataFileSystemCreator(keySet);
            creators.GameCardStorageCreator          = gcStorageCreator;
            creators.GameCardFileSystemCreator       = new EmulatedGameCardFsCreator(gcStorageCreator, gameCard);
            creators.EncryptedFileSystemCreator      = new EncryptedFileSystemCreator(keySet);
            creators.BuiltInStorageFileSystemCreator = new EmulatedBisFileSystemCreator(rootFileSystem);
            creators.SdCardFileSystemCreator         = new EmulatedSdCardFileSystemCreator(sdCard, rootFileSystem);

            var deviceOperator = new EmulatedDeviceOperator(gameCard, sdCard);

            return(new DefaultFsServerObjects
            {
                FsCreators = creators,
                DeviceOperator = deviceOperator,
                GameCard = gameCard,
                SdCard = sdCard
            });
        }
Beispiel #2
0
 public EmulatedDeviceOperator(EmulatedGameCard gameCard, EmulatedSdCard sdCard)
 {
     GameCard = gameCard;
     SdCard   = sdCard;
 }